3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array( array( 'firstname' => 'Bob', 'lastname' => 'Tomato' ), array( 'firstname' => 'Larry', 'lastname' => 'Cucumber'r ) ); print_r(array_column($arr,"lastname","firstname"));
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'r' (T_STRING), expecting ')' in /in/J4u4k on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.26
Parse error: syntax error, unexpected T_STRING, expecting ')' in /in/J4u4k on line 9
Process exited with code 255.

preferences:
175.56 ms | 1395 KiB | 52 Q