xref: /PHP-7.1/Zend/tests/xor_003.phpt (revision 7af945e2)
1--TEST--
2XORing booleans
3--FILE--
4<?php
5
6$t = true;
7$f = false;
8
9var_dump($t ^ $f);
10var_dump($t ^ $t);
11var_dump($f ^ $f);
12
13echo "Done\n";
14?>
15--EXPECTF--
16int(1)
17int(0)
18int(0)
19Done
20