3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arrays = array ( 0 => array( "location" => "Breakwater", "bsid" => "105c" ), 1 => array( "location" => "Breakwater", "bsid" => "105c" ), 2 => array( "location" => "Breakwater", "bsid" => "105c" ), 3 => array( "location" => "Whateverelse", "bsid" => "105c" ) ); function array_column($arrays, $key) { $column = array(); foreach($array as $origKey => $value) { if (isset($value[$key])) { $column[$origKey] = $value[$key]; } } return $column; } var_dump($column);
Output for 5.0.4 - 5.4.45
Notice: Undefined variable: column in /in/on4Iv on line 30 NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: column in /in/on4Iv on line 30 NULL