3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = '{"type":"FeatureCollection","features":[{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[9.78281,54.923985],[9.80341,54.901586],[9.819803,54.901981],[9.83551,54.908396],[9.825897,54.91481],[9.822721,54.927142],[9.807186,54.927931],[9.792767,54.926797],[9.78281,54.923985]]]}},{"type":"Feature","properties":{},"geometry":{"type":"Polygon","coordinates":[[[9.914474,54.930298],[9.901085,54.912343],[9.849243,54.912146],[9.846497,54.928917],[9.890785,54.946865],[9.930267,54.937399],[9.914474,54.930298]]]}}]}'; $polygon = json_decode($str); foreach($polygon->features as $feature){ foreach($feature->geometry->coordinates as $coordinates) { print_r($coordinates); } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.140.0100.01117.54
8.4.130.0130.00717.78
8.4.120.0100.01120.55
8.4.110.0150.00522.59
8.4.100.0060.00217.55
8.4.90.0070.01220.75
8.4.80.0120.00618.84
8.4.70.0070.00919.11
8.4.60.0120.01118.92
8.4.50.0120.00720.54
8.4.40.0090.00917.63
8.4.30.0090.00920.07
8.4.20.0170.00319.55
8.4.10.0130.00619.46
8.3.270.0090.01016.43
8.3.260.0110.00816.42
8.3.250.0120.00718.92
8.3.240.0070.00116.72
8.3.230.0130.00616.54
8.3.220.0040.00319.14
8.3.210.0050.00218.54
8.3.200.0060.00316.49
8.3.190.0050.00417.21
8.3.180.0160.00618.16
8.3.170.0110.00717.14
8.3.160.0150.00316.67
8.3.150.0080.01220.86
8.3.140.0120.00617.02
8.3.130.0040.00418.30
8.3.120.0090.00018.80
8.3.110.0060.00320.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0110.00016.50
8.3.70.0120.00316.58
8.3.60.0110.01118.10
8.3.50.0170.00019.94
8.3.40.0140.00718.63
8.3.30.0170.00318.51
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0080.00026.16
8.2.290.0120.00620.45
8.2.280.0070.01118.31
8.2.270.0030.01017.21
8.2.260.0040.00416.66
8.2.250.0030.00622.33
8.2.240.0100.00318.88
8.2.230.0140.00022.58
8.2.220.0030.00637.54
8.2.210.0000.01426.77
8.2.200.0090.00016.88
8.2.190.0100.00716.58
8.2.180.0040.01125.92
8.2.170.0100.01018.91
8.2.160.0090.00622.96
8.2.150.0050.00225.66
8.2.140.0080.00024.66
8.2.130.0110.00426.16
8.2.120.0030.00626.16
8.2.110.0000.01019.39
8.2.100.0030.00919.45
8.2.90.0040.00417.63
8.2.80.0060.00318.75
8.2.70.0060.00317.50
8.2.60.0000.00817.50
8.2.50.0030.00517.98
8.2.40.0040.00418.09
8.2.30.0000.00817.77
8.2.20.0000.00719.38
8.2.10.0040.00417.70
8.2.00.0070.00019.37
8.1.330.0110.00820.34
8.1.320.0140.00517.85
8.1.310.0060.00320.07
8.1.300.0030.01420.23
8.1.290.0030.00618.88
8.1.280.0140.00725.92
8.1.270.0060.00323.89
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01019.21
8.1.230.0030.00720.95
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0000.00917.23
8.1.190.0060.00317.23
8.1.180.0030.00618.10
8.1.170.0000.00817.62
8.1.160.0030.00518.90
8.1.150.0040.00418.64
8.1.140.0040.00417.38
8.1.130.0030.00318.90
8.1.120.0000.00817.45
8.1.110.0000.00717.46
8.1.100.0000.00717.48
8.1.90.0070.00017.45
8.1.80.0040.00717.34
8.1.70.0030.00317.38
8.1.60.0000.00817.56
8.1.50.0050.00317.46
8.1.40.0050.00317.58
8.1.30.0040.00417.67
8.1.20.0040.00417.66
8.1.10.0080.00017.57
8.1.00.0050.00217.48
8.0.300.0070.00018.93
8.0.290.0000.00816.75
8.0.280.0070.00018.37
8.0.270.0050.00318.02
8.0.260.0070.00018.37
8.0.250.0050.00317.00
8.0.240.0000.00617.02
8.0.230.0000.00716.99
8.0.220.0000.00716.88
8.0.210.0000.00716.97
8.0.200.0000.00716.94
8.0.190.0000.00816.95
8.0.180.0000.00816.98
8.0.170.0040.00416.88
8.0.160.0080.00016.96
8.0.150.0050.00316.73
8.0.140.0030.00316.78
8.0.130.0080.00013.40
8.0.120.0040.00413.28
8.0.110.0070.00413.31
8.0.100.0060.00613.27
8.0.90.0100.00313.29
8.0.80.0080.00613.21
8.0.70.0110.00213.26
8.0.60.0090.00513.30
8.0.50.0100.00313.28
8.0.30.0090.00513.34
8.0.20.0100.00313.32
8.0.10.0070.00713.38
8.0.00.0030.00313.38
7.4.330.0000.00515.55
7.4.320.0070.00016.43
7.4.300.0000.00916.63
7.4.290.0040.00416.47
7.4.280.0000.00616.42
7.4.270.0000.00716.61
7.4.260.0000.00716.61
7.4.250.0030.00313.40
7.4.240.0110.00413.27
7.4.230.0100.00513.29
7.4.220.0090.00213.39
7.4.210.0060.00613.30
7.4.200.0120.00013.27
7.4.190.0060.00613.43
7.4.180.0090.00413.27
7.4.160.0000.01213.29
7.4.150.0100.00313.20
7.4.140.0120.00013.21
7.4.130.0100.00313.23
7.4.120.0040.00813.20
7.4.110.0040.00813.29
7.4.100.0040.00813.35
7.4.90.0000.00613.18
7.4.80.0060.00013.25
7.4.70.0120.00013.09
7.4.60.0090.00213.23
7.4.50.0120.00013.09
7.4.40.0000.00913.20
7.4.30.0040.00413.19
7.4.20.0030.00313.20
7.4.10.0000.00613.24
7.4.00.0060.00313.14
7.3.330.0030.00316.09
7.3.320.0080.00312.99
7.3.310.0060.00613.03
7.3.300.0100.00313.11
7.3.290.0080.00512.94
7.3.280.0140.00013.03
7.3.270.0050.00913.00
7.3.260.0090.00413.01
7.3.250.0070.00713.01
7.3.240.0100.00413.07
7.3.230.0090.00513.14
7.3.220.0140.00012.93
7.3.210.0070.00713.04
7.3.200.0130.00012.85
7.3.190.0130.00013.08
7.3.180.0060.00712.98
7.3.170.0100.00413.04
7.3.160.0060.00612.99
7.3.150.0110.00013.05
7.3.140.0040.00413.00
7.3.130.0100.00013.08
7.3.120.0040.00412.99
7.3.110.0060.00613.01
7.3.100.0090.00012.94
7.3.90.0100.00313.15
7.3.80.0040.00412.85
7.3.70.0040.00513.04
7.3.60.0090.00313.17
7.3.50.0120.00013.20
7.3.40.0080.00313.07
7.3.30.0030.00513.25
7.3.20.0000.00814.99
7.3.10.0000.00814.95
7.3.00.0050.00214.86

preferences:
29.67 ms | 403 KiB | 5 Q