3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); for($i = 0; $i < 1000; $i++) $arr[] = uniqid().mt_rand(100,9999); ?>

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.01417.34
7.1.60.0100.01719.46
7.1.50.0090.01316.96
7.1.00.0100.07722.45
7.0.200.0000.01316.43
7.0.140.0170.06721.95
7.0.60.0100.09020.06
7.0.50.0100.06317.96
7.0.40.0130.08320.25
7.0.30.0170.04720.20
7.0.20.0270.08320.09
7.0.10.0070.09020.13
7.0.00.0030.05020.22
5.6.280.0070.08021.05
5.6.210.0100.08320.60
5.6.200.0030.08318.20
5.6.190.0100.07020.43
5.6.180.4870.04020.39
5.6.170.0230.03720.52
5.6.160.0100.07320.70
5.6.150.0130.07718.09
5.6.140.0100.03718.09
5.6.130.0100.07318.22
5.6.120.0130.04021.02
5.6.110.0070.09321.01
5.6.100.0000.04721.15
5.6.90.0100.03720.95
5.6.80.0270.06020.54
5.6.70.0170.08020.55
5.5.350.0200.04720.39
5.5.340.0130.07717.98
5.5.330.0130.07720.25
5.5.320.0270.08320.48
5.5.310.0270.08020.29
5.5.300.0070.04718.03
5.5.290.0030.04718.00
5.5.280.0100.08720.83
5.5.270.0070.08320.71
5.5.260.0130.07320.92
5.5.250.0170.07020.50
5.5.240.0270.06720.32
5.4.450.0130.04741.98
5.4.440.0300.05337.98
5.4.430.0170.05032.53
5.4.420.0170.05031.63
5.4.410.0270.04028.65
5.4.400.0270.04726.82
5.4.390.0470.04325.39
5.4.380.0370.07718.80
5.4.370.0530.05318.84
5.4.360.0470.07318.71
5.4.350.0470.07718.84
5.4.340.0430.07018.85
5.4.320.0190.05112.64
5.4.310.0130.05712.63
5.4.300.0140.04212.64
5.4.290.0140.05512.63
5.4.280.0120.06412.53
5.4.270.0150.05712.53
5.4.260.0170.06912.53
5.4.250.0170.05212.53
5.4.240.0190.04812.53
5.4.230.0140.04812.52
5.4.220.0100.04312.52
5.4.210.0130.04812.52
5.4.200.0100.04712.52
5.4.190.0080.04712.52
5.4.180.0180.06412.52
5.4.170.0170.06112.53
5.4.160.0140.07112.52
5.4.150.0220.05212.52
5.4.140.0170.06412.20
5.4.130.0120.05012.19
5.4.120.0160.04312.15
5.4.110.0210.06612.14
5.4.100.0110.06512.15
5.4.90.0140.07012.15
5.4.80.0190.04212.14
5.4.70.0120.05712.15
5.4.60.0160.05312.14
5.4.50.0160.06612.14
5.4.40.0140.05712.13
5.4.30.0110.05012.13
5.4.20.0170.04512.13
5.4.10.0170.06412.13
5.4.00.0160.06311.62
5.3.290.0080.05612.88
5.3.280.0120.04612.81
5.3.270.0080.05212.82
5.3.260.0100.04812.82
5.3.250.0100.05012.82
5.3.240.0100.05012.82
5.3.230.0120.06112.82
5.3.220.0110.05512.79
5.3.210.0180.08112.78
5.3.200.0090.05512.78
5.3.190.0190.05212.78
5.3.180.0140.06312.78
5.3.170.0120.06112.78
5.3.160.0230.06212.78
5.3.150.0180.05312.78
5.3.140.0120.05312.77
5.3.130.0120.05112.77
5.3.120.0160.06112.77
5.3.110.0120.06212.77
5.3.100.0160.04612.25
5.3.90.0150.04112.24
5.3.80.0100.05012.23
5.3.70.0130.04112.23
5.3.60.0130.04212.21
5.3.50.0180.04512.16
5.3.40.0130.04812.16
5.3.30.0170.04712.12
5.3.20.0150.07811.90
5.3.10.0120.08611.87
5.3.00.0120.07311.86
5.2.170.0150.0489.35
5.2.160.0110.0529.35
5.2.150.0140.0549.34
5.2.140.0130.0449.34
5.2.130.0150.0399.30
5.2.120.0150.0399.30
5.2.110.0070.0449.32
5.2.100.0160.0429.31
5.2.90.0180.0419.31
5.2.80.0110.0449.30
5.2.70.0080.0389.31
5.2.60.0080.0389.26
5.2.50.0090.0389.23
5.2.40.0110.0449.20
5.2.30.0120.0359.18
5.2.20.0090.0399.16
5.2.10.0090.0509.10
5.2.00.0140.0518.96
5.1.60.0060.0488.31
5.1.50.0110.0388.31
5.1.40.0100.0338.29
5.1.30.0060.0418.64
5.1.20.0100.0348.66
5.1.10.0120.0358.38
5.1.00.0110.0498.39
5.0.50.0140.0376.86
5.0.40.0110.0316.72
5.0.30.0100.0436.54
5.0.20.0110.0246.50
5.0.10.0120.0266.48
5.0.00.0120.0376.47
4.4.90.0070.0208.06
4.4.80.0000.0278.06
4.4.70.0070.0238.06
4.4.60.0000.0278.06
4.4.50.0000.0278.06
4.4.40.0070.0308.06
4.4.30.0000.0408.06
4.4.20.0070.0208.06
4.4.10.0100.0338.06
4.4.00.0100.0438.06
4.3.110.0070.0178.06
4.3.100.0130.0138.06
4.3.90.0130.0178.06
4.3.80.0130.0408.06
4.3.70.0070.0338.06
4.3.60.0130.0138.06
4.3.50.0030.0254.63
4.3.40.0100.0278.06
4.3.30.0030.0338.06
4.3.20.0030.0378.06
4.3.10.0100.0208.06
4.3.00.0030.0278.06

preferences:
34.97 ms | 400 KiB | 5 Q