3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function createAllDirs($baseDirectory) { $array = array('0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'); foreach ($array as $value) { foreach ($array as $value2) { $directory = $value . $value2; echo ($baseDirectory . $directory); } } } createAllDirs('test');
based on MpLWB
Output for 4.3.0 - 7.2.0
test00test01test02test03test04test05test06test07test08test09test0atest0btest0ctest0dtest0etest0ftest10test11test12test13test14test15test16test17test18test19test1atest1btest1ctest1dtest1etest1ftest20test21test22test23test24test25test26test27test28test29test2atest2btest2ctest2dtest2etest2ftest30test31test32test33test34test35test36test37test38test39test3atest3btest3ctest3dtest3etest3ftest40test41test42test43test44test45test46test47test48test49test4atest4btest4ctest4dtest4etest4ftest50test51test52test53test54test55test56test57test58test59test5atest5btest5ctest5dtest5etest5ftest60test61test62test63test64test65test66test67test68test69test6atest6btest6ctest6dtest6etest6ftest70test71test72test73test74test75test76test77test78test79test7atest7btest7ctest7dtest7etest7ftest80test81test82test83test84test85test86test87test88test89test8atest8btest8ctest8dtest8etest8ftest90test91test92test93test94test95test96test97test98test99test9atest9btest9ctest9dtest9etest9ftesta0testa1testa2testa3testa4testa5testa6testa7testa8testa9testaatestabtestactestadtestaetestaftestb0testb1testb2testb3testb4testb5testb6testb7testb8testb9testbatestbbtestbctestbdtestbetestbftestc0testc1testc2testc3testc4testc5testc6testc7testc8testc9testcatestcbtestcctestcdtestcetestcftestd0testd1testd2testd3testd4testd5testd6testd7testd8testd9testdatestdbtestdctestddtestdetestdfteste0teste1teste2teste3teste4teste5teste6teste7teste8teste9testeatestebtestectestedtesteetesteftestf0testf1testf2testf3testf4testf5testf6testf7testf8testf9testfatestfbtestfctestfdtestfetestff