3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array_subjected_to_search =array( array( 'name' => 'flash', 'type' => 'hero' ), array( 'name' => 'zoom', 'type' => 'villian' ), array( 'name' => 'snart', 'type' => 'antihero' ) ); $key = array_search('snart', array_column($array_subjected_to_search, 'name')); var_dump($array_subjected_to_search[$key]);
Output for 7.1.7
array(2) { ["name"]=> string(5) "snart" ["type"]=> string(8) "antihero" }