3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (true == 1) echo "true\n"; else echo "false\n"; if (true == 2) echo "true\n"; else echo "false\n"; if (1 == 2) echo "true\n"; else echo "false\n";
Output for 4.3.0 - 7.1.7
true true false