3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(1,2,3,4); $it = new ArrayIterator(&$a); foreach ($it as $k => $v) { unset($it[$k]); } var_dump($a);
Output for 5.4.0 - 5.4.17
Fatal error: Call-time pass-by-reference has been removed in /in/6s71v on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/6s71v on line 4 array(1) { [1]=> int(2) }