3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(1,2,3,4); var_dump(array_search("1"));
Output for 5.3.0 - 7.2.0
Warning: array_search() expects at least 2 parameters, 1 given in /in/QkKgv on line 4 NULL
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for array_search() in /in/QkKgv on line 4 NULL