3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(1,2,3); $b = &$a; foreach($a as $i => $v) { echo "$v\n"; unset($a[1]); } var_dump($a); var_dimp($b)
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
Parse error: syntax error, unexpected end of file in /in/GJV2Y on line 11
Process exited with code 255.

preferences:
163.09 ms | 1395 KiB | 22 Q