3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo false,"[nothing]\n"; echo true,"\n"; var_dump( false, true ); var_dump( (string) false ); var_dump( (string) true ); var_dump( (bool) ""); var_dump( (string) 0); var_dump( (bool) "0");
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
[nothing] 1 bool(false) bool(true) string(0) "" string(1) "1" bool(false) string(1) "0" bool(false)