3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_export(json_decode('"result" : { "address_components" : [ { "long_name" : "1800", "short_name" : "1800", "types" : [ "street_number" ] }, { "long_name" : "Sutter St", "short_name" : "Sutter St", "types" : [ "route" ] }, { "long_name" : "San Francisco", "short_name" : "San Francisco", "types" : [ "locality", "political" ] }, { "long_name" : "CA", "short_name" : "CA", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "United States", "short_name" : "US", "types" : [ "country", "political" ] }, { "long_name" : "94115", "short_name" : "94115", "types" : [ "postal_code" ] } ], "adr_address" : "\u003cspan class=\"street-address\"\u003e1800 Sutter St\u003c/span\u003e, \u003cspan class=\"locality\"\u003eSan Francisco\u003c/span\u003e, \u003cspan class=\"region\"\u003eCA\u003c/span\u003e \u003cspan class=\"postal-code\"\u003e94115\u003c/span\u003e, \u003cspan class=\"country-name\"\u003eUnited States\u003c/span\u003e", "formatted_address" : "1800 Sutter St, San Francisco, CA, United States", "formatted_phone_number" : "(415) 931-6986", "geometry" : { "location" : { "lat" : 37.786647, "lng" : -122.430157 } }, "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png", "id" : "afb80b61e0d55c61846e0b73792292bbd90df950", "international_phone_number" : "+1 415-931-6986", "name" : "Mums - Home of Shabu-Shabu (Cafe Mums)", "opening_hours" : { "open_now" : false, "periods" : [ { "close" : { "day" : 0, "time" : "2200" }, "open" : { "day" : 0, "time" : "0700" } }, { "close" : { "day" : 1, "time" : "2200" }, "open" : { "day" : 1, "time" : "0700" } }, { "close" : { "day" : 2, "time" : "2200" }, "open" : { "day" : 2, "time" : "0700" } }, { "close" : { "day" : 3, "time" : "2200" }, "open" : { "day" : 3, "time" : "0700" } }, { "close" : { "day" : 4, "time" : "2200" }, "open" : { "day" : 4, "time" : "0700" } }, { "close" : { "day" : 5, "time" : "2200" }, "open" : { "day" : 5, "time" : "0700" } }, { "close" : { "day" : 6, "time" : "2200" }, "open" : { "day" : 6, "time" : "0700" } } ] }, "photos" : [ { "height" : 341, "html_attributions" : [], "photo_reference" : "CnRnAAAADDiIRGrzLmHClTaYlTkDHlOwddbnilSalLj8b1FJ-UbpGlyXnl3_jN6GpyY114vuBnOidg2ZGl5qh8um60CKKEZolDtybBzMYzObIz13mw-dOBXNnRZENG8fLxI3iUjByPE99ogqef-D5zg4tGZLfBIQQEZZyTBOV2wbDdbmgpZ9GBoUCUgn3NfV0KbhstR-_s4EGwllPhI", "width" : 576 }, { "height" : 1366, "html_attributions" : [], "photo_reference" : "CnRnAAAAqGSRlyCtbRybdMBVQFe5aJmspLlSeaQ4WPxvaokFu-6O1w58QFA1RU_B2KenpOb9dQNgF_6dXFFNugJwWkBLvWXTv7Mud0lyjYmXslTOV6BpzHFTVifPRcqncGa5-xgc3HRv-p4FEHncGQXixV_d2hIQSdN8-HjtA-mvmKvhW7RIqxoUjR-jjkFYxfJr5pRoO6pMANFIlNg", "width" : 2048 }, { "height" : 1366, "html_attributions" : [], "photo_reference" : "CnRnAAAARzYafUNJ6jxNsA8TVriKpvrwbVE_l-BMGTv3v9yW1K006g5EIH7yfJPGvpg7tplmDST09rsVfrurIQBor_jE6h_rKcRB8_lb8ySBTNru74w6ENp3uoYkAdnvYiVpEinF2jP4CLlR-oYpVdhRmB2c3RIQUd2YRUxgcF1Lgeh2IeG7HhoUNwdtJ-GlXCQsNFhAYLvuvfvt0OQ", "width" : 2048 } ], "price_level" : 2, "rating" : 3.9, "reference" : "CpQBhwAAABhR2hekwr2oTV1q2xpIekRvcTBvpRTAV2CeBtMfMGEnTCPO_HAgLLi26FlGfspQiqKrT4sv-DWUFNjmaNQOLURlMZIIOUsYFf50qxwq_AakgwBiRpHDMmuzv4pqJa3jXuFvoCC5WanMIcrDaPwlhFs8uFdSzwjAXNyq03rjSMQyzcZaUQ7tWyFttA6Ox34PVRIQ6sInuXVnzgDzfWIhgYiwYRoULwBRycfU1QMH_QcAdMiPbKqjpM8", "reviews" : [ { "aspects" : [ { "rating" : 1, "type" : "overall" } ], "author_name" : "William Le", "author_url" : "https://plus.google.com/101745605215871584532", "language" : "en", "rating" : 3, "text" : "I chose this venue for a friend&#39;s going away dinner and want to start off by saying we had a blast. All you can eat and drink (mainly drink) for ~40$ is something I couldn&#39;t pass up. All of my friends that hadn&#39;t ever eaten shabu really liked the food but as a person that&#39;s had Shabu many times, I&#39;d have to say it was OK at best. The broth is just boiling water and you essentially have to flavor the food yourself. I gave it 3 stars because the food was 2 stars and the venue 4 stars, which is why we&#39;re at 3 ((2+4)/2) = 3. Math. I knew my degree would pay off. It was really busy on friday night but the waiters/waitresses did a great job refilling our beers and sake as requested. I would definitely be back because of how much fun we ended up having but food wise I would rather be at Shabu House.", "time" : 1384973233 }, { "aspects" : [ { "rating" : 2, "type" : "food" }, { "rating" : 2, "type" : "decor" }, { "rating" : 2, "type" : "service" } ], "author_name" : "Vy Duong", "author_url" : "https://plus.google.com/116924811236058596457", "language" : "en", "rating" : 4, "text" : "My fav place in the city for all-you-can-eat shabu shabu. Prices are comparable to other places. The service is always really good - they&#39;re on top of the service and always ready to bring you more plates of meat, veggies and sauces.", "time" : 1373239100 }, { "aspects" : [ { "rating" : 2, "type" : "overall" } ], "author_name" : "Sara Jones", "author_url" : "https://plus.google.com/102007307827759241525", "language" : "en", "rating" : 4, "text" : "This was pretty solid, but not the best food I&#39;ve ever had.", "time" : 1399604008 }, { "aspects" : [ { "rating" : 3, "type" : "overall" } ], "author_name" : "Tony Cerqueira", "author_url" : "https://plus.google.com/106282139975723972610", "language" : "en", "rating" : 5, "text" : "Good system, almost no waiting for more food refills. Very good quality.", "time" : 1398211696 }, { "aspects" : [ { "rating" : 1, "type" : "food" }, { "rating" : 2, "type" : "decor" }, { "rating" : 1, "type" : "service" } ], "author_name" : "David Lim", "author_url" : "https://plus.google.com/110913068296650994295", "language" : "en", "rating" : 3, "text" : "Good ambience and shabu shabu", "time" : 1362183728 } ], "types" : [ "restaurant", "food", "establishment" ], "url" : "https://plus.google.com/105121082350881647460/about?hl=en-US", "user_ratings_total" : 35, "utc_offset" : -420, "vicinity" : "1800 Sutter St, San Francisco", "website" : "http://www.mumssf.com/" }"',true));
Output for 5.2.0, 5.2.9 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
NULL
Output for 5.2.1 - 5.2.8
'result" : { "address_components" : [ { "long_name" : "1800", "short_name" : "1800", "types" : [ "street_number" ] }, { "long_name" : "Sutter St", "short_name" : "Sutter St", "types" : [ "route" ] }, { "long_name" : "San Francisco", "short_name" : "San Francisco", "types" : [ "locality", "political" ] }, { "long_name" : "CA", "short_name" : "CA", "types" : [ "administrative_area_level_1", "political" ] }, { "long_name" : "United States", "short_name" : "US", "types" : [ "country", "political" ] }, { "long_name" : "94115", "short_name" : "94115", "types" : [ "postal_code" ] } ], "adr_address" : "\\u003cspan class=\\"street-address\\"\\u003e1800 Sutter St\\u003c/span\\u003e, \\u003cspan class=\\"locality\\"\\u003eSan Francisco\\u003c/span\\u003e, \\u003cspan class=\\"region\\"\\u003eCA\\u003c/span\\u003e \\u003cspan class=\\"postal-code\\"\\u003e94115\\u003c/span\\u003e, \\u003cspan class=\\"country-name\\"\\u003eUnited States\\u003c/span\\u003e", "formatted_address" : "1800 Sutter St, San Francisco, CA, United States", "formatted_phone_number" : "(415) 931-6986", "geometry" : { "location" : { "lat" : 37.786647, "lng" : -122.430157 } }, "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png", "id" : "afb80b61e0d55c61846e0b73792292bbd90df950", "international_phone_number" : "+1 415-931-6986", "name" : "Mums - Home of Shabu-Shabu (Cafe Mums)", "opening_hours" : { "open_now" : false, "periods" : [ { "close" : { "day" : 0, "time" : "2200" }, "open" : { "day" : 0, "time" : "0700" } }, { "close" : { "day" : 1, "time" : "2200" }, "open" : { "day" : 1, "time" : "0700" } }, { "close" : { "day" : 2, "time" : "2200" }, "open" : { "day" : 2, "time" : "0700" } }, { "close" : { "day" : 3, "time" : "2200" }, "open" : { "day" : 3, "time" : "0700" } }, { "close" : { "day" : 4, "time" : "2200" }, "open" : { "day" : 4, "time" : "0700" } }, { "close" : { "day" : 5, "time" : "2200" }, "open" : { "day" : 5, "time" : "0700" } }, { "close" : { "day" : 6, "time" : "2200" }, "open" : { "day" : 6, "time" : "0700" } } ] }, "photos" : [ { "height" : 341, "html_attributions" : [], "photo_reference" : "CnRnAAAADDiIRGrzLmHClTaYlTkDHlOwddbnilSalLj8b1FJ-UbpGlyXnl3_jN6GpyY114vuBnOidg2ZGl5qh8um60CKKEZolDtybBzMYzObIz13mw-dOBXNnRZENG8fLxI3iUjByPE99ogqef-D5zg4tGZLfBIQQEZZyTBOV2wbDdbmgpZ9GBoUCUgn3NfV0KbhstR-_s4EGwllPhI", "width" : 576 }, { "height" : 1366, "html_attributions" : [], "photo_reference" : "CnRnAAAAqGSRlyCtbRybdMBVQFe5aJmspLlSeaQ4WPxvaokFu-6O1w58QFA1RU_B2KenpOb9dQNgF_6dXFFNugJwWkBLvWXTv7Mud0lyjYmXslTOV6BpzHFTVifPRcqncGa5-xgc3HRv-p4FEHncGQXixV_d2hIQSdN8-HjtA-mvmKvhW7RIqxoUjR-jjkFYxfJr5pRoO6pMANFIlNg", "width" : 2048 }, { "height" : 1366, "html_attributions" : [], "photo_reference" : "CnRnAAAARzYafUNJ6jxNsA8TVriKpvrwbVE_l-BMGTv3v9yW1K006g5EIH7yfJPGvpg7tplmDST09rsVfrurIQBor_jE6h_rKcRB8_lb8ySBTNru74w6ENp3uoYkAdnvYiVpEinF2jP4CLlR-oYpVdhRmB2c3RIQUd2YRUxgcF1Lgeh2IeG7HhoUNwdtJ-GlXCQsNFhAYLvuvfvt0OQ", "width" : 2048 } ], "price_level" : 2, "rating" : 3.9, "reference" : "CpQBhwAAABhR2hekwr2oTV1q2xpIekRvcTBvpRTAV2CeBtMfMGEnTCPO_HAgLLi26FlGfspQiqKrT4sv-DWUFNjmaNQOLURlMZIIOUsYFf50qxwq_AakgwBiRpHDMmuzv4pqJa3jXuFvoCC5WanMIcrDaPwlhFs8uFdSzwjAXNyq03rjSMQyzcZaUQ7tWyFttA6Ox34PVRIQ6sInuXVnzgDzfWIhgYiwYRoULwBRycfU1QMH_QcAdMiPbKqjpM8", "reviews" : [ { "aspects" : [ { "rating" : 1, "type" : "overall" } ], "author_name" : "William Le", "author_url" : "https://plus.google.com/101745605215871584532", "language" : "en", "rating" : 3, "text" : "I chose this venue for a friend&#39;s going away dinner and want to start off by saying we had a blast. All you can eat and drink (mainly drink) for ~40$ is something I couldn&#39;t pass up. All of my friends that hadn&#39;t ever eaten shabu really liked the food but as a person that&#39;s had Shabu many times, I&#39;d have to say it was OK at best. The broth is just boiling water and you essentially have to flavor the food yourself. I gave it 3 stars because the food was 2 stars and the venue 4 stars, which is why we&#39;re at 3 ((2+4)/2) = 3. Math. I knew my degree would pay off. It was really busy on friday night but the waiters/waitresses did a great job refilling our beers and sake as requested. I would definitely be back because of how much fun we ended up having but food wise I would rather be at Shabu House.", "time" : 1384973233 }, { "aspects" : [ { "rating" : 2, "type" : "food" }, { "rating" : 2, "type" : "decor" }, { "rating" : 2, "type" : "service" } ], "author_name" : "Vy Duong", "author_url" : "https://plus.google.com/116924811236058596457", "language" : "en", "rating" : 4, "text" : "My fav place in the city for all-you-can-eat shabu shabu. Prices are comparable to other places. The service is always really good - they&#39;re on top of the service and always ready to bring you more plates of meat, veggies and sauces.", "time" : 1373239100 }, { "aspects" : [ { "rating" : 2, "type" : "overall" } ], "author_name" : "Sara Jones", "author_url" : "https://plus.google.com/102007307827759241525", "language" : "en", "rating" : 4, "text" : "This was pretty solid, but not the best food I&#39;ve ever had.", "time" : 1399604008 }, { "aspects" : [ { "rating" : 3, "type" : "overall" } ], "author_name" : "Tony Cerqueira", "author_url" : "https://plus.google.com/106282139975723972610", "language" : "en", "rating" : 5, "text" : "Good system, almost no waiting for more food refills. Very good quality.", "time" : 1398211696 }, { "aspects" : [ { "rating" : 1, "type" : "food" }, { "rating" : 2, "type" : "decor" }, { "rating" : 1, "type" : "service" } ], "author_name" : "David Lim", "author_url" : "https://plus.google.com/110913068296650994295", "language" : "en", "rating" : 3, "text" : "Good ambience and shabu shabu", "time" : 1362183728 } ], "types" : [ "restaurant", "food", "establishment" ], "url" : "https://plus.google.com/105121082350881647460/about?hl=en-US", "user_ratings_total" : 35, "utc_offset" : -420, "vicinity" : "1800 Sutter St, San Francisco", "website" : "http://www.mumssf.com/" }'
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/Urqto on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/Urqto on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/Urqto on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/Urqto on line 2