3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = '{"data":[{"policies":[{"policy":"id","method":"inactive","params":["Tf6gUYCdNUWorDieNLQrHXSuSgyskaPA89X"]}],"token":"8sELyoKTKVQNkBystfvtuRYkyDHAKyuqgYEJLW9ZYo5G","facade":"merchant","label":"Yet Another Test Label","dateCreated":1447428857945,"pairingExpiration":1447515257945,"pairingCode":"TEzhGPp"}]}'; $a = json_decode($a); var_dump($a);
Output for 7.0.0 - 7.2.0
object(stdClass)#3 (1) { ["data"]=> array(1) { [0]=> object(stdClass)#2 (7) { ["policies"]=> array(1) { [0]=> object(stdClass)#1 (3) { ["policy"]=> string(2) "id" ["method"]=> string(8) "inactive" ["params"]=> array(1) { [0]=> string(35) "Tf6gUYCdNUWorDieNLQrHXSuSgyskaPA89X" } } } ["token"]=> string(44) "8sELyoKTKVQNkBystfvtuRYkyDHAKyuqgYEJLW9ZYo5G" ["facade"]=> string(8) "merchant" ["label"]=> string(22) "Yet Another Test Label" ["dateCreated"]=> int(1447428857945) ["pairingExpiration"]=> int(1447515257945) ["pairingCode"]=> string(7) "TEzhGPp" } } }
Output for 5.3.19 - 5.6.28
object(stdClass)#1 (1) { ["data"]=> array(1) { [0]=> object(stdClass)#2 (7) { ["policies"]=> array(1) { [0]=> object(stdClass)#3 (3) { ["policy"]=> string(2) "id" ["method"]=> string(8) "inactive" ["params"]=> array(1) { [0]=> string(35) "Tf6gUYCdNUWorDieNLQrHXSuSgyskaPA89X" } } } ["token"]=> string(44) "8sELyoKTKVQNkBystfvtuRYkyDHAKyuqgYEJLW9ZYo5G" ["facade"]=> string(8) "merchant" ["label"]=> string(22) "Yet Another Test Label" ["dateCreated"]=> int(1447428857945) ["pairingExpiration"]=> int(1447515257945) ["pairingCode"]=> string(7) "TEzhGPp" } } }