3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array( array('a' => 'testA', 'b' => 'testB'), array('a' =>'testC', 'b' => 'testD') ); $key = array_keys($test, array('a' => 'testA', 'b' => 'testB')); echo $test[$key[0]];

preferences:
34.95 ms | 402 KiB | 5 Q