3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test1 = array_fill(1, 10, rand(1,50)); $test2 = array_fill(1, 10, rand(1,50)); $test1 += $test2;

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)
7.1.70.0030.00616.96
7.1.60.0130.00619.29
7.1.50.0060.00616.84
7.1.00.0030.07322.45
7.0.200.0030.00916.68
7.0.140.0030.07022.19
7.0.90.0100.05019.94
7.0.80.0030.08019.93
7.0.70.0130.04319.99
7.0.60.0430.08020.07
7.0.50.0200.07320.24
7.0.40.0130.07020.13
7.0.30.0130.07720.17
7.0.20.0070.06019.92
7.0.10.0200.07320.12
7.0.00.0070.05020.05
5.6.280.0030.07020.83
5.6.230.0030.08720.48
5.6.220.0030.06020.64
5.6.210.0200.07020.60
5.6.200.0070.08721.08
5.6.190.0100.05021.16
5.6.180.0030.07021.02
5.6.170.0030.08721.13
5.6.160.0100.08021.10
5.6.150.0030.04021.00
5.6.140.0070.08321.10
5.6.130.0100.04321.04
5.6.120.0030.09320.92
5.6.110.0030.08721.04
5.6.100.0100.05720.99
5.6.90.0200.08321.02
5.6.80.0100.07320.44
5.6.70.0000.05720.44
5.6.60.0030.08020.38
5.6.50.0170.06320.45
5.6.40.0070.07020.30
5.6.30.0030.07720.42
5.6.20.0100.05320.42
5.6.10.0030.08020.52
5.6.00.0130.07320.31
5.5.370.0130.07020.55
5.5.360.0070.05320.43
5.5.350.0100.08020.45
5.5.340.0030.05720.86
5.5.330.0030.08320.87
5.5.320.0070.04320.84
5.5.310.0170.07020.85
5.5.300.0170.07320.90
5.5.290.0070.04020.86
5.5.280.0070.05720.88
5.5.270.0170.05720.91
5.5.260.0130.07720.74
5.5.250.0130.04320.63
5.5.240.0130.06320.02
5.5.230.0100.07020.23
5.5.220.0030.06020.16
5.5.210.0030.08020.13
5.5.200.0100.07720.23
5.5.190.0100.04720.16
5.5.180.0200.07320.23
5.5.160.0070.05720.07
5.5.150.0130.07020.10
5.5.140.0100.06720.26
5.5.130.0030.04020.02
5.5.120.0100.06020.21
5.5.110.0070.06320.26
5.5.100.0030.05320.16
5.5.90.0130.06720.14
5.4.450.0070.08319.35
5.4.440.0200.06719.35
5.4.430.0000.07019.13
5.4.420.0170.09019.56
5.4.410.0130.08719.34
5.4.400.0070.08019.17
5.4.390.0100.07318.96
5.4.380.0100.07319.20
5.4.370.0030.06318.90
5.4.360.0100.07719.06
5.4.350.0000.06319.06
5.4.340.0070.08019.05
5.4.320.0070.08019.06
5.4.310.0070.07718.90
5.4.300.0200.06319.22
5.4.290.0030.06319.04
5.4.280.0070.04719.12
5.4.270.0030.04718.96
5.4.260.0030.07718.90
5.4.250.0070.07019.02
5.3.290.0030.05714.70
5.2.70.0070.03714.70
5.2.60.0030.05714.70
5.2.50.0000.06314.70
5.2.40.0130.03714.70
5.2.30.0030.06014.70
5.2.20.0000.04714.70
5.2.10.0030.06314.70
5.2.00.0070.06014.70
5.1.60.0070.05014.70
5.1.50.0030.05314.70
5.1.40.0000.05014.70
5.1.30.0030.05314.70
5.1.20.0000.05314.70
5.1.10.0030.05014.70
5.1.00.0070.05714.70
5.0.50.0100.04014.70
5.0.40.0030.03714.70
5.0.30.0000.05714.70
5.0.20.0030.03314.70
5.0.10.0000.04714.70
5.0.00.0030.04714.70
4.4.90.0000.03014.70
4.4.80.0000.03314.70
4.4.70.0070.03014.70
4.4.60.0000.03714.70
4.4.50.0070.03014.70
4.4.40.0000.05714.70
4.4.30.0030.03714.70
4.4.20.0030.02014.70
4.4.10.0030.03314.70
4.4.00.0000.05714.70
4.3.110.0000.02714.70
4.3.100.0070.03014.70
4.3.90.0000.03314.70
4.3.80.0000.05714.70
4.3.70.0000.03714.70
4.3.60.0070.03014.70
4.3.50.0000.03714.70
4.3.40.0000.05014.70
4.3.30.0030.02014.70
4.3.20.0000.02714.70
4.3.10.0070.03314.70
4.3.00.0000.03714.70

preferences:
44.93 ms | 400 KiB | 5 Q