3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(json_decode('{"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$openSearch":"http://a9.com/-/spec/opensearchrss/1.0/","id":{"$t":"http://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads"},"updated":{"$t":"2014-03-10T15:09:06.581Z"},"category":[{"scheme":"http://schemas.google.com/g/2005#kind","term":"http://gdata.youtube.com/schemas/2007#video"}],"title":{"$t":"Uploads by sUPTqyJCHRyJkJGsSuE2oQ","type":"text"},"logo":{"$t":"http://www.gstatic.com/youtube/img/logo.png"},"link":[{"rel":"related","type":"application/atom+xml","href":"https://gdata.youtube.com/feeds/api/users/sUPTqyJCHRyJkJGsSuE2oQ"},{"rel":"alternate","type":"text/html","href":"https://www.youtube.com/channel/UCsUPTqyJCHRyJkJGsSuE2oQ/videos"},{"rel":"http://schemas.google.com/g/2005#feed","type":"application/atom+xml","href":"https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads"},{"rel":"http://schemas.google.com/g/2005#batch","type":"application/atom+xml","href":"https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads/batch"},{"rel":"self","type":"application/atom+xml","href":"https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads?alt=json&start-index=1&max-results=25"}],"author":[{"name":{"$t":"sUPTqyJCHRyJkJGsSuE2oQ"},"uri":{"$t":"https://gdata.youtube.com/feeds/api/users/sUPTqyJCHRyJkJGsSuE2oQ"}}],"generator":{"$t":"YouTube data API","version":"2.1","uri":"http://gdata.youtube.com"},"openSearch$totalResults":{"$t":0},"openSearch$startIndex":{"$t":1},"openSearch$itemsPerPage":{"$t":25}}}'));
Output for 7.0.0 - 7.1.0
object(stdClass)#1 (3) { ["version"]=> string(3) "1.0" ["encoding"]=> string(5) "UTF-8" ["feed"]=> object(stdClass)#2 (13) { ["xmlns"]=> string(27) "http://www.w3.org/2005/Atom" ["xmlns$openSearch"]=> string(39) "http://a9.com/-/spec/opensearchrss/1.0/" ["id"]=> object(stdClass)#3 (1) { ["$t"]=> string(73) "http://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads" } ["updated"]=> object(stdClass)#4 (1) { ["$t"]=> string(24) "2014-03-10T15:09:06.581Z" } ["category"]=> array(1) { [0]=> object(stdClass)#5 (2) { ["scheme"]=> string(37) "http://schemas.google.com/g/2005#kind" ["term"]=> string(43) "http://gdata.youtube.com/schemas/2007#video" } } ["title"]=> object(stdClass)#6 (2) { ["$t"]=> string(33) "Uploads by sUPTqyJCHRyJkJGsSuE2oQ" ["type"]=> string(4) "text" } ["logo"]=> object(stdClass)#7 (1) { ["$t"]=> string(43) "http://www.gstatic.com/youtube/img/logo.png" } ["link"]=> array(5) { [0]=> object(stdClass)#8 (3) { ["rel"]=> string(7) "related" ["type"]=> string(20) "application/atom+xml" ["href"]=> string(64) "https://gdata.youtube.com/feeds/api/users/sUPTqyJCHRyJkJGsSuE2oQ" } [1]=> object(stdClass)#9 (3) { ["rel"]=> string(9) "alternate" ["type"]=> string(9) "text/html" ["href"]=> string(63) "https://www.youtube.com/channel/UCsUPTqyJCHRyJkJGsSuE2oQ/videos" } [2]=> object(stdClass)#10 (3) { ["rel"]=> string(37) "http://schemas.google.com/g/2005#feed" ["type"]=> string(20) "application/atom+xml" ["href"]=> string(74) "https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads" } [3]=> object(stdClass)#11 (3) { ["rel"]=> string(38) "http://schemas.google.com/g/2005#batch" ["type"]=> string(20) "application/atom+xml" ["href"]=> string(80) "https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads/batch" } [4]=> object(stdClass)#12 (3) { ["rel"]=> string(4) "self" ["type"]=> string(20) "application/atom+xml" ["href"]=> string(112) "https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads?alt=json&start-index=1&max-results=25" } } ["author"]=> array(1) { [0]=> object(stdClass)#14 (2) { ["name"]=> object(stdClass)#13 (1) { ["$t"]=> string(22) "sUPTqyJCHRyJkJGsSuE2oQ" } ["uri"]=> object(stdClass)#15 (1) { ["$t"]=> string(64) "https://gdata.youtube.com/feeds/api/users/sUPTqyJCHRyJkJGsSuE2oQ" } } } ["generator"]=> object(stdClass)#16 (3) { ["$t"]=> string(16) "YouTube data API" ["version"]=> string(3) "2.1" ["uri"]=> string(24) "http://gdata.youtube.com" } ["openSearch$totalResults"]=> object(stdClass)#17 (1) { ["$t"]=> int(0) } ["openSearch$startIndex"]=> object(stdClass)#18 (1) { ["$t"]=> int(1) } ["openSearch$itemsPerPage"]=> object(stdClass)#19 (1) { ["$t"]=> int(25) } } }
Output for 5.2.0 - 5.6.22
object(stdClass)#1 (3) { ["version"]=> string(3) "1.0" ["encoding"]=> string(5) "UTF-8" ["feed"]=> object(stdClass)#2 (13) { ["xmlns"]=> string(27) "http://www.w3.org/2005/Atom" ["xmlns$openSearch"]=> string(39) "http://a9.com/-/spec/opensearchrss/1.0/" ["id"]=> object(stdClass)#3 (1) { ["$t"]=> string(73) "http://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads" } ["updated"]=> object(stdClass)#4 (1) { ["$t"]=> string(24) "2014-03-10T15:09:06.581Z" } ["category"]=> array(1) { [0]=> object(stdClass)#5 (2) { ["scheme"]=> string(37) "http://schemas.google.com/g/2005#kind" ["term"]=> string(43) "http://gdata.youtube.com/schemas/2007#video" } } ["title"]=> object(stdClass)#6 (2) { ["$t"]=> string(33) "Uploads by sUPTqyJCHRyJkJGsSuE2oQ" ["type"]=> string(4) "text" } ["logo"]=> object(stdClass)#7 (1) { ["$t"]=> string(43) "http://www.gstatic.com/youtube/img/logo.png" } ["link"]=> array(5) { [0]=> object(stdClass)#8 (3) { ["rel"]=> string(7) "related" ["type"]=> string(20) "application/atom+xml" ["href"]=> string(64) "https://gdata.youtube.com/feeds/api/users/sUPTqyJCHRyJkJGsSuE2oQ" } [1]=> object(stdClass)#9 (3) { ["rel"]=> string(9) "alternate" ["type"]=> string(9) "text/html" ["href"]=> string(63) "https://www.youtube.com/channel/UCsUPTqyJCHRyJkJGsSuE2oQ/videos" } [2]=> object(stdClass)#10 (3) { ["rel"]=> string(37) "http://schemas.google.com/g/2005#feed" ["type"]=> string(20) "application/atom+xml" ["href"]=> string(74) "https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads" } [3]=> object(stdClass)#11 (3) { ["rel"]=> string(38) "http://schemas.google.com/g/2005#batch" ["type"]=> string(20) "application/atom+xml" ["href"]=> string(80) "https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads/batch" } [4]=> object(stdClass)#12 (3) { ["rel"]=> string(4) "self" ["type"]=> string(20) "application/atom+xml" ["href"]=> string(112) "https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads?alt=json&start-index=1&max-results=25" } } ["author"]=> array(1) { [0]=> object(stdClass)#13 (2) { ["name"]=> object(stdClass)#14 (1) { ["$t"]=> string(22) "sUPTqyJCHRyJkJGsSuE2oQ" } ["uri"]=> object(stdClass)#15 (1) { ["$t"]=> string(64) "https://gdata.youtube.com/feeds/api/users/sUPTqyJCHRyJkJGsSuE2oQ" } } } ["generator"]=> object(stdClass)#16 (3) { ["$t"]=> string(16) "YouTube data API" ["version"]=> string(3) "2.1" ["uri"]=> string(24) "http://gdata.youtube.com" } ["openSearch$totalResults"]=> object(stdClass)#17 (1) { ["$t"]=> int(0) } ["openSearch$startIndex"]=> object(stdClass)#18 (1) { ["$t"]=> int(1) } ["openSearch$itemsPerPage"]=> object(stdClass)#19 (1) { ["$t"]=> int(25) } } }
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/YL2MW on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/YL2MW on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/YL2MW on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/YL2MW on line 3