3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array(1,2,3,4,5,6,7,8,9); foreach(&$arr as $key=>$value) { unset($arr[$key + 1]); echo $value . PHP_EOL; } ?>
Output for 5.3.0 - 5.4.22
Parse error: syntax error, unexpected '&' in /in/d7b87 on line 5
Process exited with code 255.