3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(0,1,2,3,4,5); $b = array(0,1,2,3,4,5); foreach($a as $aa) { foreach($b as $bb) { if ($aa == $bb) continue; if ($aa > $bb) continue 2; echo "$aa -> $bb"; } }
based on M6jeO
Output for 4.3.0 - 7.2.0
0 -> 10 -> 20 -> 30 -> 40 -> 5