3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $v = array("one"=>"blun","two"=>"blue","three"=>"blee", "four"=>"blor"); foreach($v as $key=>$val) { echo $val; unset($v[$key]); } var_dump($v);
based on 3gLig
Output for 5.3.22 - 5.6.38, hhvm-3.11.1 - 3.22.0, 7.0.0 - 7.3.0
blunbluebleeblorarray(0) { }