3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.