3v4l.org

run code in 300+ PHP versions simultaneously
$keyword_1 = "keyword1"; $keyword_2 = "keyword2"; $keyword_2 = "keyword3"; $keyword_4 = "keyword4"; $keyword_5 = "keyword5"; $keyword_6 = "keyword6"; $keyword_7 = "keyword7"; $city_1 = "city1"; $city_2 = "city2"; $city_3 = "city3"; $city_4 = "city4"; $city_5 = "city5"; $city_6 = "city6"; $city_7 = "city7"; <?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("one","two","three","four"));
Output for git.master, git.master_jit, rfc.property-hooks
$keyword_1 = "keyword1"; $keyword_2 = "keyword2"; $keyword_2 = "keyword3"; $keyword_4 = "keyword4"; $keyword_5 = "keyword5"; $keyword_6 = "keyword6"; $keyword_7 = "keyword7"; $city_1 = "city1"; $city_2 = "city2"; $city_3 = "city3"; $city_4 = "city4"; $city_5 = "city5"; $city_6 = "city6"; $city_7 = "city7"; one one two one two three one two three four two two three two three four three three four four

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