3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(10, 20); $n = 0; foreach($a as $k => &$v) { var_dump($v); var_dump(current($a)); if ($k > 0) { $a[] = 42;} var_dump($a); var_dump(current($a)); if ($n++ > 1) {break;} }