3v4l.org

run code in 300+ PHP versions simultaneously
<?php function permutation(array $arr) { while($ele=array_shift($arr)) { $x=$ele; echo $x."\n"; foreach($arr as $rest) { $x.=" $rest"; echo $x."\n"; } } } permutation( array ( '0' => 'Lose Weight', '1' => 'Gain Muscle', '2' => 'Tone & Increase Muscle Definition', '3' => 'Increase Endurance', '4' => 'Improve Athletic Performance', ) );
Output for git.master, git.master_jit, rfc.property-hooks
Lose Weight Lose Weight Gain Muscle Lose Weight Gain Muscle Tone & Increase Muscle Definition Lose Weight Gain Muscle Tone & Increase Muscle Definition Increase Endurance Lose Weight Gain Muscle Tone & Increase Muscle Definition Increase Endurance Improve Athletic Performance Gain Muscle Gain Muscle Tone & Increase Muscle Definition Gain Muscle Tone & Increase Muscle Definition Increase Endurance Gain Muscle Tone & Increase Muscle Definition Increase Endurance Improve Athletic Performance Tone & Increase Muscle Definition Tone & Increase Muscle Definition Increase Endurance Tone & Increase Muscle Definition Increase Endurance Improve Athletic Performance Increase Endurance Increase Endurance Improve Athletic Performance Improve Athletic Performance

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:
34.11 ms | 403 KiB | 8 Q