3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( 'egg' => true, 'cheese' => false, 'hair' => 765, 'goblins' => null, 'ogres' => 'no ogres allowed in this array' ); // Loose checking -- return values are in comments // First three make sense, last four do not print_r(in_array(763, $array)); // true in_array('egg', $array); // true in_array('hhh', $array); // true in_array(array(), $array); // true
based on JlfR1
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
1
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/mbEO4 on line 19
Process exited with code 255.