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": "" }, { "status": "archived", "replied_from": "", "sentiment": "", "tags": "", "posted_by_id": "100003217312194", "posted_by": "100003217312194", "replies": "", "link_parent": "https://www.facebook.com/photo.php?fbid=669424943082868&set=a.393340390691326.95949.391522957539736&type=1", "platform_id": "669424943082868_3226660", "channel_name": "\uae30\ub124\uc2a4 \ucf54\ub9ac\uc544 (Guinness Korea)", "followers": "", "replied_by": "", "content_type": "comment", "text": "\uc774\ub3d9\uc601\ud55c\uc794\ud558\uc9c0\uce5c\uad6c", "link": "https://www.facebook.com/photo.php?fbid=669424943082868&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226660", "moderated_by": "Hyegyeong Ha", "moderation_date": "2013-10-24 07:34:27", "notes": "", "posted_on": "2013-10-23 15:21:27", "reply_date": "" }, { "status": "archived", "replied_from": "", "sentiment": "", "tags": "", "posted_by_id": "100000970955565", "posted_by": "Kiwon Park", "replies": "", "link_parent": "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1", "platform_id": "672868479405181_3226723", "channel_name": "\uae30\ub124\uc2a4 \ucf54\ub9ac\uc544 (Guinness Korea)", "followers": "", "replied_by": "", "content_type": "comment", "text": "\uceac \uba4b\uc9c4\uc0ac\uc9c4", "link": "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226723", "moderated_by": "Hyegyeong Ha", "moderation_date": "2013-10-24 07:34:29", "notes": "", "posted_on": "2013-10-23 15:45:14", "reply_date": "" }, { "status": "archived", "replied_from": "", "sentiment": "", "tags": "", "posted_by_id": "100003661095274", "posted_by": "\uc720\uc778\ubc94", "replies": "", "link_parent": "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1", "platform_id": "672868479405181_3226728", "channel_name": "\uae30\ub124\uc2a4 \ucf54\ub9ac\uc544 (Guinness Korea)", "followers": "", "replied_by": "", "content_type": "comment", "text": "\uc784\uc120\ucca0 \uae30\ub124\uc2a4\ub97c \ubcf4\uba74 \ud615\uc774 \ub5a0\uc62c\ub77c", "link": "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226728", "moderated_by": "Hyegyeong Ha", "moderation_date": "2013-10-24 07:34:32", "notes": "", "posted_on": "2013-10-23 15:49:41", "reply_date": "" }, { "status": "archived", "replied_from": "", "sentiment": "", "tags": "", "posted_by_id": "100003576594217", "posted_by": "\uc784\uc120\ucca0", "replies": "", "link_parent": "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1", "platform_id": "672868479405181_3226739", "channel_name": "\uae30\ub124\uc2a4 \ucf54\ub9ac\uc544 (Guinness Korea)", "followers": "", "replied_by": "", "content_type": "comment", "text": "\uc720\uc778\ubc94 \u314b\u314b \ub0b4 \uc0dd\uba85\uc218", "link": "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226739", "moderated_by": "Hyegyeong Ha", "moderation_date": "2013-10-24 07:34:35", "notes": "", "posted_on": "2013-10-23 15:53:35", "reply_date": "" } ] }'; $decoded = json_decode($str); var_dump($decoded);
Output for 7.0.0 - 7.1.0
object(stdClass)#6 (1) { ["inbound.json"]=> array(5) { [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) "" } [1]=> object(stdClass)#2 (20) { ["status"]=> string(8) "archived" ["replied_from"]=> string(0) "" ["sentiment"]=> string(0) "" ["tags"]=> string(0) "" ["posted_by_id"]=> string(15) "100003217312194" ["posted_by"]=> string(15) "100003217312194" ["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_3226660" ["channel_name"]=> string(36) "기네스 코리아 (Guinness Korea)" ["followers"]=> string(0) "" ["replied_by"]=> string(0) "" ["content_type"]=> string(7) "comment" ["text"]=> string(27) "이동영한잔하지친구" ["link"]=> string(125) "https://www.facebook.com/photo.php?fbid=669424943082868&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226660" ["moderated_by"]=> string(12) "Hyegyeong Ha" ["moderation_date"]=> string(19) "2013-10-24 07:34:27" ["notes"]=> string(0) "" ["posted_on"]=> string(19) "2013-10-23 15:21:27" ["reply_date"]=> string(0) "" } [2]=> object(stdClass)#3 (20) { ["status"]=> string(8) "archived" ["replied_from"]=> string(0) "" ["sentiment"]=> string(0) "" ["tags"]=> string(0) "" ["posted_by_id"]=> string(15) "100000970955565" ["posted_by"]=> string(10) "Kiwon Park" ["replies"]=> string(0) "" ["link_parent"]=> string(106) "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1" ["platform_id"]=> string(23) "672868479405181_3226723" ["channel_name"]=> string(36) "기네스 코리아 (Guinness Korea)" ["followers"]=> string(0) "" ["replied_by"]=> string(0) "" ["content_type"]=> string(7) "comment" ["text"]=> string(16) "캬 멋진사진" ["link"]=> string(125) "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226723" ["moderated_by"]=> string(12) "Hyegyeong Ha" ["moderation_date"]=> string(19) "2013-10-24 07:34:29" ["notes"]=> string(0) "" ["posted_on"]=> string(19) "2013-10-23 15:45:14" ["reply_date"]=> string(0) "" } [3]=> object(stdClass)#4 (20) { ["status"]=> string(8) "archived" ["replied_from"]=> string(0) "" ["sentiment"]=> string(0) "" ["tags"]=> string(0) "" ["posted_by_id"]=> string(15) "100003661095274" ["posted_by"]=> string(9) "유인범" ["replies"]=> string(0) "" ["link_parent"]=> string(106) "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1" ["platform_id"]=> string(23) "672868479405181_3226728" ["channel_name"]=> string(36) "기네스 코리아 (Guinness Korea)" ["followers"]=> string(0) "" ["replied_by"]=> string(0) "" ["content_type"]=> string(7) "comment" ["text"]=> string(46) "임선철 기네스를 보면 형이 떠올라" ["link"]=> string(125) "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226728" ["moderated_by"]=> string(12) "Hyegyeong Ha" ["moderation_date"]=> string(19) "2013-10-24 07:34:32" ["notes"]=> string(0) "" ["posted_on"]=> string(19) "2013-10-23 15:49:41" ["reply_date"]=> string(0) "" } [4]=> object(stdClass)#5 (20) { ["status"]=> string(8) "archived" ["replied_from"]=> string(0) "" ["sentiment"]=> string(0) "" ["tags"]=> string(0) "" ["posted_by_id"]=> string(15) "100003576594217" ["posted_by"]=> string(9) "임선철" ["replies"]=> string(0) "" ["link_parent"]=> string(106) "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1" ["platform_id"]=> string(23) "672868479405181_3226739" ["channel_name"]=> string(36) "기네스 코리아 (Guinness Korea)" ["followers"]=> string(0) "" ["replied_by"]=> string(0) "" ["content_type"]=> string(7) "comment" ["text"]=> string(30) "유인범 ㅋㅋ 내 생명수" ["link"]=> string(125) "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226739" ["moderated_by"]=> string(12) "Hyegyeong Ha" ["moderation_date"]=> string(19) "2013-10-24 07:34:35" ["notes"]=> string(0) "" ["posted_on"]=> string(19) "2013-10-23 15:53:35" ["reply_date"]=> string(0) "" } } }
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
object(stdClass)#1 (1) { ["inbound.json"]=> array(5) { [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) "" } [1]=> object(stdClass)#3 (20) { ["status"]=> string(8) "archived" ["replied_from"]=> string(0) "" ["sentiment"]=> string(0) "" ["tags"]=> string(0) "" ["posted_by_id"]=> string(15) "100003217312194" ["posted_by"]=> string(15) "100003217312194" ["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_3226660" ["channel_name"]=> string(36) "기네스 코리아 (Guinness Korea)" ["followers"]=> string(0) "" ["replied_by"]=> string(0) "" ["content_type"]=> string(7) "comment" ["text"]=> string(27) "이동영한잔하지친구" ["link"]=> string(125) "https://www.facebook.com/photo.php?fbid=669424943082868&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226660" ["moderated_by"]=> string(12) "Hyegyeong Ha" ["moderation_date"]=> string(19) "2013-10-24 07:34:27" ["notes"]=> string(0) "" ["posted_on"]=> string(19) "2013-10-23 15:21:27" ["reply_date"]=> string(0) "" } [2]=> object(stdClass)#4 (20) { ["status"]=> string(8) "archived" ["replied_from"]=> string(0) "" ["sentiment"]=> string(0) "" ["tags"]=> string(0) "" ["posted_by_id"]=> string(15) "100000970955565" ["posted_by"]=> string(10) "Kiwon Park" ["replies"]=> string(0) "" ["link_parent"]=> string(106) "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1" ["platform_id"]=> string(23) "672868479405181_3226723" ["channel_name"]=> string(36) "기네스 코리아 (Guinness Korea)" ["followers"]=> string(0) "" ["replied_by"]=> string(0) "" ["content_type"]=> string(7) "comment" ["text"]=> string(16) "캬 멋진사진" ["link"]=> string(125) "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226723" ["moderated_by"]=> string(12) "Hyegyeong Ha" ["moderation_date"]=> string(19) "2013-10-24 07:34:29" ["notes"]=> string(0) "" ["posted_on"]=> string(19) "2013-10-23 15:45:14" ["reply_date"]=> string(0) "" } [3]=> object(stdClass)#5 (20) { ["status"]=> string(8) "archived" ["replied_from"]=> string(0) "" ["sentiment"]=> string(0) "" ["tags"]=> string(0) "" ["posted_by_id"]=> string(15) "100003661095274" ["posted_by"]=> string(9) "유인범" ["replies"]=> string(0) "" ["link_parent"]=> string(106) "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1" ["platform_id"]=> string(23) "672868479405181_3226728" ["channel_name"]=> string(36) "기네스 코리아 (Guinness Korea)" ["followers"]=> string(0) "" ["replied_by"]=> string(0) "" ["content_type"]=> string(7) "comment" ["text"]=> string(46) "임선철 기네스를 보면 형이 떠올라" ["link"]=> string(125) "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226728" ["moderated_by"]=> string(12) "Hyegyeong Ha" ["moderation_date"]=> string(19) "2013-10-24 07:34:32" ["notes"]=> string(0) "" ["posted_on"]=> string(19) "2013-10-23 15:49:41" ["reply_date"]=> string(0) "" } [4]=> object(stdClass)#6 (20) { ["status"]=> string(8) "archived" ["replied_from"]=> string(0) "" ["sentiment"]=> string(0) "" ["tags"]=> string(0) "" ["posted_by_id"]=> string(15) "100003576594217" ["posted_by"]=> string(9) "임선철" ["replies"]=> string(0) "" ["link_parent"]=> string(106) "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1" ["platform_id"]=> string(23) "672868479405181_3226739" ["channel_name"]=> string(36) "기네스 코리아 (Guinness Korea)" ["followers"]=> string(0) "" ["replied_by"]=> string(0) "" ["content_type"]=> string(7) "comment" ["text"]=> string(30) "유인범 ㅋㅋ 내 생명수" ["link"]=> string(125) "https://www.facebook.com/photo.php?fbid=672868479405181&set=a.393340390691326.95949.391522957539736&type=1&comment_id=3226739" ["moderated_by"]=> string(12) "Hyegyeong Ha" ["moderation_date"]=> string(19) "2013-10-24 07:34:35" ["notes"]=> string(0) "" ["posted_on"]=> string(19) "2013-10-23 15:53:35" ["reply_date"]=> string(0) "" } } }
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/3OXSD on line 118
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/3OXSD on line 118
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/3OXSD on line 118
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/3OXSD on line 118