3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $ar1 = Array ( [73] => Array ( [id] => 73, [parent_id] => 0, [title] => MENU_73, [submenu] => Array ( [74] => Array ( [id] => 74, [parent_id] => 73, [title] => MENU_73_74, [submenu] => Array ( [75] => Array ( [id] => 75, [parent_id] => 74, [title] => MENU_73_74_75, [submenu] => Array ( ) ), [76] => Array ( [id] => 76, [parent_id] => 74, [title] => MENU_73_74_76, [submenu] => Array ( ) ), [77] => Array ( [id] => 77, [parent_id] => 74, [title] => MENU_73_74_77, [submenu] => Array ( ) ), ), ), [78] => Array ( [id] => 78, [parent_id] => 73, [title] => MENU_73_78, [submenu] => Array ( [79] => Array ( [id] => 79, [parent_id] => 78, [title] => MENU_73_78_79, [submenu] => Array ( ), ), ), ), [80] => Array ( [id] => 80, [parent_id] => 73, [title] => MENU_73_80, [submenu] => Array ( [84] => Array ( [id] => 84, [parent_id] => 80, [title] => MENU_73_80_84, [submenu] => Array ( ), ), [85] => Array ( [id] => 85, [parent_id] => 80, [title] => MENU_73_80_85, [submenu] => Array ( ), ), ), ), ), ), [81] => Array ( [id] => 81, [parent_id] => 0, [title] => MENU_81, [submenu] => Array ( [82] => Array ( [id] => 82, [parent_id] => 81, [title] => MENU_81_82, [submenu] => Array ( ), ), [83] => Array ( [id] => 83, [parent_id] => 81, [title] => MENU_81_83, [submenu] => Array ( ), ), ), ), ); var_dump($ar1); ?>
Output for 7.0.0 - 7.1.0
Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 6 Warning: Illegal offset type in /in/H5GFl on line 6 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 7 Warning: Illegal offset type in /in/H5GFl on line 7 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 8 Notice: Use of undefined constant MENU_73 - assumed 'MENU_73' in /in/H5GFl on line 8 Warning: Illegal offset type in /in/H5GFl on line 8 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 9 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 13 Warning: Illegal offset type in /in/H5GFl on line 13 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 14 Warning: Illegal offset type in /in/H5GFl on line 14 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 15 Notice: Use of undefined constant MENU_73_74 - assumed 'MENU_73_74' in /in/H5GFl on line 15 Warning: Illegal offset type in /in/H5GFl on line 15 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 16 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 20 Warning: Illegal offset type in /in/H5GFl on line 20 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 21 Warning: Illegal offset type in /in/H5GFl on line 21 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 22 Notice: Use of undefined constant MENU_73_74_75 - assumed 'MENU_73_74_75' in /in/H5GFl on line 22 Warning: Illegal offset type in /in/H5GFl on line 22 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 23 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 31 Warning: Illegal offset type in /in/H5GFl on line 31 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 32 Warning: Illegal offset type in /in/H5GFl on line 32 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 33 Notice: Use of undefined constant MENU_73_74_76 - assumed 'MENU_73_74_76' in /in/H5GFl on line 33 Warning: Illegal offset type in /in/H5GFl on line 33 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 34 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 42 Warning: Illegal offset type in /in/H5GFl on line 42 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 43 Warning: Illegal offset type in /in/H5GFl on line 43 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 44 Notice: Use of undefined constant MENU_73_74_77 - assumed 'MENU_73_74_77' in /in/H5GFl on line 44 Warning: Illegal offset type in /in/H5GFl on line 44 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 45 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 57 Warning: Illegal offset type in /in/H5GFl on line 57 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 58 Warning: Illegal offset type in /in/H5GFl on line 58 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 59 Notice: Use of undefined constant MENU_73_78 - assumed 'MENU_73_78' in /in/H5GFl on line 59 Warning: Illegal offset type in /in/H5GFl on line 59 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 60 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 64 Warning: Illegal offset type in /in/H5GFl on line 64 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 65 Warning: Illegal offset type in /in/H5GFl on line 65 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 66 Notice: Use of undefined constant MENU_73_78_79 - assumed 'MENU_73_78_79' in /in/H5GFl on line 66 Warning: Illegal offset type in /in/H5GFl on line 66 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 67 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 79 Warning: Illegal offset type in /in/H5GFl on line 79 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 80 Warning: Illegal offset type in /in/H5GFl on line 80 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 81 Notice: Use of undefined constant MENU_73_80 - assumed 'MENU_73_80' in /in/H5GFl on line 81 Warning: Illegal offset type in /in/H5GFl on line 81 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 82 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 86 Warning: Illegal offset type in /in/H5GFl on line 86 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 87 Warning: Illegal offset type in /in/H5GFl on line 87 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 88 Notice: Use of undefined constant MENU_73_80_84 - assumed 'MENU_73_80_84' in /in/H5GFl on line 88 Warning: Illegal offset type in /in/H5GFl on line 88 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 89 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 97 Warning: Illegal offset type in /in/H5GFl on line 97 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 98 Warning: Illegal offset type in /in/H5GFl on line 98 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 99 Notice: Use of undefined constant MENU_73_80_85 - assumed 'MENU_73_80_85' in /in/H5GFl on line 99 Warning: Illegal offset type in /in/H5GFl on line 99 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 100 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 116 Warning: Illegal offset type in /in/H5GFl on line 116 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 117 Warning: Illegal offset type in /in/H5GFl on line 117 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 118 Notice: Use of undefined constant MENU_81 - assumed 'MENU_81' in /in/H5GFl on line 118 Warning: Illegal offset type in /in/H5GFl on line 118 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 119 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 123 Warning: Illegal offset type in /in/H5GFl on line 123 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 124 Warning: Illegal offset type in /in/H5GFl on line 124 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 125 Notice: Use of undefined constant MENU_81_82 - assumed 'MENU_81_82' in /in/H5GFl on line 125 Warning: Illegal offset type in /in/H5GFl on line 125 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 126 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 134 Warning: Illegal offset type in /in/H5GFl on line 134 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 135 Warning: Illegal offset type in /in/H5GFl on line 135 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 136 Notice: Use of undefined constant MENU_81_83 - assumed 'MENU_81_83' in /in/H5GFl on line 136 Warning: Illegal offset type in /in/H5GFl on line 136 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 137 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 Warning: Illegal offset type in /in/H5GFl on line 112 array(0) { }
Output for 5.4.0 - 5.6.28
Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 6 Warning: Illegal offset type in /in/H5GFl on line 6 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 7 Warning: Illegal offset type in /in/H5GFl on line 7 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 8 Notice: Use of undefined constant MENU_73 - assumed 'MENU_73' in /in/H5GFl on line 8 Warning: Illegal offset type in /in/H5GFl on line 8 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 9 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 13 Warning: Illegal offset type in /in/H5GFl on line 13 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 14 Warning: Illegal offset type in /in/H5GFl on line 14 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 15 Notice: Use of undefined constant MENU_73_74 - assumed 'MENU_73_74' in /in/H5GFl on line 15 Warning: Illegal offset type in /in/H5GFl on line 15 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 16 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 20 Warning: Illegal offset type in /in/H5GFl on line 20 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 21 Warning: Illegal offset type in /in/H5GFl on line 21 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 22 Notice: Use of undefined constant MENU_73_74_75 - assumed 'MENU_73_74_75' in /in/H5GFl on line 22 Warning: Illegal offset type in /in/H5GFl on line 22 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 23 Warning: Illegal offset type in /in/H5GFl on line 27 Warning: Illegal offset type in /in/H5GFl on line 27 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 31 Warning: Illegal offset type in /in/H5GFl on line 31 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 32 Warning: Illegal offset type in /in/H5GFl on line 32 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 33 Notice: Use of undefined constant MENU_73_74_76 - assumed 'MENU_73_74_76' in /in/H5GFl on line 33 Warning: Illegal offset type in /in/H5GFl on line 33 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 34 Warning: Illegal offset type in /in/H5GFl on line 38 Warning: Illegal offset type in /in/H5GFl on line 38 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 42 Warning: Illegal offset type in /in/H5GFl on line 42 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 43 Warning: Illegal offset type in /in/H5GFl on line 43 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 44 Notice: Use of undefined constant MENU_73_74_77 - assumed 'MENU_73_74_77' in /in/H5GFl on line 44 Warning: Illegal offset type in /in/H5GFl on line 44 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 45 Warning: Illegal offset type in /in/H5GFl on line 49 Warning: Illegal offset type in /in/H5GFl on line 49 Warning: Illegal offset type in /in/H5GFl on line 51 Warning: Illegal offset type in /in/H5GFl on line 53 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 57 Warning: Illegal offset type in /in/H5GFl on line 57 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 58 Warning: Illegal offset type in /in/H5GFl on line 58 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 59 Notice: Use of undefined constant MENU_73_78 - assumed 'MENU_73_78' in /in/H5GFl on line 59 Warning: Illegal offset type in /in/H5GFl on line 59 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 60 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 64 Warning: Illegal offset type in /in/H5GFl on line 64 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 65 Warning: Illegal offset type in /in/H5GFl on line 65 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 66 Notice: Use of undefined constant MENU_73_78_79 - assumed 'MENU_73_78_79' in /in/H5GFl on line 66 Warning: Illegal offset type in /in/H5GFl on line 66 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 67 Warning: Illegal offset type in /in/H5GFl on line 69 Warning: Illegal offset type in /in/H5GFl on line 71 Warning: Illegal offset type in /in/H5GFl on line 73 Warning: Illegal offset type in /in/H5GFl on line 75 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 79 Warning: Illegal offset type in /in/H5GFl on line 79 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 80 Warning: Illegal offset type in /in/H5GFl on line 80 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 81 Notice: Use of undefined constant MENU_73_80 - assumed 'MENU_73_80' in /in/H5GFl on line 81 Warning: Illegal offset type in /in/H5GFl on line 81 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 82 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 86 Warning: Illegal offset type in /in/H5GFl on line 86 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 87 Warning: Illegal offset type in /in/H5GFl on line 87 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 88 Notice: Use of undefined constant MENU_73_80_84 - assumed 'MENU_73_80_84' in /in/H5GFl on line 88 Warning: Illegal offset type in /in/H5GFl on line 88 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 89 Warning: Illegal offset type in /in/H5GFl on line 91 Warning: Illegal offset type in /in/H5GFl on line 93 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 97 Warning: Illegal offset type in /in/H5GFl on line 97 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 98 Warning: Illegal offset type in /in/H5GFl on line 98 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 99 Notice: Use of undefined constant MENU_73_80_85 - assumed 'MENU_73_80_85' in /in/H5GFl on line 99 Warning: Illegal offset type in /in/H5GFl on line 99 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 100 Warning: Illegal offset type in /in/H5GFl on line 102 Warning: Illegal offset type in /in/H5GFl on line 104 Warning: Illegal offset type in /in/H5GFl on line 106 Warning: Illegal offset type in /in/H5GFl on line 108 Warning: Illegal offset type in /in/H5GFl on line 110 Warning: Illegal offset type in /in/H5GFl on line 112 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 116 Warning: Illegal offset type in /in/H5GFl on line 116 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 117 Warning: Illegal offset type in /in/H5GFl on line 117 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 118 Notice: Use of undefined constant MENU_81 - assumed 'MENU_81' in /in/H5GFl on line 118 Warning: Illegal offset type in /in/H5GFl on line 118 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 119 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 123 Warning: Illegal offset type in /in/H5GFl on line 123 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 124 Warning: Illegal offset type in /in/H5GFl on line 124 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 125 Notice: Use of undefined constant MENU_81_82 - assumed 'MENU_81_82' in /in/H5GFl on line 125 Warning: Illegal offset type in /in/H5GFl on line 125 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 126 Warning: Illegal offset type in /in/H5GFl on line 128 Warning: Illegal offset type in /in/H5GFl on line 130 Notice: Use of undefined constant id - assumed 'id' in /in/H5GFl on line 134 Warning: Illegal offset type in /in/H5GFl on line 134 Notice: Use of undefined constant parent_id - assumed 'parent_id' in /in/H5GFl on line 135 Warning: Illegal offset type in /in/H5GFl on line 135 Notice: Use of undefined constant title - assumed 'title' in /in/H5GFl on line 136 Notice: Use of undefined constant MENU_81_83 - assumed 'MENU_81_83' in /in/H5GFl on line 136 Warning: Illegal offset type in /in/H5GFl on line 136 Notice: Use of undefined constant submenu - assumed 'submenu' in /in/H5GFl on line 137 Warning: Illegal offset type in /in/H5GFl on line 139 Warning: Illegal offset type in /in/H5GFl on line 141 Warning: Illegal offset type in /in/H5GFl on line 143 Warning: Illegal offset type in /in/H5GFl on line 145 array(0) { }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/H5GFl on line 4
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 '[', expecting ')' in /in/H5GFl on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `')'' in /in/H5GFl on line 4
Process exited with code 255.