3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x= array('this'); $test= in_array(0, $x); var_dump($test); // true $x= array(0); $test= in_array('that', $x); var_dump($test); // true $x= array('0'); $test= in_array('that', $x); var_dump($test); // false
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
bool(true) bool(true) bool(false)
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/SiVA2 on line 12
Process exited with code 255.