xref: /PHP-8.2/Zend/tests/xor_003.phpt (revision 782352c5)
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--EXPECT--
16int(1)
17int(0)
18int(0)
19Done
20