3v4l.org

run code in 300+ PHP versions simultaneously
<?php $lat1=32.435355; $lng1=45.2894835; $lat2=32.434355; $lng2=45.2894835; $R = 6371000; $dLat = deg2rad($lat2-$lat1); $dLon = deg2rad($lng2-$lng1); $a = sin($dLat/2) *sin($dLat/2) + cos(deg2rad($lat1)) *cos(deg2rad($lat2)) *sin($dLon/2) *sin($dLon/2); $c = 2 * atan2(sqrt($a), sqrt(1-$a)); $d = $R * $c; echo $d; return $d; ?>

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.60.0150.00418.93
8.3.50.0120.01022.16
8.3.40.0120.00619.22
8.3.30.0150.00619.29
8.3.20.0140.00020.47
8.3.10.0060.00322.15
8.3.00.0090.00019.61
8.2.180.0090.00918.79
8.2.170.0100.01022.96
8.2.160.0030.01320.84
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00419.99
8.2.110.0080.00022.50
8.2.100.0080.00319.43
8.2.90.0060.00318.00
8.2.80.0030.00819.52
8.2.70.0060.00318.30
8.2.60.0000.00918.30
8.2.50.0080.00018.30
8.2.40.0040.00420.92
8.2.30.0090.00018.37
8.2.20.0030.00518.09
8.2.10.0040.00418.41
8.2.00.0040.00418.02
8.1.280.0180.00325.92
8.1.270.0100.01020.66
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00623.03
8.1.230.0110.00019.52
8.1.220.0040.00418.16
8.1.210.0050.00318.77
8.1.200.0030.00917.85
8.1.190.0000.00817.86
8.1.180.0030.00518.10
8.1.170.0000.00818.88
8.1.160.0040.00422.50
8.1.150.0040.00419.37
8.1.140.0000.00717.69
8.1.130.0030.00318.18
8.1.120.0040.00417.68
8.1.110.0060.00317.75
8.1.100.0070.00017.86
8.1.90.0000.00717.79
8.1.80.0000.00717.68
8.1.70.0030.00317.73
8.1.60.0080.00018.00
8.1.50.0050.00317.93
8.1.40.0040.00417.83
8.1.30.0000.00818.02
8.1.20.0040.00418.00
8.1.10.0040.00417.91
8.1.00.0080.00317.91
8.0.300.0070.00420.03
8.0.290.0040.00417.13
8.0.280.0000.00819.00
8.0.270.0000.00717.56
8.0.260.0030.00317.60
8.0.250.0030.00317.38
8.0.240.0080.00017.30
8.0.230.0050.00217.40
8.0.220.0030.00317.33
8.0.210.0000.00717.31
8.0.200.0000.00617.34
8.0.190.0070.00017.18
8.0.180.0070.00017.20
8.0.170.0000.00917.19
8.0.160.0000.00717.18
8.0.150.0080.00017.18
8.0.140.0000.00717.23
8.0.130.0000.00513.80
8.0.120.0050.00317.27
8.0.110.0080.00017.31
8.0.100.0030.00617.14
8.0.90.0050.00317.25
8.0.80.0130.00617.06
8.0.70.0070.00017.22
8.0.60.0070.00017.12
8.0.50.0070.00017.20
8.0.30.0110.01217.19
8.0.20.0090.01117.42
8.0.10.0030.00517.50
8.0.00.0060.01217.17
7.4.330.0060.00015.38
7.4.320.0030.00316.94
7.4.300.0030.00316.92
7.4.290.0060.00316.89
7.4.280.0000.00816.99
7.4.270.0000.00716.84
7.4.260.0020.00516.85
7.4.250.0030.00316.86
7.4.240.0030.00316.94
7.4.230.0000.00716.88
7.4.220.0090.00916.73
7.4.210.0060.00916.84
7.4.200.0040.00416.98
7.4.160.0110.00616.54
7.4.150.0070.01017.40
7.4.140.0130.00617.86
7.4.130.0070.01116.70
7.4.120.0120.00716.72
7.4.110.0170.00316.71
7.4.100.0080.00816.61
7.4.90.0110.00716.77
7.4.80.0070.01119.39
7.4.70.0080.00816.61
7.4.60.0100.00716.60
7.4.50.0050.00316.89
7.4.40.0130.01016.77
7.4.30.0160.00616.46
7.4.00.0000.01515.19
7.3.330.0050.00013.54
7.3.320.0040.00813.57
7.3.310.0000.00716.89
7.3.300.0000.00716.64
7.3.290.0090.01016.60
7.3.280.0100.00616.52
7.3.270.0060.01017.40
7.3.260.0100.00716.68
7.3.250.0080.01016.60
7.3.240.0060.01016.44
7.3.230.0070.01416.53
7.3.210.0100.00716.79
7.3.200.0120.00419.39
7.3.190.0090.01316.62
7.3.180.0070.01016.75
7.3.170.0060.01016.65
7.3.160.0090.00916.74
7.2.330.0130.00316.76
7.2.320.0090.01516.66
7.2.310.0060.01016.70
7.2.300.0130.00416.79
7.2.290.0110.00516.63
7.2.60.0060.00917.09
7.2.00.0090.00619.68
7.1.200.0070.00716.30
7.1.100.0090.00918.81
7.1.70.0000.00917.52
7.1.60.0090.01519.50
7.1.50.0070.00717.36
7.1.00.0070.07322.62
7.0.200.0080.00017.25
7.0.140.0030.03322.43
7.0.60.0130.08020.21
7.0.50.0030.06018.17
7.0.40.0170.07720.28
7.0.30.0300.07320.28
7.0.20.0170.04720.32
7.0.10.0300.07720.52
7.0.00.0100.08320.26
5.6.280.0070.07021.16
5.6.210.0100.03721.02
5.6.200.0130.07318.54
5.6.190.0100.08320.77
5.6.180.0270.04320.67
5.6.170.0100.05320.82
5.6.160.0130.03320.82
5.6.150.0070.04318.42
5.6.140.0030.04018.38
5.6.130.0130.07018.53
5.6.120.0000.08721.38
5.6.110.0030.08721.35
5.6.100.0130.05021.35
5.6.90.0170.07021.32
5.6.80.0200.06320.66
5.6.70.0270.07720.62
5.5.350.0300.08020.66
5.5.340.0030.08318.14
5.5.330.0130.07720.62
5.5.320.0070.07320.72
5.5.310.0300.06320.52
5.5.300.0100.07718.14
5.5.290.0030.07318.23
5.5.280.0030.04021.13
5.5.270.0030.04321.02
5.5.260.0070.09021.13
5.5.250.0030.07721.07
5.5.240.0000.04320.40
5.4.450.0200.07319.80
5.4.440.1070.06019.87
5.4.430.0470.07019.58
5.4.420.0870.07019.25
5.4.410.0170.04719.17
5.4.400.0600.07318.89
5.4.390.0630.07718.81
5.4.380.0400.06718.80
5.4.370.0630.04018.80
5.4.360.0430.05018.82
5.4.350.0300.05718.91
5.4.340.0330.05318.93
5.4.320.0300.06318.92
5.4.310.0530.04718.87
5.4.300.0400.06318.95
5.4.290.0330.05718.91
5.4.280.0570.05718.76
5.4.270.0400.05318.70
5.4.260.0400.05318.80
5.4.250.0500.05318.95
5.4.240.0570.05718.83
5.4.230.0570.06318.89
5.4.220.0500.07318.85
5.4.210.0500.05718.77
5.4.200.0430.06316.69
5.4.190.0470.05018.72
5.4.180.0470.07318.86
5.4.170.0500.06318.79
5.4.160.0470.06018.88
5.4.150.0430.07018.93
5.4.140.0470.06316.48
5.4.130.0400.05016.43
5.4.120.0330.06316.42
5.4.110.0330.05716.47
5.4.100.0500.06316.47
5.4.90.0170.07316.31
5.4.80.0430.04716.40
5.4.70.0400.05016.42
5.4.60.0270.05316.43
5.4.50.0400.05716.42
5.4.40.0400.06316.47
5.4.30.0500.05016.24
5.4.20.0670.06716.41
5.4.10.0300.07316.41
5.4.00.0400.06715.76
5.3.290.0400.06014.86
5.3.280.0330.06014.77
5.3.270.0330.06714.78
5.3.260.0430.07714.79
5.3.250.0270.05714.80
5.3.240.0330.05714.78
5.3.230.0370.05714.86
5.3.220.0530.05314.66
5.3.210.0400.05314.65
5.3.200.0430.05014.76
5.3.190.0400.05714.73
5.3.180.0570.06714.75
5.3.170.0500.04314.68
5.3.160.0330.05714.77
5.3.150.0400.06714.76
5.3.140.0370.05314.66
5.3.130.0330.05714.70
5.3.120.0370.05314.63
5.3.110.0430.05314.74
5.3.100.0230.06314.12
5.3.90.0300.06314.28
5.3.80.0500.05014.12
5.3.70.0330.06014.30
5.3.60.0330.06314.18
5.3.50.0270.06014.16
5.3.40.0330.06014.07
5.3.30.0330.05714.08
5.3.20.0400.04713.87
5.3.10.0330.05313.88
5.3.00.0400.05313.79
5.2.170.0270.04711.38
5.2.160.0330.04011.25
5.2.150.0270.05311.32
5.2.140.0230.04711.38
5.2.130.0300.04711.28
5.2.120.0230.04311.16
5.2.110.0230.05011.38
5.2.100.0300.04011.28
5.2.90.0270.04011.38
5.2.80.0300.03711.42
5.2.70.0400.03311.20
5.2.60.0330.04011.24
5.2.50.0300.04011.24
5.2.40.0230.04311.14
5.2.30.0200.04711.20
5.2.20.0300.03011.20
5.2.10.0230.03711.10
5.2.00.0270.03710.97
5.1.60.0230.03310.36
5.1.50.0200.04310.21
5.1.40.0270.03010.17
5.1.30.0270.03010.59
5.1.20.0170.04310.74
5.1.10.0270.03010.33
5.1.00.0300.03010.23
5.0.50.0230.0238.93
5.0.40.0100.0338.62
5.0.30.0270.0478.46
5.0.20.0170.0338.49
5.0.10.0100.0338.40
5.0.00.0200.0408.31
4.4.90.0170.0206.75
4.4.80.0070.0276.75
4.4.70.0170.0176.75
4.4.60.0100.0236.75
4.4.50.0230.0236.75
4.4.40.0100.0476.75
4.4.30.0070.0306.75
4.4.20.0170.0276.75
4.4.10.0130.0236.75
4.4.00.0100.0436.75
4.3.110.0070.0376.75
4.3.100.0130.0206.75
4.3.90.0130.0306.75
4.3.80.0130.0436.75
4.3.70.0100.0336.75
4.3.60.0170.0176.75
4.3.50.0170.0206.75
4.3.40.0170.0336.75
4.3.30.0030.0276.75
4.3.20.0130.0236.75
4.3.10.0030.0306.75
4.3.00.0000.0236.95

preferences:
51.57 ms | 401 KiB | 5 Q