3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array('0'=>array('a'=>'alpha','b'=>'bravo','c'=>'charlie'), '1'=>array('d'=>'delta','e'=>'echo','f'=>'foxtrot'), '2'=>array('g'=>'gulf','h'=>'hotel','i'=>'indian')); if ($key = array_search('charlie',$arr) !== false) { echo $arr[$key]; }
Output for 4.3.0 - 7.2.0