3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(0,1,2,3,4,5); $b = array(4,0,1,2,3,5); foreach($a as $aa) { foreach($b as $bb) { if ($aa == $bb) continue; if ($aa > $bb) continue 2; echo "$aa -> $bb" . PHP_EOL; } }
based on HANAi
Output for 4.3.10 - 4.4.9, 5.0.2 - 7.2.0
0 -> 4 0 -> 1 0 -> 2 0 -> 3 0 -> 5 1 -> 4 2 -> 4 3 -> 4
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LQDgm on line 9 0 -> 4PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LQDgm on line 9 0 -> 1PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LQDgm on line 9 0 -> 2PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LQDgm on line 9 0 -> 3PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LQDgm on line 9 0 -> 5PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LQDgm on line 9 1 -> 4PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LQDgm on line 9 2 -> 4PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LQDgm on line 9 3 -> 4PHP_EOL