<?php
$str = <<<STR
{"content": {"pid": 0, "arrangements": "", "likes": 0, "all_artist": "DJSAW", "is_zip": 0, "is_down": 0, "style": "", "compose": "", "author": "DJSAW", "del_status": 0, "is_charge": 0, "hot_listen": 16, "hot": 0, "is_cover": 0, "all_artist_id": 73337669, "type": 0, "songwriting": "", "xrank":0, "file_duration": 320, "price": "0", "max_rate": 320, "publishtime": "1412514686", "allow_cover": 1, "versions": 73955484, "verify_status": 1, "ontop": 0, "ting_hot": 0, "download_count": 0, "artist_id": 73337669, "info": "", "song_id": 73955484, "language": "", "artist": "DJSAW", "relate_song_ids": "", "title": "[]bpm128_house-_%CD%E2\u0332%B6%A5%BC%B6we_will_rock_you_\u02fd%BB%F5", "ext": "", "mixed": ""}, "audio": {"param": "http://cdn.y.baidu.com/yinyueren/1bb70edf25a680d4208c20958e7efca6.mp3"}, "type": "song"}
STR;
var_dump(json_decode($str));
- 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.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
- object(stdClass)#2 (3) {
["content"]=>
object(stdClass)#1 (37) {
["pid"]=>
int(0)
["arrangements"]=>
string(0) ""
["likes"]=>
int(0)
["all_artist"]=>
string(5) "DJSAW"
["is_zip"]=>
int(0)
["is_down"]=>
int(0)
["style"]=>
string(0) ""
["compose"]=>
string(0) ""
["author"]=>
string(5) "DJSAW"
["del_status"]=>
int(0)
["is_charge"]=>
int(0)
["hot_listen"]=>
int(16)
["hot"]=>
int(0)
["is_cover"]=>
int(0)
["all_artist_id"]=>
int(73337669)
["type"]=>
int(0)
["songwriting"]=>
string(0) ""
["xrank"]=>
int(0)
["file_duration"]=>
int(320)
["price"]=>
string(1) "0"
["max_rate"]=>
int(320)
["publishtime"]=>
string(10) "1412514686"
["allow_cover"]=>
int(1)
["versions"]=>
int(73955484)
["verify_status"]=>
int(1)
["ontop"]=>
int(0)
["ting_hot"]=>
int(0)
["download_count"]=>
int(0)
["artist_id"]=>
int(73337669)
["info"]=>
string(0) ""
["song_id"]=>
int(73955484)
["language"]=>
string(0) ""
["artist"]=>
string(5) "DJSAW"
["relate_song_ids"]=>
string(0) ""
["title"]=>
string(61) "[]bpm128_house-_%CD%E2̲%B6%A5%BC%B6we_will_rock_you_˽%BB%F5"
["ext"]=>
string(0) ""
["mixed"]=>
string(0) ""
}
["audio"]=>
object(stdClass)#3 (1) {
["param"]=>
string(69) "http://cdn.y.baidu.com/yinyueren/1bb70edf25a680d4208c20958e7efca6.mp3"
}
["type"]=>
string(4) "song"
}
- Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
- object(stdClass)#1 (3) {
["content"]=>
object(stdClass)#2 (37) {
["pid"]=>
int(0)
["arrangements"]=>
string(0) ""
["likes"]=>
int(0)
["all_artist"]=>
string(5) "DJSAW"
["is_zip"]=>
int(0)
["is_down"]=>
int(0)
["style"]=>
string(0) ""
["compose"]=>
string(0) ""
["author"]=>
string(5) "DJSAW"
["del_status"]=>
int(0)
["is_charge"]=>
int(0)
["hot_listen"]=>
int(16)
["hot"]=>
int(0)
["is_cover"]=>
int(0)
["all_artist_id"]=>
int(73337669)
["type"]=>
int(0)
["songwriting"]=>
string(0) ""
["xrank"]=>
int(0)
["file_duration"]=>
int(320)
["price"]=>
string(1) "0"
["max_rate"]=>
int(320)
["publishtime"]=>
string(10) "1412514686"
["allow_cover"]=>
int(1)
["versions"]=>
int(73955484)
["verify_status"]=>
int(1)
["ontop"]=>
int(0)
["ting_hot"]=>
int(0)
["download_count"]=>
int(0)
["artist_id"]=>
int(73337669)
["info"]=>
string(0) ""
["song_id"]=>
int(73955484)
["language"]=>
string(0) ""
["artist"]=>
string(5) "DJSAW"
["relate_song_ids"]=>
string(0) ""
["title"]=>
string(61) "[]bpm128_house-_%CD%E2̲%B6%A5%BC%B6we_will_rock_you_˽%BB%F5"
["ext"]=>
string(0) ""
["mixed"]=>
string(0) ""
}
["audio"]=>
object(stdClass)#3 (1) {
["param"]=>
string(69) "http://cdn.y.baidu.com/yinyueren/1bb70edf25a680d4208c20958e7efca6.mp3"
}
["type"]=>
string(4) "song"
}
- Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.1, 5.1.3 - 5.1.6
- Fatal error: Call to undefined function json_decode() in /in/WYRrR on line 6
Process exited with code 255. - Output for 5.1.2
- Fatal error: Call to undefined function json_decode() in /in/WYRrR on line 7
Process exited with code 255. - Output for 4.4.5 - 4.4.9
- Fatal error: Call to undefined function: json_decode() in /in/WYRrR on line 6
Process exited with code 255. - Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.1, 4.4.3 - 4.4.4
- Fatal error: Call to undefined function: json_decode() in /in/WYRrR on line 6
Process exited with code 255. - Output for 4.4.2
- Fatal error: Call to undefined function: json_decode() in /in/WYRrR on line 7
Process exited with code 255. - Output for 4.3.0 - 4.3.1
- Fatal error: Call to undefined function: json_decode() in /in/WYRrR on line 6
preferences:
233.05 ms | 401 KiB | 323 Q