3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = json_decode('{"b": {"c": {"10": "abc", "11": "def"}}}'); $aa = (array)$a->b->c; var_dump($aa['10']);

preferences:
30.53 ms | 405 KiB | 5 Q