3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $jsonstr = <<<EOT { "myObject": { "foo":"bar", "foo2":"bar2" } } EOT; $parsed = json_decode($jsonstr, true); var_dump($parsed);
based on XEm7X
Output for 5.3.19 - 7.2.0
array(1) { ["myObject"]=> array(2) { ["foo"]=> string(3) "bar" ["foo2"]=> string(4) "bar2" } }