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) { // ... } }
Output for 5.3.0 - 5.5.7
Parse error: syntax error, unexpected '&' in /in/SIXCe on line 4
Process exited with code 255.