3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array_search(array(1), 1));
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_search() expects parameter 2 to be array, integer given in /in/YXM7o on line 3 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: array_search() expects parameter 2 to be an array or collection in /in/YXM7o on line 3 NULL
Output for 4.3.2 - 5.2.17
Warning: array_search(): Wrong datatype for second argument in /in/YXM7o on line 3 bool(false)
Output for 4.3.0 - 4.3.1
Warning: array_search() [http://www.php.net/function.array-search]: Wrong datatype for second argument in /in/YXM7o on line 3 bool(false)