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' => 'Cardio', '1' => 'Strength Training', '2' => 'Dancing', '3' => 'Martial Arts', '4' => 'Low Impact', '5' => 'Yoga', ) );
Output for git.master, git.master_jit, rfc.property-hooks
Cardio Cardio Strength Training Cardio Strength Training Dancing Cardio Strength Training Dancing Martial Arts Cardio Strength Training Dancing Martial Arts Low Impact Cardio Strength Training Dancing Martial Arts Low Impact Yoga Strength Training Strength Training Dancing Strength Training Dancing Martial Arts Strength Training Dancing Martial Arts Low Impact Strength Training Dancing Martial Arts Low Impact Yoga Dancing Dancing Martial Arts Dancing Martial Arts Low Impact Dancing Martial Arts Low Impact Yoga Martial Arts Martial Arts Low Impact Martial Arts Low Impact Yoga Low Impact Low Impact Yoga Yoga

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:
57.02 ms | 402 KiB | 8 Q