3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = array( array( 'tag_name' => 'google', 'number' => 1, 'test' => 2 ), array( 'tag_name' => 'technology', 'number' => 2, 'test' => 3 ) ); print_r(array_map(function($entry) { return array('tag_name' => $entry['tag_name'], 'number' => $entry['number']); }, $input)); echo array_search(array('tag_name' => 'technology', 'number' => 1), array_map(function($entry) { return array('tag_name' => $entry['tag_name'], 'number' => $entry['number']); }, $input));
based on NLfQD
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
Array ( [0] => Array ( [tag_name] => google [number] => 1 ) [1] => Array ( [tag_name] => technology [number] => 2 ) )