3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = '{ "name":"John", "age":31, "city":"New York" }'; $object = json_decode($json); var_dump($object);
based on VGaYV
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
object(stdClass)#1 (3) { ["name"]=> string(4) "John" ["age"]=> int(31) ["city"]=> string(8) "New York" }