- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25
- Parse error: syntax error, unexpected ';' in /in/4Tedj on line 4
Process exited with code 255.
<?php
$a = json_decode('{"3":{"friend":45,"all":100},"2":{"friend":30,"all":50},"1":{"friend":25,"all":25}}');
var_dump((array) $a);
var_dump($a[3]['friend'];