3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php (bool) 0; (bool) "0"; (bool) 0.0; // false (bool) "0.0"; // true var_dump( (bool) "" ); // false var_dump( (bool) "\0" ); // true
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
bool(false) bool(true)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/T3dmb on line 10
Process exited with code 255.