- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
- Parse error: syntax error, unexpected 'name' (T_STRING) in /in/VGaYV on line 3
Process exited with code 255.
<?php
$json = "{ "name":"John", "age":31, "city":"New York" }";
$object = json_decode($json);
var_dump($object);