3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(3, 4); $b =& $a[0]; $c = $a; unset $b; $c[0] = 5; var_dump($a);
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected '$b' (T_VARIABLE), expecting '(' in /in/mmHkI on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE, expecting '(' in /in/mmHkI on line 5
Process exited with code 255.

preferences:
185.49 ms | 1394 KiB | 62 Q