3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(1,3,5,9); $b = array(5,6); $c = array("a","b","c"); $d = array("x","y","z"); foreach($a as $values) foreach($b as $values2) foreach($c as $values3) foreach($d as $values4) echo $values."".$values2."".$values3."".$values4."\n"; ?>
Output for 4.3.0 - 7.1.0
15ax 15ay 15az 15bx 15by 15bz 15cx 15cy 15cz 16ax 16ay 16az 16bx 16by 16bz 16cx 16cy 16cz 35ax 35ay 35az 35bx 35by 35bz 35cx 35cy 35cz 36ax 36ay 36az 36bx 36by 36bz 36cx 36cy 36cz 55ax 55ay 55az 55bx 55by 55bz 55cx 55cy 55cz 56ax 56ay 56az 56bx 56by 56bz 56cx 56cy 56cz 95ax 95ay 95az 95bx 95by 95bz 95cx 95cy 95cz 96ax 96ay 96az 96bx 96by 96bz 96cx 96cy 96cz