3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php (bool) 0; (bool) "0"; var_dump(false); // false (bool) 0.0; // false (bool) "0.0"; // true var_dump( "" ); // "" var_dump( "\0" ); // "" var_dump( (bool) "" ); // false var_dump( (bool) "\0" ); // true
Output for 4.3.0 - 5.0.5, 5.1.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(false) string(0) "" string(1) "" bool(false) bool(true)
Output for 5.1.0
<br /> <b>Fatal error</b>: fatal flex scanner internal error--end of buffer missed in <b>/in/572b6</b> on line <b>13</b><br />
Process exited with code 255.