3v4l.org

run code in 300+ PHP versions simultaneously
<?php $JSON = <<<JSON [ { "id" : "american", "title" : "A Timeline of American Literature", "description" : "LENGTHY DESCRIPTIVE TEXT", "initial_zoom" : "50", "focus_date" : "1650-01-01 00:00:00", "size_importance" : "true", "timezone" : "-06:00", "min_zoom" : "20", "max_zoom" : "80", "image_lane_height" : "50", "display_zoom_level" : "1", "tags" : { "Puritan" : "0", "Enlightenment" : "0", "Romantic" : "0", "Transcendental" : "0", "Dark Romantic": "0", "African American": "0", "American Indian": "0", "International" : "0" }, "legend": [ { "title": "Author event", "icon": "star_red.png" }, { "title": "Publication event", "icon": "square_blue.png" }, { "title": "Historical event", "icon": "triangle_green.png" } ], "events": [ { "id": "american-ccincore-1411541230", "title": "William Bradford born", "description": "LENGTHY DESCRIPTIVE TEXT", "tags": "Puritan", "startdate": "1950-03- 00:00:00", "enddate": "1657-05- 00:00:00", "importance": "50", "date_display": "year", "link": "", "image": "https://www.csustan.edu/sites/default/files/ENGLISH/reuben/pal/chap1/bradford.gif", "icon": "star_red.png", "span_color": "#f66" }, { "id": "american-mforkner-1411364607", "title": "Church Mission Society", "description": "LENGTHY DESCRIPTIVE TEXT", "tags": "", "startdate": "1799-01-01 00:00:00", "enddate": "1799-01-01 00:00:00", "importance": "50", "date_display": "year", "link": "", "image": "http://webarchive.cms-uk.org/_images/tnsaies1.jpg", "icon": ".png", "span_color": "#ccc" } ] } ] JSON; $data = json_decode($JSON); var_dump($data);
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { [0]=> object(stdClass)#1 (14) { ["id"]=> string(8) "american" ["title"]=> string(33) "A Timeline of American Literature" ["description"]=> string(24) "LENGTHY DESCRIPTIVE TEXT" ["initial_zoom"]=> string(2) "50" ["focus_date"]=> string(19) "1650-01-01 00:00:00" ["size_importance"]=> string(4) "true" ["timezone"]=> string(6) "-06:00" ["min_zoom"]=> string(2) "20" ["max_zoom"]=> string(2) "80" ["image_lane_height"]=> string(2) "50" ["display_zoom_level"]=> string(1) "1" ["tags"]=> object(stdClass)#2 (8) { ["Puritan"]=> string(1) "0" ["Enlightenment"]=> string(1) "0" ["Romantic"]=> string(1) "0" ["Transcendental"]=> string(1) "0" ["Dark Romantic"]=> string(1) "0" ["African American"]=> string(1) "0" ["American Indian"]=> string(1) "0" ["International"]=> string(1) "0" } ["legend"]=> array(3) { [0]=> object(stdClass)#3 (2) { ["title"]=> string(12) "Author event" ["icon"]=> string(12) "star_red.png" } [1]=> object(stdClass)#4 (2) { ["title"]=> string(17) "Publication event" ["icon"]=> string(15) "square_blue.png" } [2]=> object(stdClass)#5 (2) { ["title"]=> string(16) "Historical event" ["icon"]=> string(18) "triangle_green.png" } } ["events"]=> array(2) { [0]=> object(stdClass)#6 (12) { ["id"]=> string(28) "american-ccincore-1411541230" ["title"]=> string(21) "William Bradford born" ["description"]=> string(24) "LENGTHY DESCRIPTIVE TEXT" ["tags"]=> string(7) "Puritan" ["startdate"]=> string(17) "1950-03- 00:00:00" ["enddate"]=> string(17) "1657-05- 00:00:00" ["importance"]=> string(2) "50" ["date_display"]=> string(4) "year" ["link"]=> string(0) "" ["image"]=> string(81) "https://www.csustan.edu/sites/default/files/ENGLISH/reuben/pal/chap1/bradford.gif" ["icon"]=> string(12) "star_red.png" ["span_color"]=> string(4) "#f66" } [1]=> object(stdClass)#7 (12) { ["id"]=> string(28) "american-mforkner-1411364607" ["title"]=> string(22) "Church Mission Society" ["description"]=> string(24) "LENGTHY DESCRIPTIVE TEXT" ["tags"]=> string(0) "" ["startdate"]=> string(19) "1799-01-01 00:00:00" ["enddate"]=> string(19) "1799-01-01 00:00:00" ["importance"]=> string(2) "50" ["date_display"]=> string(4) "year" ["link"]=> string(0) "" ["image"]=> string(49) "http://webarchive.cms-uk.org/_images/tnsaies1.jpg" ["icon"]=> string(4) ".png" ["span_color"]=> string(4) "#ccc" } } } }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

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


preferences:
48.67 ms | 409 KiB | 8 Q