3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $categories = array( array( 'parent_id' => 0, 'categories_id' => 1, ), array( 'parent_id' => 1, 'categories_id' => 11, ), array( 'parent_id' => 1, 'categories_id' => 111, ), array( 'parent_id' => 0, 'categories_id' => 2, ), array( 'parent_id' => 2, 'categories_id' => 22, ), ); $tree = array(); foreach ($categories as $category) { $tree = &build($tree, $category); } // var_export($tree); function &build(&$tree = array(), $category) { if (empty($category)) { return; } if ($category['parent_id'] == 0 && ! isset($category['childs'])) { $category = array_merge($category, array('childs' => array())); $tree = array_merge($tree, $category); return $tree; } foreach ($tree as $parent_id => $cate) { var_dump($tree); if ($category['parent_id'] == $parent_id) { $cate[$parent_id]['childs'] = $category; } if (is_array($cate)) { return build($tree, $category); } } return $tree; }
based on W24VF
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0alpha1
array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { ["parent_id"]=> int(0) ["categories_id"]=> int(1) ["childs"]=> array(0) { } } array(3) { [
Process exited with code 137.