3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tstart = microtime(true); $numberOfRandoms = 500; $uniques = array(); do { $uniques[mt_rand(10000, 99999)] = true; } while(count(array_keys($uniques)) < $numberOfRandoms); $uniques = array_keys($uniques); $elapsed = $tstart - microtime(true); echo $elapsed . PHP_EOL;

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.4.00.0090.00915.04
7.3.120.0030.01714.94
7.3.110.0090.00914.68
7.3.100.0000.01714.89
7.3.90.0000.01415.05
7.3.80.0000.01714.96
7.3.70.0060.00914.86
7.3.60.0040.01114.84
7.3.50.0100.00714.87
7.3.40.0060.00914.96
7.3.30.0090.00314.82
7.3.20.0060.00916.36
7.3.10.0120.00316.71
7.3.00.0060.00916.69
7.2.250.0100.00715.04
7.2.240.0030.01715.32
7.2.230.0030.01415.03
7.2.220.0020.01314.95
7.2.210.0030.01614.72
7.2.200.0090.00615.17
7.2.190.0090.00614.89
7.2.180.0090.00615.29
7.2.170.0140.00414.82
7.2.00.0060.00919.41
7.1.330.0060.01016.04
7.1.320.0060.00915.94
7.1.310.0030.01315.50
7.1.300.0080.00815.93
7.1.290.0090.00615.56
7.1.280.0000.01615.93
7.1.270.0090.00615.86
7.1.260.0040.01215.88
7.1.70.0090.00617.13
7.1.60.0110.01519.33
7.1.50.0170.00734.85
7.1.00.0030.07322.37
7.0.200.0050.00316.60
7.0.140.0000.09321.98
7.0.60.0070.07719.92
7.0.50.0030.04317.95
7.0.40.0100.04320.02
7.0.30.0230.04720.16
7.0.20.0230.08020.16
7.0.10.0200.07320.30
7.0.00.0070.05320.18
5.6.280.0030.08321.14
5.6.210.0100.08020.54
5.6.200.0130.08318.18
5.6.190.0070.04320.29
5.6.180.0230.06320.74
5.6.170.0300.04320.52
5.6.160.0030.08320.48
5.6.150.0100.04318.22
5.6.140.0070.05318.11
5.6.130.0100.09318.20
5.6.120.0100.07321.05
5.6.110.0030.04721.02
5.6.100.0100.05021.00
5.6.90.0000.05321.13
5.6.80.0070.06320.47
5.6.70.4430.04320.42
5.5.350.0070.06720.36
5.5.340.0030.04317.91
5.5.330.0030.10020.21
5.5.320.0330.04020.51
5.5.310.0270.08320.29
5.5.300.0100.04718.00
5.5.290.0030.04717.91
5.5.280.0100.04320.90
5.5.270.0070.06320.79
5.5.260.0100.05320.90
5.5.250.0030.04320.54
5.5.240.0070.06320.07
5.4.450.0570.05019.11
5.4.440.0600.09019.59
5.4.430.0730.07019.47
5.4.420.0700.06019.26
5.4.410.0270.06319.32
5.4.400.0830.06019.16
5.4.390.1000.06319.19
5.4.380.0400.06018.60
5.4.370.0370.05718.63
5.4.360.0270.08318.76
5.4.350.0370.07718.65
5.4.340.0270.06018.63
5.4.320.0080.04612.60
5.4.310.0060.05012.60
5.4.300.0070.04312.60
5.4.290.0090.05112.59
5.4.280.0110.06712.47
5.4.270.0150.06512.47
5.4.260.0080.07312.47
5.4.250.0120.06112.47
5.4.240.0150.06012.47
5.4.230.0110.07512.46
5.4.220.0080.06412.46
5.4.210.0170.08212.46
5.4.200.0130.06912.46
5.4.190.0130.08512.46
5.4.180.0210.07912.46
5.4.170.0120.06212.47
5.4.160.0170.05512.47
5.4.150.0100.06112.46
5.4.140.0090.07312.14
5.4.130.0160.06612.13
5.4.120.0140.05712.09
5.4.110.0070.06012.09
5.4.100.0080.05912.09
5.4.90.0080.07212.09
5.4.80.0230.12512.09
5.4.70.0100.05712.09
5.4.60.0110.06912.09
5.4.50.0150.08312.08
5.4.40.0100.05812.07
5.4.30.0130.06412.07
5.4.20.0090.04212.07
5.4.10.0100.04112.07
5.4.00.0060.04811.56
5.3.290.0050.04512.85
5.3.280.0070.04612.76
5.3.270.0070.04712.77
5.3.260.0090.04512.78
5.3.250.0060.05212.77
5.3.240.0140.06812.77
5.3.230.0050.04912.77
5.3.220.0120.06012.74
5.3.210.0090.06712.74
5.3.200.0250.05712.73
5.3.190.0330.10912.74
5.3.180.0210.09212.73
5.3.170.0260.09112.73
5.3.160.0090.05912.73
5.3.150.0150.06912.73
5.3.140.0210.06912.73
5.3.130.0160.05812.71
5.3.120.0120.06312.72
5.3.110.0120.06012.71
5.3.100.0040.05112.20
5.3.90.0080.04512.18
5.3.80.0130.05912.17
5.3.70.0160.06312.18
5.3.60.0190.07212.16
5.3.50.0170.11212.11
5.3.40.0090.07312.11
5.3.30.0130.06212.07
5.3.20.0160.06711.85
5.3.10.0130.06411.81
5.3.00.0110.06911.80
5.2.170.0070.0569.29
5.2.160.0090.0549.29
5.2.150.0140.0499.29
5.2.140.0080.0579.29
5.2.130.0110.0509.25
5.2.120.0050.0559.25
5.2.110.0090.0489.25
5.2.100.0090.0509.26
5.2.90.0070.0539.25
5.2.80.0080.0539.25
5.2.70.0120.0509.25
5.2.60.0070.0529.20
5.2.50.0050.0529.17
5.2.40.0070.0499.14
5.2.30.0110.0479.13
5.2.20.0070.0489.11
5.2.10.0100.0469.06
5.2.00.0120.0698.93
5.1.60.0100.0538.25
5.1.50.0080.0548.25
5.1.40.0090.0508.23
5.1.30.0090.0608.57
5.1.20.0080.0578.60
5.1.10.0060.0518.32
5.1.00.0090.0548.33
5.0.50.0100.0416.80
5.0.40.0110.0386.66
5.0.30.0050.0586.47
5.0.20.0050.0406.44
5.0.10.0070.0426.42
5.0.00.0060.0546.41
4.4.90.0030.0434.83
4.4.80.0070.0364.81
4.4.70.0040.0414.80
4.4.60.0120.0344.81
4.4.50.0040.0424.82
4.4.40.0070.0484.81
4.4.30.0040.0374.81
4.4.20.0070.0384.87
4.4.10.0050.0364.88
4.4.00.0050.0444.84
4.3.110.0060.0334.75
4.3.100.0060.0384.74
4.3.90.0050.0374.73
4.3.80.0070.0444.73
4.3.70.0030.0364.72
4.3.60.0090.0334.72
4.3.50.0060.0384.72
4.3.40.0030.0524.68
4.3.30.0060.0333.49
4.3.20.0030.0403.47
4.3.10.0040.0393.43
4.3.00.0100.05013.47

preferences:
36.77 ms | 401 KiB | 5 Q