3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $json = '{"responseData": {"results":[{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://www.speedtest.net/","url":"http://www.speedtest.net/","visibleUrl":"www.speedtest.net","cacheUrl":"http://www.google.com/search?q\u003dcache:M47_v0xF3m8J:www.speedtest.net","title":"Speedtest.net by Ookla - The Global Broadband Speed \u003cb\u003eTest\u003c/b\u003e","titleNoFormatting":"Speedtest.net by Ookla - The Global Broadband Speed Test","content":"\u003cb\u003eTest\u003c/b\u003e your Internet connection bandwidth to locations around the world with this \ninteractive broadband speed \u003cb\u003etest\u003c/b\u003e from Ookla."},{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://www.test.com/","url":"http://www.test.com/","visibleUrl":"www.test.com","cacheUrl":"http://www.google.com/search?q\u003dcache:S9XHtkEncW8J:www.test.com","title":"Create \u003cb\u003eTests\u003c/b\u003e for Organizational Training and Certification Programs \u003cb\u003e...\u003c/b\u003e","titleNoFormatting":"Create Tests for Organizational Training and Certification Programs ...","content":"\u003cb\u003eTest\u003c/b\u003e.com provides a complete software solution for creating online \u003cb\u003etests\u003c/b\u003e and \nmanaging enterprise and specialist certification programs, in up to 22 languages."},{"GsearchResultClass":"GwebSearch","unescapedUrl":"http://www.speakeasy.net/speedtest/","url":"http://www.speakeasy.net/speedtest/","visibleUrl":"www.speakeasy.net","cacheUrl":"http://www.google.com/search?q\u003dcache:71lCly1h_zMJ:www.speakeasy.net","title":"Speakeasy Speed \u003cb\u003eTest\u003c/b\u003e","titleNoFormatting":"Speakeasy Speed Test","content":"Speakeasy Speed \u003cb\u003eTest\u003c/b\u003e - Broadband Speed \u003cb\u003eTest\u003c/b\u003e. Go to MegaPath Speed \u003cb\u003eTest\u003c/b\u003e \nPlus. Choose a Location Monday 03-Feb 2014, 08:51:52 PM. The Speakeasy \u003cb\u003e...\u003c/b\u003e"}],"cursor":{"resultCount":"266,000,000","pages":[{"start":"0","label":1},{"start":"3","label":2},{"start":"6","label":3},{"start":"9","label":4},{"start":"12","label":5},{"start":"15","label":6},{"start":"18","label":7},{"start":"21","label":8}],"estimatedResultCount":"266000000","currentPageIndex":0,"moreResultsUrl":"http://www.google.com/search?oe\u003dutf8\u0026ie\u003dutf8\u0026source\u003duds\u0026start\u003d0\u0026hl\u003den\u0026q\u003dtest","searchResultTime":"0.15"}}, "responseDetails": null, "responseStatus": 200}'; print_r(json_decode($json, true));
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [responseData] => Array ( [results] => Array ( [0] => Array ( [GsearchResultClass] => GwebSearch [unescapedUrl] => http://www.speedtest.net/ [url] => http://www.speedtest.net/ [visibleUrl] => www.speedtest.net [cacheUrl] => http://www.google.com/search?q=cache:M47_v0xF3m8J:www.speedtest.net [title] => Speedtest.net by Ookla - The Global Broadband Speed <b>Test</b> [titleNoFormatting] => Speedtest.net by Ookla - The Global Broadband Speed Test [content] => <b>Test</b> your Internet connection bandwidth to locations around the world with this interactive broadband speed <b>test</b> from Ookla. ) [1] => Array ( [GsearchResultClass] => GwebSearch [unescapedUrl] => http://www.test.com/ [url] => http://www.test.com/ [visibleUrl] => www.test.com [cacheUrl] => http://www.google.com/search?q=cache:S9XHtkEncW8J:www.test.com [title] => Create <b>Tests</b> for Organizational Training and Certification Programs <b>...</b> [titleNoFormatting] => Create Tests for Organizational Training and Certification Programs ... [content] => <b>Test</b>.com provides a complete software solution for creating online <b>tests</b> and managing enterprise and specialist certification programs, in up to 22 languages. ) [2] => Array ( [GsearchResultClass] => GwebSearch [unescapedUrl] => http://www.speakeasy.net/speedtest/ [url] => http://www.speakeasy.net/speedtest/ [visibleUrl] => www.speakeasy.net [cacheUrl] => http://www.google.com/search?q=cache:71lCly1h_zMJ:www.speakeasy.net [title] => Speakeasy Speed <b>Test</b> [titleNoFormatting] => Speakeasy Speed Test [content] => Speakeasy Speed <b>Test</b> - Broadband Speed <b>Test</b>. Go to MegaPath Speed <b>Test</b> Plus. Choose a Location Monday 03-Feb 2014, 08:51:52 PM. The Speakeasy <b>...</b> ) ) [cursor] => Array ( [resultCount] => 266,000,000 [pages] => Array ( [0] => Array ( [start] => 0 [label] => 1 ) [1] => Array ( [start] => 3 [label] => 2 ) [2] => Array ( [start] => 6 [label] => 3 ) [3] => Array ( [start] => 9 [label] => 4 ) [4] => Array ( [start] => 12 [label] => 5 ) [5] => Array ( [start] => 15 [label] => 6 ) [6] => Array ( [start] => 18 [label] => 7 ) [7] => Array ( [start] => 21 [label] => 8 ) ) [estimatedResultCount] => 266000000 [currentPageIndex] => 0 [moreResultsUrl] => http://www.google.com/search?oe=utf8&ie=utf8&source=uds&start=0&hl=en&q=test [searchResultTime] => 0.15 ) ) [responseDetails] => [responseStatus] => 200 )
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/6oTMA on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/6oTMA on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/6oTMA on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/6oTMA on line 4