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, 'name'); print_r(page);
based on nII0C
Output for 7.2.0
Warning: Use of undefined constant page - assumed 'page' (this will throw an Error in a future version of PHP) in /in/0f2Oi on line 8 page
Output for 5.5.24 - 7.1.10
Notice: Use of undefined constant page - assumed 'page' in /in/0f2Oi on line 8 page
Output for 5.3.20 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/0f2Oi on line 7
Process exited with code 255.