mirror of
https://github.com/php/php-src.git
synced 2024-12-01 05:43:38 +08:00
20 lines
180 B
PHP
20 lines
180 B
PHP
--TEST--
|
|
XORing booleans
|
|
--FILE--
|
|
<?php
|
|
|
|
$t = true;
|
|
$f = false;
|
|
|
|
var_dump($t ^ $f);
|
|
var_dump($t ^ $t);
|
|
var_dump($f ^ $f);
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
int(1)
|
|
int(0)
|
|
int(0)
|
|
Done
|