3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(array()); $arr(0 => "a", 1 => "b" ); $a[1] = $arr; ?>
Output for 5.4.0 - 5.4.12, 5.4.14
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in tupVU on line 5
Process exited with code 255.
Output for 5.4.13
Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /in/ME48E on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.22, 5.3.24
Parse error: syntax error, unexpected T_DOUBLE_ARROW in tupVU on line 5
Process exited with code 255.
Output for 5.3.23
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /in/ME48E on line 5
Process exited with code 255.

preferences:
166.31 ms | 1394 KiB | 47 Q