3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = array(1,2,3,4); foreach ($foo as &$bar) { if ($bar === 3) { unset($bar); } } print_r($foo);
Output for 5.3.7 - 7.1.0
Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 )