3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "Starting program\n"; $x = 0; while(++$x < 10) { echo '$x = ' . $x . "\n"; $y = 0; while(++$y < 10) { if($y == 5) break 2; echo '$y = ' . $y . "\n"; } } ?>
based on Vak9o
Output for 5.6.0 - 7.3.0alpha1
Starting program $x = 1 $y = 1 $y = 2 $y = 3 $y = 4