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('5', $arr, true));
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(false)