3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array( "ONE"=>1, "TWO"=>2, "THREE"=>3, "FOUR"=>4, "FIVE"=>5, "SIX"=>6, "SEVEN"=>7, "EIGHT"=>8, "NINE"=>9, "ZERO"=>0, "UNKNOWN" => 'unknown', ); var_dump(array_search('unknown', $arr));
Output for 4.3.0 - 7.1.0
string(4) "ZERO"