3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = [ 'a', 'b', ]; $y = [ 'a', 'c', ]; $z = [ ]; foreach ($x as $xval) { foreach($y as $yval) { if ($xval === $yval) { continue 2; } } $z[] = [$xval, $yval]; } var_dump($z);
Output for 5.6.0 - 5.6.38, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.2.12
array(1) { [0]=> array(2) { [0]=> string(1) "b" [1]=> string(1) "c" } }