3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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'];
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected ';' in /in/4Tedj on line 4
Process exited with code 255.