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/opensearch/1.1/","xmlns$gd":"http://schemas.google.com/g/2005","xmlns$yt":"http://gdata.youtube.com/schemas/2007","gd$etag":"W/\"DkAAR3g9fCp7I2A9Wh9XFEs.\"","id":{"$t":"tag:youtube.com,2008:user:UCsUPTqyJCHRyJkJGsSuE2oQ:uploads"},"updated":{"$t":"2014-03-10T15:19:06.664Z"},"category":[{"scheme":"http://schemas.google.com/g/2005#kind","term":"http://gdata.youtube.com/schemas/2007#video"}],"title":{"$t":"Uploads by sUPTqyJCHRyJkJGsSuE2oQ"},"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?v=2.1"},{"rel":"alternate","type":"text/html","href":"https://www.youtube.com/channel/UCsUPTqyJCHRyJkJGsSuE2oQ/videos"},{"rel":"hub","href":"http://pubsubhubbub.appspot.com"},{"rel":"http://schemas.google.com/g/2005#feed","type":"application/atom+xml","href":"https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads?v=2.1"},{"rel":"http://schemas.google.com/g/2005#batch","type":"application/atom+xml","href":"https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads/batch?v=2.1"},{"rel":"self","type":"application/atom+xml","href":"https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads?alt=json&start-index=1&max-results=25&v=2.1"},{"rel":"service","type":"application/atomsvc+xml","href":"https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads?alt=atom-service&v=2.1"}],"author":[{"name":{"$t":"sUPTqyJCHRyJkJGsSuE2oQ"},"uri":{"$t":"https://gdata.youtube.com/feeds/api/users/sUPTqyJCHRyJkJGsSuE2oQ"},"yt$userId":{"$t":"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}}}',TRUE));
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { ["version"]=> string(3) "1.0" ["encoding"]=> string(5) "UTF-8" ["feed"]=> array(16) { ["xmlns"]=> string(27) "http://www.w3.org/2005/Atom" ["xmlns$openSearch"]=> string(36) "http://a9.com/-/spec/opensearch/1.1/" ["xmlns$gd"]=> string(32) "http://schemas.google.com/g/2005" ["xmlns$yt"]=> string(37) "http://gdata.youtube.com/schemas/2007" ["gd$etag"]=> string(28) "W/"DkAAR3g9fCp7I2A9Wh9XFEs."" ["id"]=> array(1) { ["$t"]=> string(58) "tag:youtube.com,2008:user:UCsUPTqyJCHRyJkJGsSuE2oQ:uploads" } ["updated"]=> array(1) { ["$t"]=> string(24) "2014-03-10T15:19:06.664Z" } ["category"]=> array(1) { [0]=> array(2) { ["scheme"]=> string(37) "http://schemas.google.com/g/2005#kind" ["term"]=> string(43) "http://gdata.youtube.com/schemas/2007#video" } } ["title"]=> array(1) { ["$t"]=> string(33) "Uploads by sUPTqyJCHRyJkJGsSuE2oQ" } ["logo"]=> array(1) { ["$t"]=> string(43) "http://www.gstatic.com/youtube/img/logo.png" } ["link"]=> array(7) { [0]=> array(3) { ["rel"]=> string(7) "related" ["type"]=> string(20) "application/atom+xml" ["href"]=> string(70) "https://gdata.youtube.com/feeds/api/users/sUPTqyJCHRyJkJGsSuE2oQ?v=2.1" } [1]=> array(3) { ["rel"]=> string(9) "alternate" ["type"]=> string(9) "text/html" ["href"]=> string(63) "https://www.youtube.com/channel/UCsUPTqyJCHRyJkJGsSuE2oQ/videos" } [2]=> array(2) { ["rel"]=> string(3) "hub" ["href"]=> string(31) "http://pubsubhubbub.appspot.com" } [3]=> array(3) { ["rel"]=> string(37) "http://schemas.google.com/g/2005#feed" ["type"]=> string(20) "application/atom+xml" ["href"]=> string(80) "https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads?v=2.1" } [4]=> array(3) { ["rel"]=> string(38) "http://schemas.google.com/g/2005#batch" ["type"]=> string(20) "application/atom+xml" ["href"]=> string(86) "https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads/batch?v=2.1" } [5]=> array(3) { ["rel"]=> string(4) "self" ["type"]=> string(20) "application/atom+xml" ["href"]=> string(118) "https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads?alt=json&start-index=1&max-results=25&v=2.1" } [6]=> array(3) { ["rel"]=> string(7) "service" ["type"]=> string(23) "application/atomsvc+xml" ["href"]=> string(97) "https://gdata.youtube.com/feeds/api/users/UCsUPTqyJCHRyJkJGsSuE2oQ/uploads?alt=atom-service&v=2.1" } } ["author"]=> array(1) { [0]=> array(3) { ["name"]=> array(1) { ["$t"]=> string(22) "sUPTqyJCHRyJkJGsSuE2oQ" } ["uri"]=> array(1) { ["$t"]=> string(64) "https://gdata.youtube.com/feeds/api/users/sUPTqyJCHRyJkJGsSuE2oQ" } ["yt$userId"]=> array(1) { ["$t"]=> string(22) "sUPTqyJCHRyJkJGsSuE2oQ" } } } ["generator"]=> array(3) { ["$t"]=> string(16) "YouTube data API" ["version"]=> string(3) "2.1" ["uri"]=> string(24) "http://gdata.youtube.com" } ["openSearch$totalResults"]=> array(1) { ["$t"]=> int(0) } ["openSearch$startIndex"]=> array(1) { ["$t"]=> int(1) } ["openSearch$itemsPerPage"]=> array(1) { ["$t"]=> int(25) } } }
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/n3SRk 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/n3SRk 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/n3SRk 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/n3SRk on line 3