3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array=Array ( Array ( 'facebook' => 375, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 385, 'twitter' => 3326, 'email' => 3326 ), Array ( 'facebook' => 391, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 446, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 486, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 2, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 1, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 3, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 0, 'twitter' => 3276, 'email' => 3276 ), Array ( 'facebook' => 0, 'twitter' => 3276, 'email' => 3276 ), ); //print_r($array); //die(); $fb=array_column($array, 'facebook'); print_r($fb);
Output for 5.5.0 - 7.1.0
Array ( [0] => 375 [1] => 385 [2] => 391 [3] => 446 [4] => 486 [5] => 2 [6] => 1 [7] => 3 [8] => 0 [9] => 0 )
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/oCMCO on line 71
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_column() in /in/oCMCO on line 71
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_column() in /in/oCMCO on line 71
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_column() in /in/oCMCO on line 71