<?php
$str = '{
"points": [
[
"39.67495589920286",
"19.799004793167114"
],
[
"39.69503584333047",
"19.854623079299927"
],
[
"39.700847368881",
"19.89471673965454"
],
[
"39.77054750039529",
"19.96612787246704"
],
[
"39.791127230787914",
"19.956514835357666"
],
[
"39.83121363626412",
"19.849398136138916"
],
[
"39.80800856647987",
"19.793779850006104"
],
[
"39.80167855121973",
"19.70726251602173"
],
[
"39.809063512364865",
"19.66881036758423"
],
[
"39.75154536393759",
"19.617998600006104"
],
[
"39.67284188119943",
"19.664690494537354"
],
[
"39.64059509088576",
"19.709322452545166"
],
[
"39.65645604812829",
"19.747774600982666"
]
],
"meta": {
"lat" : "39.60330292590828",
"lng" : "19.88315624618531",
"type" : "roadmap",
"zoom" : "11"
}
}';
$json = json_decode($str, TRUE);
echo json_last_error();
- Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
- 0
- Output for 5.2.0 - 5.2.17
- Fatal error: Call to undefined function json_last_error() in /in/ph52H on line 67
Process exited with code 255. - Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
- Fatal error: Call to undefined function json_decode() in /in/ph52H on line 66
Process exited with code 255. - Output for 4.4.5 - 4.4.9
- Fatal error: Call to undefined function: json_decode() in /in/ph52H on line 66
Process exited with code 255. - Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
- Fatal error: Call to undefined function: json_decode() in /in/ph52H on line 66
Process exited with code 255. - Output for 4.3.0 - 4.3.1
- Fatal error: Call to undefined function: json_decode() in /in/ph52H on line 66
preferences:
240.5 ms | 401 KiB | 460 Q