3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $details = array( array('year' => '1990'), array('year' => '1995'), array('condition' => 'working'), array('type' => 'bus'), array('type' => 'car'), array('type' => 'bike'), ); $details = array_column($details, 'year'); print_r($details);
Output for 5.5.24 - 7.1.0
Array ( [0] => 1990 [1] => 1995 )
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/ZKVBD 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/ZKVBD 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/ZKVBD 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/ZKVBD on line 12