3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $records = array(array("a"=>1),array("a"=>2),array("a"=>3)); var_dump($records); $s1 = array_column($records, 'a'); print_r($first_names);
based on PTEOo
Output for 5.5.24 - 7.2.0
array(3) { [0]=> array(1) { ["a"]=> int(1) } [1]=> array(1) { ["a"]=> int(2) } [2]=> array(1) { ["a"]=> int(3) } } Notice: Undefined variable: first_names in /in/s2U60 on line 6
Output for 5.0.0 - 5.4.45
array(3) { [0]=> array(1) { ["a"]=> int(1) } [1]=> array(1) { ["a"]=> int(2) } [2]=> array(1) { ["a"]=> int(3) } } Fatal error: Call to undefined function array_column() in /in/s2U60 on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
array(3) { [0]=> array(1) { ["a"]=> int(1) } [1]=> array(1) { ["a"]=> int(2) } [2]=> array(1) { ["a"]=> int(3) } } Fatal error: Call to undefined function: array_column() in /in/s2U60 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
array(3) { [0]=> array(1) { ["a"]=> int(1) } [1]=> array(1) { ["a"]=> int(2) } [2]=> array(1) { ["a"]=> int(3) } } Fatal error: Call to undefined function: array_column() in /in/s2U60 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
array(3) { [0]=> array(1) { ["a"]=> int(1) } [1]=> array(1) { ["a"]=> int(2) } [2]=> array(1) { ["a"]=> int(3) } } Fatal error: Call to undefined function: array_column() in /in/s2U60 on line 5