3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach (array("true", "t", true) as $val) { echo ($val == "true") ? "true\n" : "false\n"; } ?>
based on 5X1qJ
Output for 4.3.0 - 7.1.7
true false true