3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function lol($beep) { var_dump(is_bool($beep) ? ($beep ? "true" : "false") : $beep); } lol(true); lol(false); lol(1); lol("test");
based on e8Mm9
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
string(4) "true" string(5) "false" int(1) string(4) "test"