3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '{"a":1, "b": {"ba": {"bb": "bb" } }}'; $obj = json_decode($string); var_dump($obj);
Output for 5.5.33
object(stdClass)#1 (2) { ["a"]=> int(1) ["b"]=> object(stdClass)#2 (1) { ["ba"]=> object(stdClass)#3 (1) { ["bb"]=> string(2) "bb" } } }