3v4l.org

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