3v4l.org

run code in 300+ PHP versions simultaneously
<?php $f = json_decode('{ "id": "POST_ID", "from": { "id": "POST_FROM_ID", "name": "FULL NAME" }, "created_time": { "date": "2017-04-28 05:20:59.000000", "timezone_type": 1, "timezone": "+00:00" }, "updated_time": { "date": "2017-04-28 06:20:16.000000", "timezone_type": 1, "timezone": "+00:00" }, "comments": [ { "from": { "id": "COMMENT_FROM_ID", "name": "FULL NAME" }, "id": "COMMENT_ID" }, { "from": { "id": "COMMENT_FROM_ID", "name": "FULL NAME" }, "id": "COMMENT_ID" } ] }'); var_dump($f);
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
object(stdClass)#1 (5) { ["id"]=> string(7) "POST_ID" ["from"]=> object(stdClass)#2 (2) { ["id"]=> string(12) "POST_FROM_ID" ["name"]=> string(9) "FULL NAME" } ["created_time"]=> object(stdClass)#3 (3) { ["date"]=> string(26) "2017-04-28 05:20:59.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" } ["updated_time"]=> object(stdClass)#4 (3) { ["date"]=> string(26) "2017-04-28 06:20:16.000000" ["timezone_type"]=> int(1) ["timezone"]=> string(6) "+00:00" } ["comments"]=> array(2) { [0]=> object(stdClass)#6 (2) { ["from"]=> object(stdClass)#5 (2) { ["id"]=> string(15) "COMMENT_FROM_ID" ["name"]=> string(9) "FULL NAME" } ["id"]=> string(10) "COMMENT_ID" } [1]=> object(stdClass)#8 (2) { ["from"]=> object(stdClass)#7 (2) { ["id"]=> string(15) "COMMENT_FROM_ID" ["name"]=> string(9) "FULL NAME" } ["id"]=> string(10) "COMMENT_ID" } } }

preferences:
147.04 ms | 406 KiB | 197 Q