3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = ' { "routes": [ { "bounds": { "northeast": { "lat": 41.9291739, "lng": 23.7293099 }, "southwest": { "lat": 37.9103506, "lng": 12.4822041 } }, "copyrights": "Map data,google", "legs": [ { "distance": { "text": "1,250 km", "value": 1249958 } } ] } ] } '; $json = json_decode($str); $distance = $json[routes][legs][distance][value]; var_dump($distance);

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.3.40.0070.00718.66
8.3.30.0100.00320.20
8.3.20.0040.00418.81
8.3.10.0030.00521.09
8.3.00.0060.00319.69
8.2.170.0110.00422.96
8.2.160.0100.00320.39
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.18
8.2.110.0100.00022.31
8.2.100.0080.00417.91
8.2.90.0080.00019.07
8.2.80.0040.00419.42
8.2.70.0060.00317.63
8.2.60.0070.00018.03
8.2.50.0000.00818.07
8.2.40.0090.00019.88
8.2.30.0040.00419.51
8.2.20.0030.00617.66
8.2.10.0040.00417.79
8.2.00.0000.00817.80
8.1.270.0040.00423.99
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0090.00022.48
8.1.230.0040.00720.89
8.1.220.0040.00418.77
8.1.210.0040.00418.97
8.1.200.0060.00617.35
8.1.190.0030.00617.54
8.1.180.0060.00318.10
8.1.170.0030.00618.66
8.1.160.0040.00418.93
8.1.150.0030.00518.63
8.1.140.0000.00717.36
8.1.130.0070.00017.82
8.1.120.0000.00717.35
8.1.110.0050.00317.47
8.1.100.0050.00217.53
8.1.90.0050.00217.38
8.1.80.0070.00017.36
8.1.70.0030.00317.32
8.1.60.0040.00417.52
8.1.50.0000.00917.46
8.1.40.0030.00617.57
8.1.30.0070.00017.60
8.1.20.0060.00317.67
8.1.10.0050.00217.49
8.1.00.0030.00617.48
8.0.300.0030.00320.02
8.0.290.0040.00417.04
8.0.280.0040.00418.36
8.0.270.0000.00717.18
8.0.260.0030.00316.93
8.0.250.0030.00317.04
8.0.240.0000.00817.06
8.0.230.0040.00417.02
8.0.220.0030.00316.84
8.0.210.0020.00516.97
8.0.200.0000.00617.01
8.0.190.0030.00317.02
8.0.180.0040.00416.99
8.0.170.0040.00416.96
8.0.160.0040.00416.94
8.0.150.0000.00716.96
8.0.140.0000.00816.94
8.0.130.0050.00013.41
8.0.120.0040.00416.84
8.0.110.0040.00417.02
8.0.100.0050.00216.96
8.0.90.0050.00216.94
8.0.80.0120.00616.97
8.0.70.0000.00717.02
8.0.60.0030.00516.82
8.0.50.0040.00416.89
8.0.30.0110.00717.15
8.0.20.0090.00917.40
8.0.10.0070.00017.03
8.0.00.0090.00916.75
7.4.330.0050.00016.77
7.4.320.0000.00616.53
7.4.300.0000.00616.52
7.4.290.0070.00016.58
7.4.280.0000.00716.50
7.4.270.0070.00016.54
7.4.260.0050.00013.26
7.4.250.0000.00916.46
7.4.240.0000.00716.38
7.4.230.0070.00016.35
7.4.220.0120.01216.42
7.4.210.0080.00816.60
7.4.200.0000.00716.58
7.4.190.0030.00316.70
7.4.160.0070.01016.39
7.4.150.0060.01917.40
7.4.140.0100.01017.86
7.4.130.0070.01016.64
7.4.120.0070.01016.62
7.4.110.0110.00716.53
7.4.100.0070.01616.48
7.4.90.0090.00916.50
7.4.80.0100.01019.39
7.4.70.0120.00616.64
7.4.60.0110.00716.60
7.4.50.0000.00816.27
7.4.40.0090.00522.77
7.4.30.0000.01616.59
7.4.00.0100.00714.86
7.3.330.0000.00613.18
7.3.320.0050.00013.13
7.3.310.0030.00316.13
7.3.300.0040.00416.26
7.3.290.0070.00616.29
7.3.280.0050.01216.29
7.3.270.0070.01217.40
7.3.260.0110.01118.24
7.3.250.0120.00916.30
7.3.240.0120.00616.38
7.3.230.0070.01016.42
7.3.210.0060.01116.43
7.3.200.0070.01319.39
7.3.190.0120.00916.37
7.3.180.0120.00416.43
7.3.170.0090.00616.34
7.3.160.0110.00716.18
7.3.120.0120.00314.79
7.2.330.0030.01416.68
7.2.320.0060.01616.65
7.2.310.0060.01516.73
7.2.300.0040.01516.43
7.2.290.0130.00816.49
7.2.60.0000.01616.85
7.2.00.0060.00619.44
7.1.200.0050.00515.80
7.1.100.0040.00718.18
7.1.70.0000.01017.36
7.1.60.0040.02119.24
7.1.50.0040.00717.00
7.1.00.0030.07022.41
7.0.200.0080.00016.88
7.0.140.0030.07321.97
7.0.60.0030.07319.91
7.0.50.0070.08317.79
7.0.40.0130.04720.06
7.0.30.0230.03320.20
7.0.20.0370.08020.09
7.0.10.0070.05320.00
7.0.00.0000.04720.32
5.6.280.0030.07321.01
5.6.210.0100.03720.71
5.6.200.0170.06718.19
5.6.190.0100.08020.76
5.6.180.4070.04720.45
5.6.170.0270.06320.42
5.6.160.0030.05320.37
5.6.150.0130.05318.21
5.6.140.0070.08318.10
5.6.130.0100.07718.18
5.6.120.0070.05721.04
5.6.110.0130.08020.98
5.6.100.0070.08721.13
5.6.90.0130.05320.96
5.6.80.0170.07020.47
5.6.70.3300.03020.42
5.5.350.0200.08720.30
5.5.340.0070.08018.00
5.5.330.0100.07720.15
5.5.320.0300.08020.31
5.5.310.0230.06720.29
5.5.300.0100.03717.91
5.5.290.0130.07717.90
5.5.280.0170.05320.76
5.5.270.0070.09020.87
5.5.260.0070.08320.74
5.5.250.0130.06020.79
5.5.240.0100.03720.14
5.4.450.0370.03019.39
5.4.440.0130.04019.54
5.4.430.0130.04019.48
5.4.420.0170.03319.40
5.4.410.0130.03719.27
5.4.400.0470.06319.13
5.4.390.0370.06019.13
5.4.380.0330.03318.82
5.4.370.0370.04319.13
5.4.360.0330.05019.06
5.4.350.0370.03719.09
5.4.340.0500.02718.80
5.4.320.0470.06719.21
5.4.310.0370.05019.25
5.4.300.0400.03319.10
5.4.290.0470.06319.09
5.4.280.0370.04018.95
5.4.270.0370.04719.09
5.4.260.0500.06018.88
5.4.250.0370.03719.08
5.4.240.0330.04019.13
5.4.230.0500.06719.08
5.4.220.0400.05319.12
5.4.210.0300.06018.78
5.4.200.0470.05018.91
5.4.190.0330.04018.79
5.4.180.0370.03719.07
5.4.170.0500.05019.12
5.4.160.0430.04319.04
5.4.150.0470.06719.06
5.4.140.0300.05016.45
5.4.130.0300.04316.15
5.4.120.0430.05016.28
5.4.110.0430.05716.48
5.4.100.0430.06016.06
5.4.90.0400.04016.32
5.4.80.0430.06016.39
5.4.70.0400.06716.35
5.4.60.0570.03716.36
5.4.50.0370.03016.19
5.4.40.0300.03316.43
5.4.30.0300.04016.18
5.4.20.0300.04016.46
5.4.10.0330.07016.47
5.4.00.0370.03715.89
5.3.290.0470.06314.57
5.3.280.0470.03014.47
5.3.270.0430.07014.47
5.3.260.0370.07314.56
5.3.250.0300.04014.55
5.3.240.0400.07014.56
5.3.230.0370.07014.55
5.3.220.0330.06714.43
5.3.210.0330.04314.45
5.3.200.0470.05714.45
5.3.190.0400.04314.62
5.3.180.0500.04314.45
5.3.170.0400.06314.41
5.3.160.0330.04314.62
5.3.150.0270.03714.41
5.3.140.0270.04014.65
5.3.130.0270.04014.41
5.3.120.0230.04314.48
5.3.110.0370.05314.40
5.3.100.0400.06013.99
5.3.90.0300.04013.86
5.3.80.0400.06314.05
5.3.70.0330.03313.82
5.3.60.0330.04713.96
5.3.50.0430.03713.78
5.3.40.0230.05313.90
5.3.30.0400.06313.77
5.3.20.0330.06713.57
5.3.10.0430.05713.52
5.3.00.0370.04013.59
5.2.170.0300.06012.30
5.2.160.0370.04712.30
5.2.150.0300.05312.30
5.2.140.0300.06012.30
5.2.130.0230.04711.92
5.2.120.0330.03311.92
5.2.110.0400.04311.92
5.2.100.0430.04711.92
5.2.90.0430.05311.92
5.2.80.0300.03711.92
5.2.70.0370.05711.92
5.2.60.0430.05011.92
5.2.50.0330.02311.92
5.2.40.0270.06011.92
5.2.30.0370.05711.92
5.2.20.0300.05011.92
5.2.10.0330.05011.92
5.2.00.0330.04311.92
5.1.60.0270.02711.92
5.1.50.0300.02711.92
5.1.40.0300.04711.92
5.1.30.0230.03311.92
5.1.20.0270.04711.92
5.1.10.0270.03011.92
5.1.00.0300.03311.92
5.0.50.0130.04011.92
5.0.40.0170.02311.92
5.0.30.0230.05311.92
5.0.20.0130.02311.92
5.0.10.0130.02011.92
5.0.00.0270.04711.92
4.4.90.0170.01711.92
4.4.80.0130.03311.92
4.4.70.0130.03011.92
4.4.60.0200.01311.92
4.4.50.0130.03311.92
4.4.40.0170.04711.92
4.4.30.0130.01711.92
4.4.20.0100.01711.92
4.4.10.0200.01711.92
4.4.00.0130.04711.92
4.3.110.0100.02011.92
4.3.100.0170.01711.92
4.3.90.0170.01311.92
4.3.80.0130.04311.92
4.3.70.0170.03311.92
4.3.60.0170.03011.92
4.3.50.0100.02711.92
4.3.40.0200.04711.92
4.3.30.0070.03011.92
4.3.20.0070.04011.92
4.3.10.0070.01711.92
4.3.00.0030.02011.92

preferences:
40.7 ms | 400 KiB | 5 Q