3v4l.org

run code in 300+ PHP versions simultaneously
<?php function combinaisons($chaine, $prefix = '') { if(strlen($chaine) == strlen($prefix)) { yield $prefix; return; } $caracteres = str_split($chaine, 1); foreach($caracteres as $caractere) { $solutions = combinaisons($chaine, $prefix.$caractere); foreach($solutions as $solution) yield $solution; } } $combinaisons = combinaisons('abc'); foreach($combinaisons as $combinaison) echo $combinaison.'<br />';
Output for git.master, git.master_jit, rfc.property-hooks
aaa<br />aab<br />aac<br />aba<br />abb<br />abc<br />aca<br />acb<br />acc<br />baa<br />bab<br />bac<br />bba<br />bbb<br />bbc<br />bca<br />bcb<br />bcc<br />caa<br />cab<br />cac<br />cba<br />cbb<br />cbc<br />cca<br />ccb<br />ccc<br />

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
54.91 ms | 401 KiB | 8 Q