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 $colorK => $colorV) { foreach($arrNumbers as $numK => $numV) { echo $colorV.' => '.$numV; echo "\n"; } }
based on QHeKt
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.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
Output for hhvm-3.10.0

Process exited with code 153.