3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = array( array('a' => 'testA', 'b' => 'testB'), array('a' =>'testC', 'b' => 'testD') ); $key = array_keys($test, array('a' => 'testA', 'b' => 'testB')); print_r($test[$key[0]]);
Output for 4.3.0 - 7.1.0
Array ( [a] => testA [b] => testB )