3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array('A', 'B'); $array2 = array('1', '2', '3'); $num = count($array2); $comb = array(); $result = array(); foreach($array1 as $val) { foreach($comb as $co) { $result[] = $val."".$co; } } print_r($result);
based on LdNlI
Output for 4.3.0 - 7.1.0
Array ( )