- Output for 5.4.1 - 5.4.45, 5.5.24 - 5.5.29, 5.6.8 - 5.6.13
- Parse error: syntax error, unexpected '&' in /in/N75F8 on line 5
Process exited with code 255.
<?php
$a = [1,2,3,4,5,6,7,8,9];
foreach (&$a as $key => $value) {
if ($key === 4) {
unset($a[$key]);
var_dump(key($a));
break;
}
}
var_dump(key($a));