3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = '{ "inbound.json": [ { "status": "archived", "replied_from": "", "sentiment": "", "tags": "", "posted_by_id": "100003494427473", "posted_by": "100003494427473", "replies": "", "link_parent": "https://www.facebook.com/photo.php?fbid=669424943082868&set=a.393340390691326.95949.391522957539736&type=1", "platform_id": "669424943082868_3226642", "channel_name": "\uae30\ub124\uc2a4 \ucf54\ub9ac\uc544 (Guinness Korea)", "followers": "", "replied_by": "", "content_type": "comment", "text": "\ucd5c\ud76c\uacbd \ud55c\uc794 \ub561\uae34\ub2e4", "link": "https://www.facebook.com/photo.php?fbid=669424943082868&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226642", "moderated_by": "Hyegyeong Ha", "moderation_date": "2013-10-24 07:34:24", "notes": "", "posted_on": "2013-10-23 15:15:57", "reply_date": "" } ] }'; $decoded = json_decode($str); var_dump($decoded);
Output for 7.0.0 - 7.1.0
object(stdClass)#2 (1) { ["inbound.json"]=> array(1) { [0]=> object(stdClass)#1 (20) { ["status"]=> string(8) "archived" ["replied_from"]=> string(0) "" ["sentiment"]=> string(0) "" ["tags"]=> string(0) "" ["posted_by_id"]=> string(15) "100003494427473" ["posted_by"]=> string(15) "100003494427473" ["replies"]=> string(0) "" ["link_parent"]=> string(106) "https://www.facebook.com/photo.php?fbid=669424943082868&set=a.393340390691326.95949.391522957539736&type=1" ["platform_id"]=> string(23) "669424943082868_3226642" ["channel_name"]=> string(36) "기네스 코리아 (Guinness Korea)" ["followers"]=> string(0) "" ["replied_by"]=> string(0) "" ["content_type"]=> string(7) "comment" ["text"]=> string(28) "최희경 한잔 땡긴다" ["link"]=> string(125) "https://www.facebook.com/photo.php?fbid=669424943082868&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226642" ["moderated_by"]=> string(12) "Hyegyeong Ha" ["moderation_date"]=> string(19) "2013-10-24 07:34:24" ["notes"]=> string(0) "" ["posted_on"]=> string(19) "2013-10-23 15:15:57" ["reply_date"]=> string(0) "" } } }
Output for 5.2.0 - 5.6.25, hhvm-3.10.0 - 3.12.0
object(stdClass)#1 (1) { ["inbound.json"]=> array(1) { [0]=> object(stdClass)#2 (20) { ["status"]=> string(8) "archived" ["replied_from"]=> string(0) "" ["sentiment"]=> string(0) "" ["tags"]=> string(0) "" ["posted_by_id"]=> string(15) "100003494427473" ["posted_by"]=> string(15) "100003494427473" ["replies"]=> string(0) "" ["link_parent"]=> string(106) "https://www.facebook.com/photo.php?fbid=669424943082868&set=a.393340390691326.95949.391522957539736&type=1" ["platform_id"]=> string(23) "669424943082868_3226642" ["channel_name"]=> string(36) "기네스 코리아 (Guinness Korea)" ["followers"]=> string(0) "" ["replied_by"]=> string(0) "" ["content_type"]=> string(7) "comment" ["text"]=> string(28) "최희경 한잔 땡긴다" ["link"]=> string(125) "https://www.facebook.com/photo.php?fbid=669424943082868&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226642" ["moderated_by"]=> string(12) "Hyegyeong Ha" ["moderation_date"]=> string(19) "2013-10-24 07:34:24" ["notes"]=> string(0) "" ["posted_on"]=> string(19) "2013-10-23 15:15:57" ["reply_date"]=> string(0) "" } } }
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/YehZb on line 30
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/YehZb on line 30
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/YehZb on line 30
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/YehZb on line 30