3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = microtime(true); for ($i = 0; $i < 1000000; $i++) { rand(); } $end = microtime(true); printf("%0.6F\n"); $start = microtime(true); for ($i = 0; $i < 1000000; $i++) { mt_rand(); } $end = microtime(true); printf("%0.6F\n");

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.05316.55
7.3.00.0030.05416.59
7.2.130.0030.05316.75
7.2.120.0090.05616.78
7.2.110.0060.05516.43
7.2.100.0080.05616.87
7.2.90.0070.05416.74
7.2.80.0080.05316.89
7.2.70.0070.05816.64
7.2.60.0050.05916.87
7.2.50.0090.05616.67
7.2.40.0040.06316.86
7.2.30.0070.05016.93
7.2.20.0040.05016.76
7.2.10.0040.05816.76
7.2.00.0070.05116.92
7.1.250.0080.10515.88
7.1.70.0100.03917.13
7.1.60.0100.07319.82
7.1.50.0100.07616.90
7.1.00.0030.14322.28
7.0.200.0030.05416.68
7.0.140.0030.14022.09
7.0.60.0100.13719.91
7.0.50.0170.13017.90
7.0.40.0070.15320.23
7.0.30.0230.12020.13
7.0.20.0330.11720.18
7.0.10.0270.14320.00
7.0.00.0070.14320.04
5.6.280.0000.24321.12
5.6.210.0070.16320.47
5.6.200.0070.15318.22
5.6.190.0000.22020.33
5.6.180.0000.16020.49
5.6.170.0300.15020.42
5.6.160.0030.21020.33
5.6.150.0100.19018.18
5.6.140.0000.15318.20
5.6.130.0070.21018.20
5.6.120.0070.14321.02
5.6.110.0070.19720.97
5.6.100.0100.14721.00
5.6.90.0170.19720.95
5.6.80.0170.19320.53
5.6.70.0400.21020.39
5.5.350.0000.20320.52
5.5.340.0170.16017.92
5.5.330.0130.14020.07
5.5.320.0300.18320.32
5.5.310.0300.19320.12
5.5.300.0070.20317.98
5.5.290.0130.18017.91
5.5.280.0100.19320.76
5.5.270.0030.15320.86
5.5.260.0000.21720.76
5.5.250.0070.17020.79
5.5.240.0030.19320.18
5.4.450.0130.26319.21
5.4.440.0870.27719.46
5.4.430.0130.20719.56
5.4.420.0170.20719.49
5.4.410.0100.20318.68
5.4.400.0300.21018.80
5.4.390.0470.23018.74
5.4.380.0030.22718.50
5.4.370.0100.17718.68
5.4.360.0170.15718.70
5.4.350.0090.15811.97
5.4.340.0060.15611.97
5.4.320.0070.15112.46
5.4.310.0070.16712.45
5.4.300.0060.15812.46
5.4.290.0080.16312.45
5.4.280.0060.16112.32
5.4.270.0110.15912.32
5.4.260.0150.23212.32
5.4.250.0050.17012.32
5.4.240.0060.15712.32
5.4.230.0050.16612.31
5.4.220.0060.16512.32
5.4.210.0100.23012.32
5.4.200.0080.18212.31
5.4.190.0070.16412.31
5.4.180.0100.20512.31
5.4.170.0130.19912.32
5.4.160.0080.17112.32
5.4.150.0190.16112.31
5.4.140.0060.17212.00
5.4.130.0050.15411.98
5.4.120.0030.15111.95
5.4.110.0080.17111.94
5.4.100.0060.15311.94
5.4.90.0080.14911.94
5.4.80.0070.15711.94
5.4.70.0070.15111.94
5.4.60.0060.15711.93
5.4.50.0070.15611.94
5.4.40.0070.15611.93
5.4.30.0070.15111.93
5.4.20.0040.15911.93
5.4.10.0100.17211.92
5.4.00.0070.15611.42
5.3.290.0070.18212.80
5.3.280.0120.19012.71
5.3.270.0090.19512.72
5.3.260.0070.19812.72
5.3.250.0060.18612.72
5.3.240.0050.19012.72
5.3.230.0060.19512.71
5.3.220.0080.18212.68
5.3.210.0100.22012.68
5.3.200.0080.18312.68
5.3.190.0060.18112.68
5.3.180.0050.19412.68
5.3.170.0070.22112.66
5.3.160.0090.19612.67
5.3.150.0060.18812.67
5.3.140.0080.18312.66
5.3.130.0090.19012.66
5.3.120.0080.19112.66
5.3.110.0070.18912.66
5.3.100.0070.18412.12
5.3.90.0050.20212.08
5.3.80.0030.28112.07
5.3.70.0070.18712.08
5.3.60.0090.23312.06
5.3.50.0070.21512.00
5.3.40.0100.19612.00
5.3.30.0060.18211.94
5.3.20.0080.18311.71
5.3.10.0080.18411.67
5.3.00.0040.19511.66
5.2.170.0050.2229.15
5.2.160.0070.2169.15
5.2.150.0040.2239.16
5.2.140.0020.2359.15
5.2.130.0060.2539.11
5.2.120.0050.2129.11
5.2.110.0050.2159.12
5.2.100.0090.2249.12
5.2.90.0050.2469.11
5.2.80.0080.2169.11
5.2.70.0040.2409.11
5.2.60.0060.2179.07
5.2.50.0080.2539.04
5.2.40.0090.2329.01
5.2.30.0030.2358.99
5.2.20.0080.2108.97
5.2.10.0100.2218.90
5.2.00.0040.2558.76
5.1.60.0070.2088.05
5.1.50.0120.2748.04
5.1.40.0070.2188.03
5.1.30.0070.2048.38
5.1.20.0160.3478.40
5.1.10.0040.2458.13
5.1.00.0080.2298.13
5.0.50.0070.4106.60
5.0.40.0050.3876.46
5.0.30.0050.3986.27
5.0.20.0040.3556.25
5.0.10.0070.3636.23
5.0.00.0050.5556.21
4.4.90.0020.3414.78
4.4.80.0020.3414.75
4.4.70.0120.4034.75
4.4.60.0160.4304.76
4.4.50.0060.3514.77
4.4.40.0030.3544.71
4.4.30.0020.3534.76
4.4.20.0040.3564.84
4.4.10.0090.3794.85
4.4.00.0080.3794.76
4.3.110.0040.4774.67
4.3.100.0020.3904.66
4.3.90.0030.3294.64
4.3.80.0040.3704.58
4.3.70.0010.3774.63
4.3.60.0040.3434.63
4.3.50.0040.3444.63
4.3.40.0050.3334.54
4.3.30.0020.3453.30
4.3.20.0002.4508.68
4.3.10.0051.9943.22
4.3.00.0032.4777.36

preferences:
33.85 ms | 400 KiB | 5 Q