3v4l.org

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

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.2.00.0030.01019.50
7.1.70.0070.01317.18
7.1.60.0060.01919.32
7.1.50.0040.01116.64
7.1.00.0000.08322.47
7.0.200.0040.00816.76
7.0.140.0000.07322.19
7.0.60.0170.03719.89
7.0.50.0030.07717.85
7.0.40.0200.07320.05
7.0.30.0570.05020.18
7.0.20.0170.05020.04
7.0.10.0100.08720.04
7.0.00.0100.08720.31
5.6.280.0130.06721.14
5.6.210.0000.09020.56
5.6.200.0070.07718.09
5.6.190.0030.04720.32
5.6.180.0300.04720.49
5.6.170.0270.08320.33
5.6.160.0030.07720.76
5.6.150.0100.08318.21
5.6.140.0030.09018.15
5.6.130.0100.08718.17
5.6.120.0030.05721.09
5.6.110.0030.06720.99
5.6.100.0000.07720.96
5.6.90.0200.06720.94
5.6.80.0030.04320.53
5.5.350.0200.08020.43
5.5.340.0100.08017.98
5.5.330.0030.06720.30
5.5.320.0200.05020.51
5.5.310.0330.05320.32
5.5.300.0100.07717.96
5.5.290.0070.04717.90
5.5.280.0170.07320.81
5.5.270.0000.05020.84
5.5.260.0100.08720.86
5.5.250.0100.05320.61
5.5.240.0200.06720.18
5.4.450.0170.05019.13
5.4.440.0970.06019.41
5.4.430.1000.06719.13
5.4.420.0770.00019.25
5.4.410.0700.00019.37
5.4.400.0730.00019.02
5.4.390.0830.00019.18
5.4.380.0670.00019.05
5.4.370.0670.00019.07
5.4.360.0670.00018.92
5.4.350.0730.00019.09
5.4.340.0670.00019.18
5.4.320.0070.03812.45
5.4.310.0040.04212.45
5.4.300.0080.03712.46
5.4.290.0050.04212.45
5.4.280.0070.03812.35
5.4.270.0060.04012.35
5.4.260.0050.04312.35
5.4.250.0070.04412.35
5.4.240.0040.04012.35
5.4.230.0080.04012.34
5.4.220.0060.03912.34
5.4.210.0080.03612.34
5.4.200.0080.04312.34
5.4.190.0070.03812.34
5.4.180.0050.04512.34
5.4.170.0080.03812.35
5.4.160.0060.03812.35
5.4.150.0050.04012.34
5.4.140.0050.04012.02
5.4.130.0070.03812.01
5.4.120.0090.05511.97
5.4.110.0070.03911.97
5.4.100.0060.03811.97
5.4.90.0080.03711.97
5.4.80.0050.04111.97
5.4.70.0070.03611.96
5.4.60.0080.04011.96
5.4.50.0060.04011.96
5.4.40.0080.04511.95
5.4.30.0070.03811.95
5.4.20.0100.03611.95
5.4.10.0070.03711.95
5.4.00.0060.03911.44
5.3.290.0090.04712.80
5.3.280.0040.04312.71
5.3.270.0060.04212.72
5.3.260.0060.04112.72
5.3.250.0080.03812.72
5.3.240.0070.03912.72
5.3.230.0050.05412.71
5.3.220.0090.05312.68
5.3.210.0080.04612.68
5.3.200.0050.04312.68
5.3.190.0070.04312.67
5.3.180.0070.03912.67
5.3.170.0090.04312.67
5.3.160.0060.04312.68
5.3.150.0070.04312.67
5.3.140.0090.04412.66
5.3.130.0080.04012.66
5.3.120.0060.04212.66
5.3.110.0090.04112.66
5.3.100.0090.03712.12
5.3.90.0070.05212.08
5.3.80.0020.04612.07
5.3.70.0050.04012.08
5.3.60.0060.03912.06
5.3.50.0070.03912.00
5.3.40.0040.04212.00
5.3.30.0060.03911.95
5.3.20.0060.03911.73
5.3.10.0060.03811.70
5.3.00.0060.03811.68
5.2.170.0020.0369.18
5.2.160.0090.0299.18
5.2.150.0050.0339.19
5.2.140.0020.0369.18
5.2.130.0040.0329.14
5.2.120.0070.0319.14
5.2.110.0080.0349.15
5.2.100.0040.0339.15
5.2.90.0040.0359.14
5.2.80.0040.0379.14
5.2.70.0040.0349.14
5.2.60.0070.0349.09
5.2.50.0040.0359.06
5.2.40.0020.0379.04
5.2.30.0050.0349.02
5.2.20.0050.0319.00
5.2.10.0020.0358.96
5.2.00.0060.0318.82
5.1.60.0010.0308.10
5.1.50.0040.0298.10
5.1.40.0020.0308.08
5.1.30.0030.0318.43
5.1.20.0050.0328.45
5.1.10.0020.0328.18
5.1.00.0060.0278.17
5.0.50.0040.0256.65
5.0.40.0020.0266.52
5.0.30.0020.0396.33
5.0.20.0020.0266.31
5.0.10.0050.0316.28
5.0.00.0030.0486.28
4.4.90.0040.0294.77
4.4.80.0030.0324.75
4.4.70.0030.0244.75
4.4.60.0030.0224.75
4.4.50.0010.0224.77
4.4.40.0020.0324.71
4.4.30.0020.0224.76
4.4.20.0050.0194.84
4.4.10.0030.0214.85
4.4.00.0010.0324.76
4.3.110.0020.0224.67
4.3.100.0030.0204.66
4.3.90.0040.0184.64
4.3.80.0030.0294.58
4.3.70.0010.0224.63
4.3.60.0040.0194.62
4.3.50.0020.0214.62
4.3.40.0040.0284.54
4.3.30.0030.0213.33
4.3.20.0020.0513.31
4.3.10.0050.0663.27
4.3.00.0000.06316.50

preferences:
52.27 ms | 400 KiB | 5 Q