3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(json_decode('{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[42.1875,55.178867663281984]}}'));
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
object(stdClass)#1 (3) { ["type"]=> string(7) "Feature" ["properties"]=> object(stdClass)#2 (0) { } ["geometry"]=> object(stdClass)#3 (2) { ["type"]=> string(5) "Point" ["coordinates"]=> array(2) { [0]=> float(42.1875) [1]=> float(55.178867663281984) } } }
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
object(stdClass)#1 (3) { ["type"]=> string(7) "Feature" ["properties"]=> object(stdClass)#2 (0) { } ["geometry"]=> object(stdClass)#3 (2) { ["type"]=> string(5) "Point" ["coordinates"]=> array(2) { [0]=> float(42.1875) [1]=> float(55.178867663282) } } }

preferences:
151.61 ms | 404 KiB | 246 Q