3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $page = '{"token":"{\"adblock\":false,\"player_type\":null,\"platform\":null,\"user_id\":104297154,\"channel\":\"monstercat\",\"expires\":1478281521,\"chansub\":{\"view_until\":1924905600,\"restricted_bitrates\":[]},\"private\":{\"allowed_to_view\":true},\"privileged\":false,\"source_restricted\":false,\"https_required\":false,\"show_ads\":true,\"device_id\":\"abde53bf9e4af067\"}","sig":"e3281418c5cedc04b47b1181e56108388c95227c","mobile_restricted":false}'; $json = json_decode($page, true); $token = $json['token']; $sig = $json['sig']; echo 'token=' . rawurlencode($token) . '&sig=' . $sig;
based on q2uSI
Output for 5.6.0 - 7.3.0alpha1
token=%7B%22adblock%22%3Afalse%2C%22player_type%22%3Anull%2C%22platform%22%3Anull%2C%22user_id%22%3A104297154%2C%22channel%22%3A%22monstercat%22%2C%22expires%22%3A1478281521%2C%22chansub%22%3A%7B%22view_until%22%3A1924905600%2C%22restricted_bitrates%22%3A%5B%5D%7D%2C%22private%22%3A%7B%22allowed_to_view%22%3Atrue%7D%2C%22privileged%22%3Afalse%2C%22source_restricted%22%3Afalse%2C%22https_required%22%3Afalse%2C%22show_ads%22%3Atrue%2C%22device_id%22%3A%22abde53bf9e4af067%22%7D&sig=e3281418c5cedc04b47b1181e56108388c95227c