3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [0.01, 0.99]; $sum = 0; foreach ($array as $value) { $sum += $value; } echo number_format($value, 2);

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.0040.01116.63
8.3.50.0120.00721.13
8.3.40.0090.00618.68
8.3.30.0110.00318.79
8.3.20.0080.00620.35
8.3.10.0040.00423.48
8.3.00.0040.00423.48
8.2.180.0130.01016.63
8.2.170.0100.00722.96
8.2.160.0100.00320.47
8.2.150.0000.00825.66
8.2.140.0000.00824.66
8.2.130.0080.00019.89
8.2.120.0040.00426.35
8.2.110.0060.00322.20
8.2.100.0090.00317.93
8.2.90.0000.00919.34
8.2.80.0000.00818.04
8.2.70.0030.00617.73
8.2.60.0090.00018.16
8.2.50.0000.00918.07
8.2.40.0060.00322.27
8.2.30.0070.00020.75
8.2.20.0040.00417.78
8.2.10.0040.00418.06
8.2.00.0040.00418.16
8.1.280.0140.00725.92
8.1.270.0040.01123.82
8.1.260.0070.00328.09
8.1.250.0030.00628.09
8.1.240.0040.00423.98
8.1.230.0080.00419.14
8.1.220.0030.00617.78
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0080.00017.48
8.1.180.0030.00518.10
8.1.170.0040.00418.70
8.1.160.0040.00420.82
8.1.150.0000.00918.85
8.1.140.0000.00719.54
8.1.130.0000.00717.82
8.1.120.0000.00717.39
8.1.110.0000.00717.51
8.1.100.0080.00017.50
8.1.90.0070.00017.51
8.1.80.0040.00417.52
8.1.70.0040.00417.41
8.1.60.0060.00317.65
8.1.50.0040.00717.60
8.1.40.0040.00417.61
8.1.30.0000.00817.71
8.1.20.0000.00817.55
8.1.10.0000.00817.56
8.1.00.0000.00817.33
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0000.00718.41
8.0.270.0000.00717.17
8.0.260.0030.00717.05
8.0.250.0070.00016.98
8.0.240.0080.00017.00
8.0.230.0000.00816.99
8.0.220.0050.00216.84
8.0.210.0080.00016.89
8.0.200.0050.00516.91
8.0.190.0040.00416.95
8.0.180.0000.00816.99
8.0.170.0050.00216.96
8.0.160.0030.00316.91
8.0.150.0030.00316.95
8.0.140.0000.00716.87
8.0.130.0000.00513.34
8.0.120.0080.00016.94
8.0.110.0070.00016.94
8.0.100.0030.00516.99
8.0.90.0030.00516.79
8.0.80.0000.01516.89
8.0.70.0020.00516.82
8.0.60.0000.00816.99
8.0.50.0040.00416.94
8.0.30.0100.00817.10
8.0.20.0100.01017.40
8.0.10.0000.00816.96
8.0.00.0090.00916.97
7.4.330.0030.00316.90
7.4.320.0000.00616.49
7.4.300.0030.00516.46
7.4.290.0030.00316.58
7.4.280.0090.00016.66
7.4.270.0060.00016.67
7.4.260.0030.00616.63
7.4.250.0040.00416.51
7.4.240.0060.00116.56
7.4.230.0000.00716.63
7.4.220.0000.01916.60
7.4.210.0110.00416.55
7.4.200.0070.00016.75
7.4.160.0130.00316.52
7.4.150.0090.00917.40
7.4.140.0110.01017.86
7.4.130.0110.00616.59
7.4.120.0070.01016.61
7.4.110.0120.01016.55
7.4.100.0100.01016.62
7.4.90.0080.00916.54
7.4.80.0040.01419.39
7.4.70.0130.00316.45
7.4.60.0040.01216.47
7.4.50.0060.01216.57
7.4.40.0100.00616.67
7.4.30.0000.01616.33
7.4.00.0100.00714.48
7.3.330.0030.00313.32
7.3.320.0060.00013.31
7.3.310.0000.00716.24
7.3.300.0000.00716.41
7.3.290.0090.00516.37
7.3.280.0100.00916.37
7.3.270.0100.00717.40
7.3.260.0130.00716.58
7.3.250.0100.01016.40
7.3.240.0070.01116.61
7.3.230.0140.00416.39
7.3.210.0140.00316.63
7.3.200.0090.01219.39
7.3.190.0070.01016.38
7.3.180.0120.00616.33
7.3.170.0120.00916.48
7.3.160.0040.01216.29
7.2.330.0110.00716.75
7.2.320.0080.00816.60
7.2.310.0060.01016.73
7.2.300.0130.00316.57
7.2.290.0100.00716.79
7.2.60.0040.01116.93
7.2.00.0070.00719.41
7.1.200.0070.00015.51
7.1.100.0000.01318.32
7.1.70.0030.01417.02
7.1.60.0030.02019.27
7.1.50.0060.01617.02
7.1.00.0070.07322.54
7.0.200.0080.00816.51
7.0.60.0030.08721.83
7.0.50.0130.04717.88
7.0.40.0070.05719.95
7.0.30.0270.05320.09
7.0.20.0270.08320.30
7.0.10.0030.06020.28
7.0.00.0030.04320.12
5.6.280.0000.03321.04
5.6.210.0070.05320.61
5.6.200.0100.08018.21
5.6.190.0070.08320.37
5.6.180.0300.05320.56
5.6.170.0370.07020.56
5.6.160.0000.04720.46
5.6.150.0070.08018.16
5.6.140.0070.07318.11
5.6.130.0030.05318.18
5.6.120.0200.07320.89
5.6.110.0170.07020.99
5.6.100.0070.05720.88
5.6.90.0070.06720.97
5.6.80.0000.07320.50
5.5.350.0030.08320.44
5.5.340.0000.08318.01
5.5.330.0030.04320.40
5.5.320.0530.04020.37
5.5.310.0400.07020.26
5.5.300.0100.07017.91
5.5.290.0100.06317.92
5.5.280.0030.05720.87
5.5.270.0100.03720.86
5.5.260.0130.07020.76
5.5.250.0100.07720.54
5.5.240.0000.03320.18

preferences:
60.95 ms | 401 KiB | 5 Q