3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 2; $y = 3; echo ( ($x > 1) && ($x < 5) ) . "\n"; echo ( ($x == 2) or ($y == 0) ) . "\n"; echo ( ($x == 2) xor ($y == 3) ) . "\n";
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
1 1