3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $samples=array( array('page' => 'page1', 'name' => 'pagename1'), array('page' => 'page2', 'name' => 'pagename2'), array('page' => 'page3', 'name' => 'pagename3') ); $names = array_column($samples,'page', 'name'); print_r($names);
based on hUFbB
Output for 5.6.0 - 7.3.0alpha1
Array ( [pagename1] => page1 [pagename2] => page2 [pagename3] => page3 )