3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $records = array( array( 'id' => 1, 'value' => 1, ), array( 'id' => 2, 'value' => 2, ), ); $foo = array_column($records, 'value', 'id', null); var_dump($foo);
based on ChE4Y
Output for 5.5.24 - 7.2.0
Warning: array_column() expects at most 3 parameters, 4 given in /in/XjT3B on line 13 NULL
Output for 5.3.18 - 5.4.45
Fatal error: Call to undefined function array_column() in /in/XjT3B on line 13
Process exited with code 255.