3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(array('id' => 23, 'first_name' => 'John)); print_r(array_column($a, 'first_name', 'id'));
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected 'first_name' (T_STRING), expecting ')' in /in/A43oP on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting ')' in /in/A43oP on line 5
Process exited with code 255.

preferences:
188.94 ms | 1386 KiB | 67 Q