3v4l.org

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