3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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, true));
based on WYRrR
Output for 5.2.0 - 7.2.0
array(3) { ["content"]=> array(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"]=> array(1) { ["param"]=> string(69) "http://cdn.y.baidu.com/yinyueren/1bb70edf25a680d4208c20958e7efca6.mp3" } ["type"]=> string(4) "song" }
Output for 5.0.0 - 5.1.1, 5.1.3 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/v2c2M on line 6
Process exited with code 255.
Output for 5.1.2
Fatal error: Call to undefined function json_decode() in /in/v2c2M 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/v2c2M on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/v2c2M on line 6
Process exited with code 255.
Output for 4.4.2
Fatal error: Call to undefined function: json_decode() in /in/v2c2M 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/v2c2M on line 6