<?php
$json = <<<'HERE'
{
"psr-4": {
"AppBundle\\": "src/AppBundle",
"Application\\": "src/Application"
}
}
HERE;
var_dump(json_decode($json, true),json_last_error_msg());
- Output for 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.14, 8.4.1 - 8.4.2
- array(1) {
["psr-4"]=>
array(2) {
["AppBundle\"]=>
string(13) "src/AppBundle"
["Application\"]=>
string(15) "src/Application"
}
}
string(8) "No error"
preferences:
72.13 ms | 408 KiB | 5 Q