3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array("foo", "bar"); var_dump($array); foreach (&$array as &$value) { if ($value == "foo") unset($value); } var_dump($array); unset($array[1]); var_dump($array);
Output for 5.3.0 - 5.4.28
Parse error: syntax error, unexpected '&' in /in/PPYQ2 on line 7
Process exited with code 255.