3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $list = json_decode(<<<'JSON' [ { TagId: 2, ParentTagId: null, Name: "women" }, { TagId: 5, ParentTagId: 2, Name: "bottom" }, { TagId: 4, ParentTagId: 2, Name: "top" }, { TagId: 7, ParentTagId: 4, Name: "shirt" }, { TagId: 8, ParentTagId: 4, Name: "tshirt" }, { TagId: 12, ParentTagId: 7, Name: "longsleeve" }, { TagId: 16, ParentTagId: null, Name: "men" } ] JSON ); var_dump($list);
based on fEJ5v
Output for 5.3.19 - 7.2.8
NULL