3v4l.org

run code in 200+ php & hhvm versions
<?php $LOM = <<<JSON {"id":0,"type":"root","related_dropzone_id":0,"related_dropzone_order":0,"children":{"1376071054231":{"id":"1376071054231","type":"section","related_dropzone_id":0,"related_dropzone_order":1,"dropzones":{"A":1376071054231},"options":{},"children":{"1376071056267":{"id":"1376071056267","type":"section","related_dropzone_id":1376071054231,"related_dropzone_order":0,"dropzones":{"A":1376071056267},"options":{}}}}}} JSON; var_dump(json_decode($LOM, true));

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
array(5) { ["id"]=> int(0) ["type"]=> string(4) "root" ["related_dropzone_id"]=> int(0) ["related_dropzone_order"]=> int(0) ["children"]=> array(1) { [1376071054231]=> array(7) { ["id"]=> string(13) "1376071054231" ["type"]=> string(7) "section" ["related_dropzone_id"]=> int(0) ["related_dropzone_order"]=> int(1) ["dropzones"]=> array(1) { ["A"]=> int(1376071054231) } ["options"]=> array(0) { } ["children"]=> array(1) { [1376071056267]=> array(6) { ["id"]=> string(13) "1376071056267" ["type"]=> string(7) "section" ["related_dropzone_id"]=> int(1376071054231) ["related_dropzone_order"]=> int(0) ["dropzones"]=> array(1) { ["A"]=> int(1376071056267) } ["options"]=> array(0) { } } } } } }
Output for Array change keys
array(5) { ["id"]=> int(0) ["type"]=> string(4) "root" ["related_dropzone_id"]=> int(0) ["related_dropzone_order"]=> int(0) ["children"]=> array(1) { [1376071054231]=> array(7) { ["id"]=> string(13) "1376071054231" ["type"]=> string(7) "section" ["related_dropzone_id"]=> int(0) ["related_dropzone_order"]=> int(1) ["dropzones"]=> array(1) { ["A"]=> int(1376071054231) } ["options"]=> array(0) { } ["children"]=> array(1) { [1376071056267]=> array(6) { ["id"]=> string(13) "1376071056267" ["type"]=> string(7) "section" ["related_dropzone_id"]=> int(1376071054231) ["related_dropzone_order"]=> int(0) ["dropzones"]=> array(1) { ["A"]=> int(1376071056267) } ["options"]=> array(0) { } } } } } }
Output for Lexical anon
array(5) { ["id"]=> int(0) ["type"]=> string(4) "root" ["related_dropzone_id"]=> int(0) ["related_dropzone_order"]=> int(0) ["children"]=> array(1) { [1376071054231]=> array(7) { ["id"]=> string(13) "1376071054231" ["type"]=> string(7) "section" ["related_dropzone_id"]=> int(0) ["related_dropzone_order"]=> int(1) ["dropzones"]=> array(1) { ["A"]=> int(1376071054231) } ["options"]=> array(0) { } ["children"]=> array(1) { [1376071056267]=> array(6) { ["id"]=> string(13) "1376071056267" ["type"]=> string(7) "section" ["related_dropzone_id"]=> int(1376071054231) ["related_dropzone_order"]=> int(0) ["dropzones"]=> array(1) { ["A"]=> int(1376071056267) } ["options"]=> array(0) { } } } } } }

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page