3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
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.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.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