3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ 'code' => 'parse', 'type' => 1000, 'message' => 'hatla', ] ]; var_dump(json_encode($array)); $json = "[{\"code\":\"download\",\"type\":1000,\"message\":\"hello\"}]"; var_dump(json_decode($json, true));

preferences:
39.57 ms | 402 KiB | 5 Q