3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (true == 1) echo 'true'; else echo 'false'; if (true == 2) echo 'true'; else echo 'false'; if (1 == 2) echo 'true'; else echo 'false';
Output for 4.3.0 - 7.1.0
truetruefalse