3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arrColors = array('R', 'B', 'G' ,'Y'); $arrNumbers = array('1', '2', '3', '4'); foreach($arrColors as $color) { foreach($arrNumbers as $num) { echo $color.' => '.$num; echo "\n"; } }
based on FWKne
Output for 4.3.0 - 7.1.0
R => 1 R => 2 R => 3 R => 4 B => 1 B => 2 B => 3 B => 4 G => 1 G => 2 G => 3 G => 4 Y => 1 Y => 2 Y => 3 Y => 4