3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo is_bool(false); echo is_bool(null)? 1 : ' null '; echo is_bool(true); function test(){ return 0; } var_dump(test()); echo (int)(bool)""; // 0 echo 0; // "0"; var_dump((bool)(string)0); // ""?
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
1 null 1int(0) 00bool(false)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/CkGik on line 9
Process exited with code 255.