<?php
$P = true;
$Q = true;
$cond = $P xor $Q;
echo 'P is '.stringify($P)."\n";
echo 'Q is '.stringify($Q)."\n";
echo 'P xor Q is '.stringify($cond)."\n";
function stringify($bool)
{
if ($bool) {
return 'true';
}
return 'false';
}
PD9waHAKIAokUCA9IHRydWU7CiRRID0gdHJ1ZTsKIAokY29uZCA9ICRQIHhvciAkUTsKIAplY2hvICdQIGlzICcuc3RyaW5naWZ5KCRQKS4iXG4iOwplY2hvICdRIGlzICcuc3RyaW5naWZ5KCRRKS4iXG4iOwplY2hvICdQIHhvciBRIGlzICcuc3RyaW5naWZ5KCRjb25kKS4iXG4iOwogCiAKZnVuY3Rpb24gc3RyaW5naWZ5KCRib29sKQp7CglpZiAoJGJvb2wpIHsKCQlyZXR1cm4gJ3RydWUnOwoJfQogCglyZXR1cm4gJ2ZhbHNlJzsKfQo=