3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $winning_numbers = array(5,6,7,8,9,12,16,22,23,24,25,26,27,28,29,30); $start_numbers = array(1,2,2,3,3,4,4,5,6); foreach($start_numbers as $val1) { // first ball foreach($start_numbers as $val2) { // second ball foreach($start_numbers as $val3) { // third ball foreach($start_numbers as $val4) { // fourth ball foreach($start_numbers as $val5) { // fifth ball $outcome = $val1 + $val2 + $val3 + $val4 + $val5; echo '('.$val1.', '.$val2.', '.$val3.', '.$val4.', '.$val5.')<br />'; //echo $outcome.'<br />'; //$i=$i+1; //echo $i.'<br />'; unset($outcome); } } } } }