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' ); in_array(null, $array); // true in_array(false, $array); // true in_array(765, $array); // true in_array(763, $array); // true in_array('egg', $array); // true in_array('hhh', $array); // true in_array(array(), $array); // true
Output for 4.3.0 - 5.0.5, 5.1.1 - 7.1.0
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/GTLvk on line 17
Process exited with code 255.