3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = [ 'a' => 1, 2 => 1, 'three' => 3, 4 => 5, 6 => 7, ]; foreach (&$a as &$v) $v++; var_dump($v);
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '&' in /in/dr9CQ on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/dr9CQ on line 3
Process exited with code 255.