3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array('1', '2', '3'); foreach ($arr as &$key=>$val) { $arr[3] = '999'; echo $val."\n"; }
Output for 5.3.0 - 5.4.28
Fatal error: Key element cannot be a reference in /in/NughU on line 4
Process exited with code 255.