3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "0 " : "test1" }'; // just decode that into an object $obj = json_decode($json); // recast it into an array $array = (array) $obj; // just dump to see the results var_dump($obj, $array, $array['0 '], $array[0]);

preferences:
30.64 ms | 402 KiB | 5 Q