3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array('hello', 'world'); print_r( in_array('world'), $test);
Output for 5.3.0 - 7.1.0
Warning: in_array() expects at least 2 parameters, 1 given in /in/49EEj on line 5 Warning: print_r() expects parameter 2 to be boolean, array given in /in/49EEj on line 5
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for in_array() in /in/49EEj on line 5 Warning: print_r() expects parameter 2 to be boolean, array given in /in/49EEj on line 5