3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); for ($i=0; $i < 10000; $i++) { $a[$i] = rand(0,10000000); } echo 'work';

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.3.120.0070.01015.32
7.3.110.0040.01215.22
7.3.100.0090.00614.93
7.3.90.0160.00315.00
7.3.80.0000.01215.10
7.3.70.0090.00615.15
7.3.60.0040.01415.20
7.3.50.0130.00315.22
7.3.40.0100.00715.33
7.3.30.0000.01114.85
7.3.20.0000.01416.61
7.3.10.0000.01916.39
7.3.00.0060.00916.71
7.2.240.0000.01415.52
7.2.230.0030.01615.29
7.2.220.0030.01215.46
7.2.210.0070.01015.23
7.2.200.0030.01314.98
7.2.190.0090.00615.37
7.2.180.0030.01215.20
7.2.170.0000.01915.22
7.2.160.0060.01015.48
7.2.150.0040.01516.66
7.2.140.0070.01116.92
7.2.130.0100.00016.63
7.2.120.0030.01216.79
7.2.110.0040.01516.70
7.2.100.0130.00716.87
7.2.90.0060.00917.02
7.2.80.0070.01016.62
7.2.70.0060.01016.87
7.2.60.0060.01217.00
7.2.50.0030.01016.96
7.2.40.0080.00617.10
7.2.30.0030.00916.98
7.2.20.0070.01016.89
7.2.10.0090.00616.80
7.2.00.0060.01216.71
7.1.330.0070.01015.55
7.1.320.0040.01115.76
7.1.310.0030.01315.90
7.1.300.0030.01615.45
7.1.290.0000.01315.62
7.1.280.0090.00615.83
7.1.270.0070.01115.81
7.1.260.0070.01015.71
7.1.250.0060.00915.63
7.1.70.0030.00917.21
7.1.60.0130.01319.11
7.1.50.0070.02016.70
7.1.00.0030.08022.50
7.0.200.0040.00816.85
7.0.140.0030.07722.09
7.0.60.0100.07020.20
7.0.50.0070.07018.13
7.0.40.0030.07019.96
7.0.30.0330.04320.09
7.0.20.0400.06320.09
7.0.10.0100.06020.00
7.0.00.0070.08320.04
5.6.280.0100.07322.32
5.6.210.0070.04722.04
5.6.200.0100.06319.34
5.6.190.0100.04021.56
5.6.180.0400.06021.65
5.6.170.1070.04721.64
5.6.160.0100.04021.66
5.6.150.0030.08319.45
5.6.140.0070.08319.41
5.6.130.0170.06019.35
5.6.120.0100.08022.17
5.6.110.0100.08322.32
5.6.100.0100.07322.42
5.6.90.0030.08022.41
5.6.80.0170.08021.70
5.5.350.0200.07321.75
5.5.340.0070.04019.25
5.5.330.0070.09321.22
5.5.320.0270.04721.32
5.5.310.0300.06021.31
5.5.300.0000.04319.24
5.5.290.0000.04319.24
5.5.280.0100.07322.08
5.5.270.0000.06322.09
5.5.260.0030.04322.09
5.5.250.0000.05721.86
5.5.240.0170.08721.32
5.4.450.1000.06020.46
5.4.440.0730.06020.48
5.4.430.0870.06720.85
5.4.420.0700.00020.51
5.4.410.0670.00020.71
5.4.400.0670.00020.08
5.4.390.0670.00020.28
5.4.380.0700.00020.31
5.4.370.0670.00020.19
5.4.360.0630.00020.16
5.4.350.0700.00020.35
5.4.340.0030.04913.25
5.4.320.0100.03713.74
5.4.310.0080.03813.73
5.4.300.0050.04013.74
5.4.290.0070.04013.73
5.4.280.0050.04113.63
5.4.270.0090.04313.63
5.4.260.0060.04413.63
5.4.250.0050.04113.63
5.4.240.0030.04313.63
5.4.230.0070.04213.62
5.4.220.0080.04213.62
5.4.210.0050.03913.62
5.4.200.0050.04113.63
5.4.190.0060.04513.62
5.4.180.0080.03613.62
5.4.170.0050.04013.63
5.4.160.0080.04113.63
5.4.150.0090.03713.63
5.4.140.0090.03813.30
5.4.130.0070.03613.30
5.4.120.0060.03713.25
5.4.110.0080.03613.25
5.4.100.0060.03813.25
5.4.90.0060.04013.25
5.4.80.0080.03813.25
5.4.70.0080.04413.24
5.4.60.0070.03613.25
5.4.50.0040.04113.24
5.4.40.0080.03413.23
5.4.30.0080.03713.23
5.4.20.0060.03913.23
5.4.10.0060.03713.23
5.4.00.0050.04012.72
5.3.290.0030.04513.95
5.3.280.0080.03913.88
5.3.270.0050.04213.89
5.3.260.0030.04513.89
5.3.250.0060.04913.89
5.3.240.0070.04813.89
5.3.230.0090.03913.88
5.3.220.0120.03613.85
5.3.210.0070.04113.85
5.3.200.0060.03913.85
5.3.190.0070.03913.85
5.3.180.0030.04213.85
5.3.170.0060.03913.85
5.3.160.0070.03713.85
5.3.150.0040.04213.84
5.3.140.0080.04813.84
5.3.130.0060.04113.83
5.3.120.0120.04413.83
5.3.110.0060.04313.83
5.3.100.0030.04213.32
5.3.90.0060.04013.30
5.3.80.0070.03913.29
5.3.70.0070.03913.30
5.3.60.0050.04013.28
5.3.50.0080.03813.23
5.3.40.0070.04013.23
5.3.30.0060.03913.18
5.3.20.0030.04212.96
5.3.10.0080.03612.93
5.3.00.0060.03912.91
5.2.170.0060.03410.40
5.2.160.0020.03710.41
5.2.150.0060.03210.41
5.2.140.0050.03210.41
5.2.130.0030.03310.36
5.2.120.0050.03110.37
5.2.110.0040.03310.37
5.2.100.0060.03110.36
5.2.90.0050.03210.36
5.2.80.0080.03010.36
5.2.70.0050.03310.36
5.2.60.0080.03310.45
5.2.50.0080.03010.28
5.2.40.0040.03410.26
5.2.30.0020.03710.23
5.2.20.0040.03310.23
5.2.10.0050.03110.15
5.2.00.0040.03310.00
5.1.60.0070.0259.80
5.1.50.0080.0279.80
5.1.40.0060.0269.78
5.1.30.0050.03110.13
5.1.20.0060.03110.08
5.1.10.0060.0359.88
5.1.00.0040.0319.88
5.0.50.0070.0238.28
5.0.40.0070.0218.14
5.0.30.0060.0338.04
5.0.20.0050.0248.00
5.0.10.0020.0287.90
5.0.00.0020.0377.89
4.4.90.0000.0236.40
4.4.80.0050.0186.38
4.4.70.0030.0206.38
4.4.60.0050.0186.38
4.4.50.0030.0206.39
4.4.40.0050.0316.41
4.4.30.0030.0216.38
4.4.20.0050.0196.44
4.4.10.0030.0256.45
4.4.00.0060.0346.31
4.3.110.0070.0286.22
4.3.100.0070.0186.21
4.3.90.0050.0206.19
4.3.80.0040.0386.18
4.3.70.0020.0256.18
4.3.60.0020.0226.19
4.3.50.0030.0226.18
4.3.40.0070.0276.24
4.3.30.0030.0215.05
4.3.20.0000.0395.03
4.3.10.0020.0364.88
4.3.00.0130.0507.51

preferences:
29.28 ms | 401 KiB | 5 Q