@ 2015-12-16T17:15:34Z <?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));
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.0.0 - 7.0.20 , 7.1.0 - 7.1.25 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.33 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.4 , 8.3.6 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 8.3.5 Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 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.5.24 - 5.5.35 , 5.6.8 - 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"
}
}
preferences:dark mode live preview
162.87 ms | 409 KiB | 198 Q