3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach ($a as &$x) { foreach ($a as &$y) { echo "$x - $y\n"; if ($x == 0 && $y == 1) { unset($a[1]); unset($a[2]); } } }
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0alpha1
Notice: Undefined variable: a in /in/VmCQI on line 3 Warning: Invalid argument supplied for foreach() in /in/VmCQI on line 3
Output for hhvm-3.15.4