3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $records = array( array( 'id' => 2135, 'first_name' => 'John', 'last_name' => 'Doe', ), array( 'id' => 3245, 'first_name' => 'Sally', 'last_name' => 'Smith', ), array( 'id' => 5342, 'first_name' => 'Jane', 'last_name' => 'Jones', ), array( 'id' => 5623, 'first_name' => 'Peter', 'last_name' => 'Doe', ) ); var_dump(array_column($recors, array('id', 'first_name')));
Output for 5.5.0 - 5.6.30, hhvm-3.10.1 - 3.11.1, hhvm-3.13.2 - 3.15.4, 7.0.0 - 7.2.0
Notice: Undefined variable: recors in /in/I17Lb on line 25 Warning: array_column() expects parameter 1 to be array, null given in /in/I17Lb on line 25 NULL
Output for hhvm-3.17.3
Notice: Undefined variable: recors in /in/I17Lb on line 25 Warning: Invalid operand type was used: expects array(s) or collection(s) in /in/I17Lb on line 25 NULL
Output for hhvm-3.12.14

Process exited with code 137.
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/I17Lb on line 25
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_column() in /in/I17Lb on line 25
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_column() in /in/I17Lb on line 25
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_column() in /in/I17Lb on line 25