3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function buildTreeHelper(&$array, $currentLevel = 1) { $result = array(); $lastIndex = 0; while($pair = each($array)) { list(, $row) = $pair; $level = $row['level']; if ($level > $currentLevel) { $result[$lastIndex]['children'] = buildTreeHelper($array, $level); } else if ($level == $currentLevel) { $result[++$lastIndex] = $row; } else { prev($array); // shift back break; } } return $result; } function buildTree($array) { reset($array); return buildTreeHelper($array); } $array = [ ['level'=>1, 'name' => 'Root #1'], ['level'=>1, 'name' => 'Root #2'], ['level'=>2, 'name' => 'subroot 2-1'], ['level'=>3, 'name' => '__subroot 2-1/1'], ['level'=>3, 'name' => '__subroot 2-1/2'], ['level'=>4, 'name' => '__subroot 2-2/1'], ['level'=>2, 'name' => 'subroot 2-2'], ['level'=>2, 'name' => 'subroot 2-3'], ['level'=>1, 'name' => 'Root #3'] ]; $time = microtime(true); var_dump(buildTree($array)); echo round(microtime(true) - $time, 10);
Output for 5.4.44, 5.5.19, 7.1.0
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001339912
Output for 5.6.10, 7.0.14
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001368523
Output for 5.4.21, 5.4.24, 7.0.7
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.000109911
Output for 7.0.6
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 8.39233E-5
Output for 7.0.5
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001029968
Output for 7.0.4
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 9.60827E-5
Output for 5.5.16, 5.5.36, 5.6.20, 7.0.3
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001070499
Output for 5.4.3, 5.4.7, 7.0.2
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 8.4877E-5
Output for 7.0.1
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 6.38962E-5
Output for 7.0.0
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 6.07967E-5
Output for hhvm-3.12.0
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 7.08103E-5
Output for hhvm-3.10.0
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 6.50883E-5
Output for 5.6.28
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001590252
Output for 5.5.26, 5.6.22
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001108646
Output for 5.4.35, 5.6.21
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001089573
Output for 5.6.19
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001249313
Output for 5.4.29, 5.5.15, 5.6.15, 5.6.18
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001120567
Output for 5.6.17
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 8.79765E-5
Output for 5.6.16
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001080036
Output for 5.4.43, 5.6.14
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001001358
Output for 5.4.26, 5.5.27, 5.6.7, 5.6.13
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001161098
Output for 5.6.12
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001270771
Output for 5.4.40, 5.6.11
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001010895
Output for 5.6.9
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001342297
Output for 5.6.8
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001430511
Output for 5.4.2, 5.5.28, 5.6.6
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 9.29832E-5
Output for 5.6.5
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001480579
Output for 5.6.4
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001101494
Output for 5.6.3
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001540184
Output for 5.4.37, 5.6.2
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001239777
Output for 5.6.1
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 9.98974E-5
Output for 5.4.27, 5.6.0
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001051426
Output for 5.5.35
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001189709
Output for 5.5.34
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 6.91414E-5
Output for 5.5.33
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 8.2016E-5
Output for 5.5.32
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 6.60419E-5
Output for 5.4.30, 5.5.31
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001049042
Output for 5.4.0, 5.5.9, 5.5.30
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 9.89437E-5
Output for 5.5.29
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001461506
Output for 5.5.25
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001327991
Output for 5.5.24
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.000166893
Output for 5.5.23
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.000138998
Output for 5.5.22
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 8.10623E-5
Output for 5.5.21
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001041889
Output for 5.4.28, 5.5.20
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 7.9155E-5
Output for 5.5.18
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001008511
Output for 5.5.14
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001308918
Output for 5.5.2, 5.5.6, 5.5.13
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 8.60691E-5
Output for 5.4.41, 5.5.12
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001320839
Output for 5.5.11
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001208782
Output for 5.4.23, 5.5.10
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 8.70228E-5
Output for 5.4.20, 5.5.8
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001151562
Output for 5.5.7
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.000136137
Output for 5.5.5
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001499653
Output for 5.5.4
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 7.10487E-5
Output for 5.4.39, 5.5.3
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001111031
Output for 5.5.1
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.000123024
Output for 5.5.0
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001039505
Output for 5.4.45
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001139641
Output for 5.4.42
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001418591
Output for 5.4.38
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001130104
Output for 5.4.36
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001289845
Output for 5.4.34
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001280308
Output for 5.4.32
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 9.70364E-5
Output for 5.4.31
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001401901
Output for 5.4.12, 5.4.25
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001299381
Output for 5.4.22
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001020432
Output for 5.4.19
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001690388
Output for 5.4.18
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001440048
Output for 5.4.4, 5.4.17
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001149178
Output for 5.4.16
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001192093
Output for 5.4.15
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001580715
Output for 5.4.14
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001218319
Output for 5.4.1, 5.4.13
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0001420975
Output for 5.4.5, 5.4.11
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 7.48634E-5
Output for 5.4.10
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 9.48906E-5
Output for 5.4.9
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.000125885
Output for 5.4.8
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 0.0002009869
Output for 5.4.6
array(2) { [1]=> array(2) { ["level"]=> int(1) ["name"]=> string(7) "Root #1" } [2]=> array(3) { ["level"]=> int(1) ["name"]=> string(7) "Root #2" ["children"]=> array(3) { [0]=> array(1) { ["children"]=> array(1) { [1]=> array(3) { ["level"]=> int(3) ["name"]=> string(15) "__subroot 2-1/2" ["children"]=> array(0) { } } } } [1]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-2" } [2]=> array(2) { ["level"]=> int(2) ["name"]=> string(11) "subroot 2-3" } } } } 7.39098E-5
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/s8OLS on line 29
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/s8OLS on line 29
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/s8OLS on line 29
Process exited with code 255.