3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sum = 0; for($x=1; $x<=10; $x++) { $sum +=$x; } echo "The sum of the numbers 0 to 30 is $sum"."\n"; ?>

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.0060.01116.75
8.3.50.0200.00721.11
8.3.40.0090.00618.54
8.3.30.0000.01518.57
8.3.20.0040.00420.58
8.3.10.0080.00021.73
8.3.00.0000.00721.82
8.2.180.0150.00616.63
8.2.170.0120.00322.96
8.2.160.0060.00820.38
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0050.00319.70
8.2.120.0080.00026.35
8.2.110.0040.00419.31
8.2.100.0040.00818.28
8.2.90.0050.00319.20
8.2.80.0090.00017.97
8.2.70.0000.00817.63
8.2.60.0040.00418.04
8.2.50.0000.00818.22
8.2.40.0090.00020.59
8.2.30.0100.00019.35
8.2.20.0000.00718.16
8.2.10.0030.00618.05
8.2.00.0050.00217.62
8.1.280.0070.00725.92
8.1.270.0040.00422.19
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.70
8.1.230.0110.00020.30
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0060.00318.10
8.1.170.0040.00418.46
8.1.160.0040.00418.84
8.1.150.0070.00020.25
8.1.140.0000.00719.49
8.1.130.0040.00417.70
8.1.120.0070.00017.53
8.1.110.0000.00817.31
8.1.100.0040.00417.49
8.1.90.0050.00217.46
8.1.80.0000.00817.39
8.1.70.0000.01017.45
8.1.60.0000.00817.55
8.1.50.0090.00017.47
8.1.40.0040.00417.49
8.1.30.0060.00317.56
8.1.20.0060.00317.69
8.1.10.0000.00717.57
8.1.00.0000.00717.30
8.0.300.0040.00419.09
8.0.290.0080.00016.61
8.0.280.0030.00318.39
8.0.270.0030.00317.18
8.0.260.0000.00617.09
8.0.250.0030.00316.84
8.0.240.0050.00317.01
8.0.230.0040.00416.92
8.0.220.0020.00516.78
8.0.210.0030.00316.93
8.0.200.0030.00316.96
8.0.190.0070.00016.83
8.0.180.0040.00416.78
8.0.170.0080.00016.96
8.0.160.0000.00716.99
8.0.150.0000.00816.78
8.0.140.0000.00816.89
8.0.130.0080.00013.38
8.0.120.0050.00316.91
8.0.110.0000.00716.96
8.0.100.0080.00016.87
8.0.90.0000.00716.88
8.0.80.0070.01016.84
8.0.70.0030.00516.87
8.0.60.0000.00716.85
8.0.50.0000.00716.69
8.0.30.0070.01216.97
8.0.20.0110.01117.40
8.0.10.0000.00717.05
8.0.00.0110.00716.89
7.4.330.0000.00615.55
7.4.320.0060.00016.36
7.4.300.0060.00016.55
7.4.290.0040.00416.57
7.4.280.0070.00316.32
7.4.270.0070.00016.40
7.4.260.0000.01116.41
7.4.250.0000.00716.49
7.4.240.0030.00516.53
7.4.230.0040.00416.55
7.4.220.0110.00716.45
7.4.210.0100.01016.38
7.4.200.0000.00716.25
7.4.160.0070.01016.40
7.4.150.0110.01117.40
7.4.140.0120.00617.86
7.4.130.0080.01116.50
7.4.120.0090.00916.49
7.4.110.0120.00616.43
7.4.100.0050.01116.30
7.4.90.0130.00316.46
7.4.80.0060.00919.39
7.4.70.0100.00716.41
7.4.60.0060.01116.29
7.4.50.0030.01416.41
7.4.40.0060.01616.42
7.4.30.0070.01116.49
7.4.00.0030.00615.02
7.3.330.0000.00613.19
7.3.320.0030.00313.16
7.3.310.0020.00516.36
7.3.300.0000.00616.33
7.3.290.0090.00916.31
7.3.280.0110.00816.34
7.3.270.0100.00717.40
7.3.260.0120.00516.44
7.3.250.0100.00816.38
7.3.240.0060.01116.51
7.3.230.0000.01716.54
7.3.210.0060.00916.36
7.3.200.0130.00316.52
7.3.190.0060.01316.41
7.3.180.0100.00716.54
7.3.170.0130.00916.27
7.3.160.0090.00916.58
7.3.10.0110.00616.89
7.3.00.0060.00616.80
7.2.330.0060.01216.68
7.2.320.0110.01116.33
7.2.310.0090.00916.66
7.2.300.0120.01016.28
7.2.290.0130.00316.78
7.2.130.0060.00916.99
7.2.120.0060.00916.97
7.2.110.0000.01316.92
7.2.100.0030.00716.98
7.2.90.0000.01316.99
7.2.80.0040.01116.70
7.2.70.0030.01016.65
7.2.60.0040.01216.85
7.2.50.0070.01117.02
7.2.40.0030.01516.99
7.2.30.0110.00416.77
7.2.20.0060.00616.94
7.2.10.0070.01016.70
7.2.00.0000.01418.24
7.1.250.0080.00315.81
7.1.70.0070.00716.98
7.1.60.0060.00617.10
7.1.50.0050.00816.84
7.1.40.0000.01216.57
7.1.30.0110.00316.78
7.1.20.0000.01216.50
7.1.10.0040.00416.81
7.1.00.0030.00816.70
7.0.200.0050.00516.64
7.0.190.0050.00516.58
7.0.180.0030.00716.25
7.0.170.0030.00616.21
7.0.160.0030.00716.19
7.0.150.0000.00916.34
7.0.140.0000.00816.57
7.0.130.0030.01016.65
7.0.120.0020.01016.68
7.0.110.0040.01116.25
7.0.100.0090.00916.48
7.0.90.0050.00516.30
7.0.80.0130.00016.44
7.0.70.0030.00616.35
7.0.60.0070.01416.35
7.0.50.0000.00916.21
7.0.40.0000.00814.77
7.0.30.0040.00414.77
7.0.20.0040.00914.77
7.0.10.0000.01714.77
7.0.00.0070.00714.77
5.6.300.0060.03820.93
5.6.290.0030.04120.66
5.6.280.0100.03621.09
5.6.270.0130.03620.78
5.6.260.0070.04020.96
5.6.250.0040.04621.06
5.6.240.0030.04820.95
5.6.230.0180.03921.05
5.6.220.0030.06420.80
5.6.210.0070.07620.61
5.6.200.0070.04220.82
5.6.190.0060.04520.86
5.6.180.0060.03821.02
5.6.170.0030.04020.82
5.6.160.0030.04020.77
5.6.150.0000.08221.04
5.6.140.0100.07421.04
5.6.130.0070.05420.73
5.6.120.0130.04621.01
5.6.110.0070.04021.01
5.6.100.0070.06420.95
5.6.90.0000.04520.81
5.6.80.0030.04720.20
5.6.70.0030.04320.29
5.6.60.0070.04020.36
5.6.50.0000.04220.41
5.6.40.0030.04020.18
5.6.30.0000.04420.38
5.6.20.0110.03220.28
5.6.10.0030.05220.34
5.6.00.0030.05320.35

preferences:
60.24 ms | 401 KiB | 5 Q