3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function createCombinations($input, $length) { foreach($input as $c) { if($length == 1) { echo $c; } else { foreach(createCombinations($input, $length -1) as $s) { echo $c + $s; } } } } $texte = "abcdefghijklmnopqrstuvwxyz0123456789"; $input = str_split($texte ); createCombinations($input, 4);
based on Rn5sd