3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str= <<<STR %257B%2522content%2522%253A%257B%2522song_id%2522%253A73979307%252C%2522pid%2522%253A%25220%2522%252C%2522title%2522%253A%2522%255Cu4e03%255Cu8272%255Cu6865%2522%252C%2522artist_id%2522%253A73356857%252C%2522artist%2522%253A%2522FightingMan%2522%252C%2522all_artist_id%2522%253A%2522127857%2522%252C%2522all_artist%2522%253A%2522FightingMan%2522%252C%2522author%2522%253A%2522FightingMan%2522%252C%2522compose%2522%253A%2522%2522%252C%2522songwriting%2522%253A%2522%2522%252C%2522mixed%2522%253A%2522%2522%252C%2522arrangements%2522%253A%2522%2522%252C%2522language%2522%253A%2522%2522%252C%2522publishtime%2522%253A%2522%2522%252C%2522file_duration%2522%253A%252268%2522%252C%2522hot%2522%253A%25220%2522%252C%2522hot_listen%2522%253A%25220%2522%252C%2522ting_hot%2522%253A%25220%2522%252C%2522download_count%2522%253A%25220%2522%252C%2522likes%2522%253A%25220%2522%252C%2522style%2522%253A%2522%2522%252C%2522is_down%2522%253A%25221%2522%252C%2522is_zip%2522%253A%25220%2522%252C%2522is_charge%2522%253A%25220%2522%252C%2522price%2522%253A%25220%2522%252C%2522xrank%2522%253A%25220%2522%252C%2522del_status%2522%253A%25220%2522%252C%2522verify_status%2522%253A%25221%2522%252C%2522max_rate%2522%253A%2522320%2522%252C%2522info%2522%253A%2522%2522%252C%2522relate_song_ids%2522%253A%2522%2522%252C%2522ontop%2522%253A%25220%2522%252C%2522allow_cover%2522%253A%25221%2522%252C%2522type%2522%253A%25220%2522%252C%2522is_cover%2522%253A%25220%2522%252C%2522ext%2522%253A%2522%2522%252C%2522style_ids%2522%253A%2522%2522%252C%2522tag_ids%2522%253A%2522%2522%257D%252C%2522audio%2522%253A%257B%2522param%2522%253A%2522http%253A%255C%252F%255C%252Fbcs-sandbox.baidu.com%255C%252Fqukuauto%255C%252F0525ee3363f91cfa6ed55dc1c81ad97d.mp3%2522%257D%252C%2522type%2522%253A%2522song%2522%257D STR; var_dump(json_decode(urldecode(urldecode($str)), true));
based on C91aM
Output for 5.2.0 - 7.2.0
array(3) { ["content"]=> array(38) { ["song_id"]=> int(73979307) ["pid"]=> string(1) "0" ["title"]=> string(9) "七色桥" ["artist_id"]=> int(73356857) ["artist"]=> string(11) "FightingMan" ["all_artist_id"]=> string(6) "127857" ["all_artist"]=> string(11) "FightingMan" ["author"]=> string(11) "FightingMan" ["compose"]=> string(0) "" ["songwriting"]=> string(0) "" ["mixed"]=> string(0) "" ["arrangements"]=> string(0) "" ["language"]=> string(0) "" ["publishtime"]=> string(0) "" ["file_duration"]=> string(2) "68" ["hot"]=> string(1) "0" ["hot_listen"]=> string(1) "0" ["ting_hot"]=> string(1) "0" ["download_count"]=> string(1) "0" ["likes"]=> string(1) "0" ["style"]=> string(0) "" ["is_down"]=> string(1) "1" ["is_zip"]=> string(1) "0" ["is_charge"]=> string(1) "0" ["price"]=> string(1) "0" ["xrank"]=> string(1) "0" ["del_status"]=> string(1) "0" ["verify_status"]=> string(1) "1" ["max_rate"]=> string(3) "320" ["info"]=> string(0) "" ["relate_song_ids"]=> string(0) "" ["ontop"]=> string(1) "0" ["allow_cover"]=> string(1) "1" ["type"]=> string(1) "0" ["is_cover"]=> string(1) "0" ["ext"]=> string(0) "" ["style_ids"]=> string(0) "" ["tag_ids"]=> string(0) "" } ["audio"]=> array(1) { ["param"]=> string(74) "http://bcs-sandbox.baidu.com/qukuauto/0525ee3363f91cfa6ed55dc1c81ad97d.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/sGCOJ on line 7
Process exited with code 255.
Output for 5.1.2
Fatal error: Call to undefined function json_decode() in /in/sGCOJ on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/sGCOJ on line 7
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/sGCOJ on line 7
Process exited with code 255.
Output for 4.4.2
Fatal error: Call to undefined function: json_decode() in /in/sGCOJ on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/sGCOJ on line 7