3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = '{"error":false,"ads":{"0":{"id":1,"isbn":"7487484484","name":"kjdjdjd","edition":"6","price":433,"offer_price":1666,"pages":100,"image":"","created":"0000-00-00 00:00:00","uid":5,"uname":"fkfkf jf"},"1":{"id":2,"isbn":"55555755","name":"ccc","edition":"6","price":7578,"offer_price":8658,"pages":66,"image":"","created":"0000-00-00 00:00:00","uid":1,"uname":"jdjd"},"2":{"id":9,"isbn":"0544003411","name":"The Lord of the Rings","edition":"50th anniversary one-volume","price":300,"offer_price":100,"pages":1216,"image":null,"created":"2015-10-06 01:44:08","uid":6,"uname":"rahul"},"3":{"id":8,"isbn":"234242223222","name":"The Tale of Two Facebook Accounts","edition":"1","price":100,"offer_price":100,"pages":100,"image":null,"created":"2015-09-17 16:32:23","uid":9,"uname":"Vivek Jha"},"type":"books"}}'; var_dump(json_decode($arr)); ?>
based on X9tR8
Output for 7.0.0 - 7.2.0
object(stdClass)#1 (2) { ["error"]=> bool(false) ["ads"]=> object(stdClass)#3 (5) { ["0"]=> object(stdClass)#2 (11) { ["id"]=> int(1) ["isbn"]=> string(10) "7487484484" ["name"]=> string(7) "kjdjdjd" ["edition"]=> string(1) "6" ["price"]=> int(433) ["offer_price"]=> int(1666) ["pages"]=> int(100) ["image"]=> string(0) "" ["created"]=> string(19) "0000-00-00 00:00:00" ["uid"]=> int(5) ["uname"]=> string(8) "fkfkf jf" } ["1"]=> object(stdClass)#4 (11) { ["id"]=> int(2) ["isbn"]=> string(8) "55555755" ["name"]=> string(3) "ccc" ["edition"]=> string(1) "6" ["price"]=> int(7578) ["offer_price"]=> int(8658) ["pages"]=> int(66) ["image"]=> string(0) "" ["created"]=> string(19) "0000-00-00 00:00:00" ["uid"]=> int(1) ["uname"]=> string(4) "jdjd" } ["2"]=> object(stdClass)#5 (11) { ["id"]=> int(9) ["isbn"]=> string(10) "0544003411" ["name"]=> string(21) "The Lord of the Rings" ["edition"]=> string(27) "50th anniversary one-volume" ["price"]=> int(300) ["offer_price"]=> int(100) ["pages"]=> int(1216) ["image"]=> NULL ["created"]=> string(19) "2015-10-06 01:44:08" ["uid"]=> int(6) ["uname"]=> string(5) "rahul" } ["3"]=> object(stdClass)#6 (11) { ["id"]=> int(8) ["isbn"]=> string(12) "234242223222" ["name"]=> string(33) "The Tale of Two Facebook Accounts" ["edition"]=> string(1) "1" ["price"]=> int(100) ["offer_price"]=> int(100) ["pages"]=> int(100) ["image"]=> NULL ["created"]=> string(19) "2015-09-17 16:32:23" ["uid"]=> int(9) ["uname"]=> string(9) "Vivek Jha" } ["type"]=> string(5) "books" } }
Output for 5.3.20 - 5.6.28
object(stdClass)#1 (2) { ["error"]=> bool(false) ["ads"]=> object(stdClass)#2 (5) { ["0"]=> object(stdClass)#3 (11) { ["id"]=> int(1) ["isbn"]=> string(10) "7487484484" ["name"]=> string(7) "kjdjdjd" ["edition"]=> string(1) "6" ["price"]=> int(433) ["offer_price"]=> int(1666) ["pages"]=> int(100) ["image"]=> string(0) "" ["created"]=> string(19) "0000-00-00 00:00:00" ["uid"]=> int(5) ["uname"]=> string(8) "fkfkf jf" } ["1"]=> object(stdClass)#4 (11) { ["id"]=> int(2) ["isbn"]=> string(8) "55555755" ["name"]=> string(3) "ccc" ["edition"]=> string(1) "6" ["price"]=> int(7578) ["offer_price"]=> int(8658) ["pages"]=> int(66) ["image"]=> string(0) "" ["created"]=> string(19) "0000-00-00 00:00:00" ["uid"]=> int(1) ["uname"]=> string(4) "jdjd" } ["2"]=> object(stdClass)#5 (11) { ["id"]=> int(9) ["isbn"]=> string(10) "0544003411" ["name"]=> string(21) "The Lord of the Rings" ["edition"]=> string(27) "50th anniversary one-volume" ["price"]=> int(300) ["offer_price"]=> int(100) ["pages"]=> int(1216) ["image"]=> NULL ["created"]=> string(19) "2015-10-06 01:44:08" ["uid"]=> int(6) ["uname"]=> string(5) "rahul" } ["3"]=> object(stdClass)#6 (11) { ["id"]=> int(8) ["isbn"]=> string(12) "234242223222" ["name"]=> string(33) "The Tale of Two Facebook Accounts" ["edition"]=> string(1) "1" ["price"]=> int(100) ["offer_price"]=> int(100) ["pages"]=> int(100) ["image"]=> NULL ["created"]=> string(19) "2015-09-17 16:32:23" ["uid"]=> int(9) ["uname"]=> string(9) "Vivek Jha" } ["type"]=> string(5) "books" } }