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 - $start; 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.3.10.0080.01216.53
7.3.00.0110.00316.46
7.2.130.0080.00516.77
7.2.120.0060.00916.73
7.2.110.0070.00716.72
7.2.100.0050.00916.94
7.2.90.0090.00516.93
7.2.80.0060.00816.72
7.2.70.0080.00516.76
7.2.60.0080.00816.86
7.2.50.0070.00916.91
7.2.40.0040.01016.82
7.2.30.0030.01016.93
7.2.20.0100.00616.90
7.2.10.0100.00616.80
7.2.00.0070.00817.76
7.1.250.0050.01115.85
7.1.70.0060.00617.38
7.1.60.0100.01619.33
7.1.50.0160.01034.68
7.1.00.0030.07722.43
7.0.200.0100.01015.05
7.0.140.0030.07321.95
7.0.60.0000.09319.99
7.0.50.0000.08717.86
7.0.40.0130.08020.04
7.0.30.0370.05320.04
7.0.20.0230.08720.09
7.0.10.0130.08020.09
7.0.00.0100.07720.16
5.6.280.0070.08021.11
5.6.210.0100.04020.76
5.6.200.0000.07018.17
5.6.190.0100.08720.67
5.6.180.0100.08720.77
5.6.170.0200.04320.71
5.6.160.0130.08320.40
5.6.150.0000.08318.11
5.6.140.0000.06018.18
5.6.130.0100.08318.20
5.6.120.0100.07321.02
5.6.110.0070.09021.02
5.6.100.0200.05021.04
5.6.90.0000.04721.00
5.6.80.0070.09020.38
5.6.70.4370.04720.38
5.5.350.0100.08720.45
5.5.340.0030.05718.02
5.5.330.0130.06720.36
5.5.320.0100.08720.20
5.5.310.0270.08020.29
5.5.300.0100.08017.99
5.5.290.0170.08018.00
5.5.280.0030.06320.99
5.5.270.0100.09320.83
5.5.260.0070.07720.88
5.5.250.0070.08720.78
5.5.240.0270.07720.29
5.4.450.0170.06319.48
5.4.440.0170.07319.29
5.4.430.0130.08019.09
5.4.420.0330.08019.42
5.4.410.0230.07319.53
5.4.400.0170.06318.82
5.4.390.0270.06319.19
5.4.380.0470.04018.79
5.4.370.0430.08018.65
5.4.360.0200.06318.63
5.4.350.0170.07018.84
5.4.340.0270.06718.80
5.4.320.0060.04412.60
5.4.310.0030.05112.59
5.4.300.0080.04312.60
5.4.290.0100.04312.60
5.4.280.0100.04412.47
5.4.270.0070.04412.47
5.4.260.0070.06112.47
5.4.250.0150.08412.47
5.4.240.0070.07312.47
5.4.230.0110.06712.46
5.4.220.0210.07212.46
5.4.210.0200.09212.46
5.4.200.0240.09712.46
5.4.190.0140.08112.46
5.4.180.0180.05712.46
5.4.170.0230.05312.47
5.4.160.0130.06712.46
5.4.150.0240.09012.46
5.4.140.0280.08512.14
5.4.130.0120.05712.14
5.4.120.0130.06412.09
5.4.110.0130.06012.09
5.4.100.0080.06012.09
5.4.90.0120.06512.09
5.4.80.0160.07412.09
5.4.70.0090.04512.08
5.4.60.0120.04612.08
5.4.50.0090.04612.09
5.4.40.0020.04912.08
5.4.30.0060.05012.07
5.4.20.0100.04712.07
5.4.10.0090.04412.07
5.4.00.0090.04411.57
5.3.290.0050.04612.85
5.3.280.0120.04412.77
5.3.270.0200.06712.77
5.3.260.0140.06112.77
5.3.250.0110.05912.77
5.3.240.0130.05612.78
5.3.230.0120.05712.77
5.3.220.0140.05612.74
5.3.210.0100.06312.74
5.3.200.0110.06112.74
5.3.190.0090.06212.74
5.3.180.0120.05512.73
5.3.170.0090.06012.73
5.3.160.0100.06012.73
5.3.150.0170.08212.73
5.3.140.0120.10612.72
5.3.130.0180.06712.72
5.3.120.0100.06312.71
5.3.110.0100.06812.71
5.3.100.0120.06412.20
5.3.90.0170.06712.18
5.3.80.0110.06412.17
5.3.70.0090.06112.18
5.3.60.0160.07312.16
5.3.50.0170.06212.11
5.3.40.0160.07712.11
5.3.30.0120.05612.07
5.3.20.0120.05711.85
5.3.10.0070.06811.81
5.3.00.0080.06611.80
5.2.170.0090.0539.29
5.2.160.0090.0369.29
5.2.150.0120.0719.29
5.2.140.0070.0499.29
5.2.130.0080.0369.25
5.2.120.0120.0569.25
5.2.110.0090.0549.25
5.2.100.0100.0539.25
5.2.90.0050.0569.25
5.2.80.0090.0549.25
5.2.70.0070.0579.25
5.2.60.0070.0589.20
5.2.50.0090.0549.17
5.2.40.0040.0619.14
5.2.30.0110.0569.13
5.2.20.0080.0529.11
5.2.10.0080.0489.06
5.2.00.0100.0478.93
5.1.60.0050.0458.25
5.1.50.0080.0448.25
5.1.40.0080.0458.23
5.1.30.0090.0468.57
5.1.20.0080.0508.60
5.1.10.0080.0448.32
5.1.00.0070.0468.32
5.0.50.0080.0366.80
5.0.40.0080.0356.66
5.0.30.0070.0506.48
5.0.20.0060.0376.44
5.0.10.0050.0406.42
5.0.00.0080.0506.41
4.4.90.0040.0374.82
4.4.80.0040.0364.81
4.4.70.0070.0444.80
4.4.60.0060.0344.81
4.4.50.0060.0454.82
4.4.40.0030.0524.81
4.4.30.0070.0334.81
4.4.20.0040.0424.88
4.4.10.0030.0394.88
4.4.00.0040.0514.84
4.3.110.0070.0364.75
4.3.100.0060.0364.74
4.3.90.0040.0374.73
4.3.80.0040.0484.73
4.3.70.0070.0344.73
4.3.60.0060.0364.72
4.3.50.0040.0384.72
4.3.40.0040.0504.69
4.3.30.0040.0393.49
4.3.20.0040.0413.47
4.3.10.0040.0393.43
4.3.00.0000.0377.83

preferences:
33.26 ms | 400 KiB | 5 Q