3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['moein' => 'mon', 'antonio' => 'mon', 'john' => 'mon']; var_dump(array_search($a, 'mon'));
based on 37fRQ
Output for 5.5.0 - 7.2.11
Warning: array_search() expects parameter 2 to be array, string given in /in/5jPfh on line 5 NULL