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); print_r($data);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => stdClass Object ( [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] => stdClass Object ( [Puritan] => 0 [Enlightenment] => 0 [Romantic] => 0 [Transcendental] => 0 [Dark Romantic] => 0 [African American] => 0 [American Indian] => 0 [International] => 0 ) [legend] => Array ( [0] => stdClass Object ( [title] => Author event [icon] => star_red.png ) [1] => stdClass Object ( [title] => Publication event [icon] => square_blue.png ) [2] => stdClass Object ( [title] => Historical event [icon] => triangle_green.png ) ) [events] => Array ( [0] => stdClass Object ( [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 ) [1] => stdClass Object ( [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 ) ) ) )

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.08 ms | 409 KiB | 8 Q