3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = Array ( [0] => Array ( [Id] => 1 [Departments] => Account Management [Parent Id] => 0 ) [1] => Array ( [Id] => 2 [Departments] => Ad Operations [Parent Id] => 0 ) [2] => Array ( [Id] => 3 [Departments] => Corporate [Parent Id] => 0 ) [3] => Array ( [Id] => 4 [Departments] => Creative Solutions [Parent Id] => 0 ) [4] => Array ( [Id] => 5 [Departments] => Data & Research [Parent Id] => 0 ) [5] => Array ( [Id] => 6 [Departments] => ENS - Account Management [Parent Id] => 0 ) [6] => Array ( [Id] => 7 [Departments] => ENS - Creative Solutions [Parent Id] => 0 ) [7] => Array ( [Id] => 8 [Departments] => ENS - Development [Parent Id] => 0 ) [8] => Array ( [Id] => 9 [Departments] => ENS - Engineering [Parent Id] => 0 ) [9] => Array ( [Id] => 10 [Departments] => ENS - Management [Parent Id] => 0 ) [10] => Array ( [Id] => 11 [Departments] => ENS - Product Management [Parent Id] => 0 ) [11] => Array ( [Id] => 12 [Departments] => Exchange [Parent Id] => 0 ) [12] => Array ( [Id] => 13 [Departments] => Finance [Parent Id] => 0 ) [13] => Array ( [Id] => 14 [Departments] => Human Resources [Parent Id] => 0 ) [14] => Array ( [Id] => 15 [Departments] => Inventory [Parent Id] => 0 ) [15] => Array ( [Id] => 16 [Departments] => Management [Parent Id] => 0 ) [16] => Array ( [Id] => 17 [Departments] => Marketing [Parent Id] => 0 ) [17] => Array ( [Id] => 18 [Departments] => Operations [Parent Id] => 0 ) [18] => Array ( [Id] => 19 [Departments] => Product Strategy [Parent Id] => 0 ) [19] => Array ( [Id] => 20 [Departments] => R&D [Parent Id] => 0 ) [20] => Array ( [Id] => 21 [Departments] => Sales  [Parent Id] => 0 ) [21] => Array ( [Id] => 22 [Departments] => Tech Sol - Client Services [Parent Id] => 0 ) [22] => Array ( [Id] => 23 [Departments] => Tech Sol - Management [Parent Id] => 0 ) [23] => Array ( [Id] => 24 [Departments] => Technology Sales [Parent Id] => 0 ) [24] => Array ( [Id] => 25 [Departments] => UK - Account Management [Parent Id] => 0 ) [25] => Array ( [Id] => 26 [Departments] => UK - Ad Ops [Parent Id] => 0 ) [26] => Array ( [Id] => 27 [Departments] => UK - Creative [Parent Id] => 0 ) [27] => Array ( [Id] => 28 [Departments] => UK - Finance [Parent Id] => 0 ) [28] => Array ( [Id] => 29 [Departments] => UK - Inventory [Parent Id] => 0 ) [29] => Array ( [Id] => 30 [Departments] => UK - Management [Parent Id] => 0 ) [30] => Array ( [Id] => 31 [Departments] => UK - Sales [Parent Id] => 0 ) [31] => Array ( [Id] => 32 [Departments] => UK - Sales Management [Parent Id] => 0 ) [32] => Array ( [Id] => 33 [Departments] => R&D - Data Sciences [Parent Id] => 20 ) [33] => Array ( [Id] => 34 [Departments] => R&D - Data/Tech Ops [Parent Id] => 20 ) [34] => Array ( [Id] => 35 [Departments] => R&D - Development [Parent Id] => 20 ) [35] => Array ( [Id] => 36 [Departments] => R&D - Engineering [Parent Id] => 20 ) [36] => Array ( [Id] => 37 [Departments] => R&D - Management [Parent Id] => 20 ) [37] => Array ( [Id] => 38 [Departments] => R&D - Product Management [Parent Id] => 20 ) [38] => Array ( [Id] => 39 [Departments] => R&D - Data Sciences [Parent Id] => 20 ) [39] => Array ( [Id] => 40 [Departments] => Sales  - Advertising Solutions Group [Parent Id] => 21 ) [40] => Array ( [Id] => 41 [Departments] => Sales - Creative Solutions [Parent Id] => 21 ) [41] => Array ( [Id] => 42 [Departments] => Sales - Emerging Media [Parent Id] => 21 ) [42] => Array ( [Id] => 43 [Departments] => Sales - Exchange [Parent Id] => 21 ) [43] => Array ( [Id] => 44 [Departments] => Sales - Management [Parent Id] => 21 ) [44] => Array ( [Id] => 45 [Departments] => Sales - Media [Parent Id] => 21 ) [45] => Array ( [Id] => 46 [Departments] => Legal [Parent Id] => 0 ) );
Output for 5.4.0 - 5.4.20
Parse error: syntax error, unexpected '[', expecting ')' in /in/6L5FH on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[', expecting ')' in /in/6L5FH on line 5
Process exited with code 255.