3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach ( array(1,2) as $key ) { echo 'looping 1...'; foreach ( array(3,4) as $value ) { echo 'looping 2...'; if ( in_array($value,array(3,4)) ) { echo 'hehe'; break 2; } } }
based on GlS7Z
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
looping 1...looping 2...hehe