3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(); for($i=0; $i < 1000; $i++) { rand(1,9999999); } echo $time = (microtime()-$time)/1000; echo "\n"; $time = microtime(); for($i=0; $i < 1000; $i++) { mt_rand(1,9999999); } echo $time = (microtime()-$time)/1000;

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.0090.00616.77
7.3.00.0070.00716.50
7.2.130.0030.00716.95
7.2.120.0030.00917.05
7.2.110.0000.01116.84
7.2.100.0110.00016.68
7.2.90.0070.01016.82
7.2.80.0070.00717.09
7.2.70.0060.00916.96
7.2.60.0030.01316.97
7.2.50.0030.00616.80
7.2.40.0110.00016.85
7.2.30.0120.00017.05
7.2.20.0030.00917.05
7.2.10.0060.00617.04
7.2.00.0070.00718.23
7.1.250.0030.00615.75
7.1.70.0020.00517.07
7.1.60.0070.01819.32
7.1.50.0030.01216.93
7.1.00.0070.07022.45
7.0.200.0050.00316.64
7.0.140.0000.07721.96
7.0.60.0000.05319.96
7.0.50.0130.04717.88
7.0.40.0100.08020.21
7.0.30.0600.06320.09
7.0.20.0170.07320.16
7.0.10.0130.08020.18
7.0.00.0070.09020.04
5.6.280.0030.07021.07
5.6.210.0170.07720.69
5.6.200.0070.05718.12
5.6.190.0070.04020.64
5.6.180.0430.05720.41
5.6.170.0200.06020.38
5.6.160.0170.07720.54
5.6.150.0100.07718.11
5.6.140.0170.07318.10
5.6.130.0170.07718.10
5.6.120.0100.08320.80
5.6.110.0100.08721.04
5.6.100.0100.08321.11
5.6.90.0070.07721.10
5.6.80.0130.05720.38
5.5.350.0330.07320.46
5.5.340.0100.04718.07
5.5.330.0070.05020.20
5.5.320.0270.06020.29
5.5.310.0400.07020.24
5.5.300.0100.07017.93
5.5.290.0130.04717.92
5.5.280.0170.06720.68
5.5.270.0100.07320.82
5.5.260.0100.08720.75
5.5.250.0170.07320.54
5.5.240.0230.07020.12
5.4.450.0330.03319.46
5.4.440.1000.05719.43
5.4.430.1000.05319.12
5.4.420.0730.00019.35
5.4.410.0800.00019.04
5.4.400.0630.00019.24
5.4.390.0670.00019.07
5.4.380.0670.00019.07
5.4.370.0630.00019.14
5.4.360.0730.00019.18
5.4.350.0700.00019.07
5.4.340.0630.00019.26
5.4.320.0070.03612.46
5.4.310.0050.04012.45
5.4.300.0100.03412.46
5.4.290.0090.03612.45
5.4.280.0040.03812.35
5.4.270.0060.03612.36
5.4.260.0040.03912.35
5.4.250.0040.04712.35
5.4.240.0060.03512.35
5.4.230.0050.03912.35
5.4.220.0060.03512.35
5.4.210.0060.03512.34
5.4.200.0040.04012.34
5.4.190.0040.03712.34
5.4.180.0060.03512.34
5.4.170.0020.03812.35
5.4.160.0080.03412.35
5.4.150.0040.03812.35
5.4.140.0030.04012.03
5.4.130.0020.03912.02
5.4.120.0050.03611.97
5.4.110.0060.03511.97
5.4.100.0080.03411.97
5.4.90.0060.03711.97
5.4.80.0050.03911.97
5.4.70.0050.03511.96
5.4.60.0070.03311.96
5.4.50.0070.03411.97
5.4.40.0050.03611.95
5.4.30.0090.03511.95
5.4.20.0090.04211.96
5.4.10.0040.03711.95
5.4.00.0040.03811.45
5.3.290.0100.03612.80
5.3.280.0070.03712.71
5.3.270.0070.03912.72
5.3.260.0120.04812.72
5.3.250.0150.04412.71
5.3.240.0100.05012.72
5.3.230.0100.04812.71
5.3.220.0070.05312.68
5.3.210.0100.05012.68
5.3.200.0100.03912.68
5.3.190.0040.04012.68
5.3.180.0100.03312.67
5.3.170.0070.04012.66
5.3.160.0070.04812.67
5.3.150.0100.05212.67
5.3.140.0100.04312.66
5.3.130.0100.04412.66
5.3.120.0060.04712.66
5.3.110.0040.04112.66
5.3.100.0040.04312.12
5.3.90.0070.04612.08
5.3.80.0050.04112.07
5.3.70.0050.03712.08
5.3.60.0070.03712.06
5.3.50.0020.04212.00
5.3.40.0060.03712.00
5.3.30.0090.03311.95
5.3.20.0040.04011.73
5.3.10.0050.03611.70
5.3.00.0060.03911.68
5.2.170.0060.0429.19
5.2.160.0110.0389.18
5.2.150.0080.0409.18
5.2.140.0070.0339.18
5.2.130.0050.0309.14
5.2.120.0040.0429.14
5.2.110.0050.0349.15
5.2.100.0050.0289.15
5.2.90.0060.0289.15
5.2.80.0080.0319.14
5.2.70.0060.0339.14
5.2.60.0040.0339.09
5.2.50.0050.0319.06
5.2.40.0050.0329.04
5.2.30.0050.0329.01
5.2.20.0000.0359.00
5.2.10.0030.0318.96
5.2.00.0020.0318.81
5.1.60.0070.0218.10
5.1.50.0010.0288.10
5.1.40.0060.0258.08
5.1.30.0030.0278.43
5.1.20.0050.0258.45
5.1.10.0020.0278.18
5.1.00.0020.0308.17
5.0.50.0010.0236.65
5.0.40.0010.0226.51
5.0.30.0030.0326.33
5.0.20.0020.0216.31
5.0.10.0040.0196.28
5.0.00.0070.0276.27
4.4.90.0020.0164.78
4.4.80.0030.0174.76
4.4.70.0050.0144.75
4.4.60.0020.0174.76
4.4.50.0020.0164.77
4.4.40.0030.0264.71
4.4.30.0040.0154.75
4.4.20.0030.0164.84
4.4.10.0050.0144.85
4.4.00.0010.0294.76
4.3.110.0040.0154.67
4.3.100.0020.0164.66
4.3.90.0020.0164.63
4.3.80.0030.0244.59
4.3.70.0020.0164.63
4.3.60.0020.0164.63
4.3.50.0030.0164.62
4.3.40.0020.0264.54
4.3.30.0010.0183.33
4.3.20.0020.0273.31
4.3.10.0050.0283.27
4.3.00.0030.01716.50

preferences:
38.82 ms | 401 KiB | 5 Q