3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(123, 456); doFoo($arr); echo $foo; function doFoo($array) { foreach ($array as &$foo) { &$foo += 789; } // unset($foo); return $array; }
Output for 5.3.0 - 5.4.23
Parse error: syntax error, unexpected '&' in /in/3FWV8 on line 10
Process exited with code 255.