3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = '{"a":1, "b": {"ba": "ba" }}'; $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"]=> string(2) "ba" } }