3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array=array( array("id"=>1,"firstname"=>"Carole","lastname"=>"Oconor"), array("id"=>2,"firstname"=>"Berry","lastname"=>"Albert"), array("id"=>3,"firstname"=>"Mathiew","lastname"=>"Ernest"), array("id"=>15,"firstname"=>"Albert","lastname"=>"Carole"), array("id"=>41,"firstname"=>"Oconor","lastname"=>"Zela"), array("id"=>81,"firstname"=>"Zela","lastname"=>"Berry"), array("id"=>91,"firstname"=>"Ernest","lastname"=>"Mathiew") ); print_r(array_column($array,'firstname'));
Output for 5.5.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Carole [1] => Berry [2] => Mathiew [3] => Albert [4] => Oconor [5] => Zela [6] => Ernest )
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/cJnqN on line 12
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_column() in /in/cJnqN on line 12
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_column() in /in/cJnqN on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_column() in /in/cJnqN on line 12