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; $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.120.0030.01314.85
7.3.110.0000.01415.05
7.3.100.0000.01714.97
7.3.90.0110.00714.95
7.3.80.0100.00314.66
7.3.70.0140.00014.91
7.3.60.0040.01114.91
7.3.50.0080.00814.65
7.3.40.0040.01114.98
7.3.30.0070.00714.88
7.3.20.0080.00816.42
7.3.10.0050.01016.59
7.3.00.0080.00316.57
7.2.240.0070.01015.15
7.2.230.0090.00615.07
7.2.220.0070.01115.13
7.2.210.0030.01514.97
7.2.200.0120.00014.93
7.2.190.0080.00814.86
7.2.180.0040.01114.77
7.2.170.0090.00315.13
7.2.160.0070.01014.98
7.2.150.0110.00717.02
7.2.140.0040.00816.96
7.2.130.0050.00716.73
7.2.120.0100.00716.87
7.2.110.0060.00716.98
7.2.100.0060.01016.68
7.2.90.0050.00916.95
7.2.80.0050.00916.75
7.2.70.0090.01016.77
7.2.60.0070.00716.93
7.2.50.0100.00516.93
7.2.40.0030.01116.67
7.2.30.0080.00616.98
7.2.20.0050.01016.85
7.2.10.0050.01116.97
7.2.00.0080.00717.75
7.1.330.0100.00315.45
7.1.320.0040.01115.88
7.1.310.0050.00515.89
7.1.300.0090.00715.63
7.1.290.0120.00315.86
7.1.280.0040.01215.63
7.1.270.0060.01015.63
7.1.260.0060.00615.68
7.1.250.0060.00715.83
7.1.240.0080.00615.79
7.1.230.0060.00615.70
7.1.220.0030.01015.45
7.1.210.0090.00615.86
7.1.200.0060.01015.71
7.1.190.0070.00715.62
7.1.180.0070.00715.49
7.1.170.0030.00615.85
7.1.160.0070.01015.71
7.1.150.0100.00315.71
7.1.140.0110.00715.68
7.1.130.0100.00715.89
7.1.120.0040.00815.78
7.1.110.0000.01215.91
7.1.100.0100.00615.52
7.1.90.0070.00715.93
7.1.80.0120.00615.78
7.1.70.0070.00416.38
7.1.60.0100.00817.52
7.1.50.0110.00516.44
7.1.40.0050.00915.59
7.1.30.0090.00315.82
7.1.20.0040.00915.70
7.1.10.0100.01015.68
7.1.00.0080.04019.10
7.0.330.0040.00715.05
7.0.320.0030.00915.50
7.0.310.0070.00715.32
7.0.300.0030.01515.24
7.0.290.0090.00615.33
7.0.280.0090.00915.29
7.0.270.0060.00915.24
7.0.260.0030.01015.18
7.0.250.0140.00315.27
7.0.240.0040.00715.48
7.0.230.0070.00315.50
7.0.220.0030.01115.46
7.0.210.0060.00915.26
7.0.200.0030.00916.22
7.0.190.0070.00715.54
7.0.180.0050.00515.33
7.0.170.0110.00515.47
7.0.160.0030.00615.43
7.0.150.0000.00915.06
7.0.140.0090.03718.77
7.0.130.0060.01015.31
7.0.120.0070.00715.13
7.0.110.0070.00715.23
7.0.100.0000.01315.37
7.0.90.0060.00615.14
7.0.80.0070.00715.36
7.0.70.0060.00615.54
7.0.60.0080.04517.68
7.0.50.0060.03616.51
7.0.40.0070.05016.93
7.0.30.0300.03516.88
7.0.20.0180.04316.60
7.0.10.0020.04716.78
7.0.00.0110.02216.64
5.6.380.0140.00014.12
5.6.370.0120.00614.45
5.6.360.0050.00814.22
5.6.350.0070.01014.21
5.6.340.0000.01713.92
5.6.330.0000.01414.20
5.6.320.0110.00814.32
5.6.310.0040.01114.00
5.6.300.0030.01014.47
5.6.290.0000.01813.98
5.6.280.0060.04017.71
5.6.270.0030.01614.14
5.6.260.0070.01313.88
5.6.250.0060.00314.49
5.6.240.0000.01614.46
5.6.230.0110.00714.17
5.6.220.0090.00614.09
5.6.210.0030.04517.39
5.6.200.0120.04216.20
5.6.190.0040.02717.50
5.6.180.0120.03517.48
5.6.170.0170.02317.29
5.6.160.0050.03717.19
5.6.150.0050.04116.24
5.6.140.0040.02416.21
5.6.130.0100.03216.13
5.6.120.0050.02917.47
5.6.110.0050.04517.86
5.6.100.0080.04817.66
5.6.90.0070.03317.65
5.6.80.0150.01317.33
5.6.70.0070.00714.34
5.6.60.0000.01214.15
5.6.50.0090.00014.08
5.6.40.0030.01214.11
5.6.30.0090.00314.05
5.6.20.0090.00314.10
5.6.10.0030.01213.91
5.6.00.0140.00014.47
5.5.380.0060.00610.92
5.5.370.0000.00711.09
5.5.360.0040.00810.82
5.5.350.0030.03915.55
5.5.340.0030.03614.40
5.5.330.0080.02115.61
5.5.320.0230.03815.59
5.5.310.0150.03615.68
5.5.300.0020.04714.35
5.5.290.0040.04914.55
5.5.280.0080.02215.81
5.5.270.0100.04015.59
5.5.260.0070.04615.97
5.5.250.0030.03615.74
5.5.240.0200.03215.47
5.5.230.0030.00610.84
5.5.220.0000.01111.05
5.5.210.0030.01010.84
5.5.200.0030.00610.77
5.5.190.0030.00910.66
5.5.180.0040.00811.10
5.5.170.0120.00310.72
5.5.160.0030.01010.76
5.5.150.0070.00310.76
5.5.140.0060.00610.92
5.5.130.0090.00310.62
5.5.120.0000.00811.30
5.5.110.0040.00711.10
5.5.100.0000.01110.61
5.5.90.0040.00810.75
5.5.80.0000.01010.84
5.5.70.0040.00810.88
5.5.60.0000.00610.86
5.5.50.0040.00810.78
5.5.40.0000.01010.82
5.5.30.0030.00610.78
5.5.20.0000.01310.76
5.5.10.0000.00910.76
5.5.00.0000.00711.00
5.4.450.0180.02115.33
5.4.440.0450.03015.20
5.4.430.0380.03115.31
5.4.420.0330.00515.40
5.4.410.0360.00315.17
5.4.400.0330.00514.95
5.4.390.0340.00414.94
5.4.380.0420.00214.89
5.4.370.0360.00314.96
5.4.360.0450.00015.02
5.4.350.0350.00214.90
5.4.340.0330.00515.00
5.4.330.0030.00910.79
5.4.320.0040.02111.51
5.4.310.0060.02111.65
5.4.300.0030.02511.51
5.4.290.0050.02311.64
5.4.280.0090.01911.54
5.4.270.0070.01911.66
5.4.260.0060.02011.59
5.4.250.0040.02611.47
5.4.240.0050.02511.68
5.4.230.0020.02711.63
5.4.220.0050.02011.57
5.4.210.0040.02211.58
5.4.200.0050.02511.59
5.4.190.0020.02311.60
5.4.180.0050.02111.72
5.4.170.0060.02211.55
5.4.160.0020.02411.52
5.4.150.0040.02411.61
5.4.140.0060.02411.43
5.4.130.0040.02211.34
5.4.120.0050.02211.31
5.4.110.0030.02311.43
5.4.100.0060.02011.44
5.4.90.0050.02111.40
5.4.80.0070.01911.46
5.4.70.0070.01911.43
5.4.60.0070.02011.47
5.4.50.0060.02211.42
5.4.40.0060.02211.41
5.4.30.0070.02211.30
5.4.20.0060.02011.51
5.4.10.0060.01911.49
5.4.00.0020.02311.14
5.3.290.0030.02611.68
5.3.280.0060.02011.58
5.3.270.0020.02611.54
5.3.260.0040.02511.66
5.3.250.0050.02211.63
5.3.240.0060.02111.43
5.3.230.0030.02411.59
5.3.220.0030.02311.49
5.3.210.0040.02511.48
5.3.200.0040.02311.51
5.3.190.0040.02311.43
5.3.180.0020.02511.60
5.3.170.0070.02111.59
5.3.160.0020.02311.49
5.3.150.0040.02111.59
5.3.140.0040.02311.54
5.3.130.0040.02111.54
5.3.120.0070.02511.42
5.3.110.0050.02411.48
5.3.100.0050.02211.21
5.3.90.0020.02511.22
5.3.80.0050.02011.18
5.3.70.0050.02211.17
5.3.60.0030.02111.29
5.3.50.0040.02111.12
5.3.40.0070.01911.08
5.3.30.0020.02311.22
5.3.20.0060.02211.06
5.3.10.0040.02110.95
5.3.00.0060.02210.93
5.2.170.0040.0189.36
5.2.160.0020.0219.35
5.2.150.0020.0229.34
5.2.140.0020.0199.33
5.2.130.0070.0149.12
5.2.120.0030.0179.27
5.2.110.0040.0199.27
5.2.100.0050.0199.31
5.2.90.0050.0179.23
5.2.80.0060.0229.15
5.2.70.0020.0229.24
5.2.60.0050.0189.15
5.2.50.0060.0189.21
5.2.40.0040.0159.13
5.2.30.0040.0219.21
5.2.20.0040.0189.04
5.2.10.0020.0219.07
5.2.00.0030.0188.90
5.1.60.0030.0228.26
5.1.50.0040.0208.35
5.1.40.0040.0168.33
5.1.30.0070.0188.47
5.1.20.0040.0238.56
5.1.10.0020.0228.25
5.1.00.0050.0208.26
5.0.50.0020.0147.49
5.0.40.0030.0127.41
5.0.30.0020.0207.32
5.0.20.0060.0127.31
5.0.10.0020.0157.30
5.0.00.0040.0187.29
4.4.90.0020.0096.55
4.4.80.0020.0136.54
4.4.70.0010.0136.54
4.4.60.0020.0126.54
4.4.50.0030.0116.54
4.4.40.0050.0166.51
4.4.30.0020.0106.54
4.4.20.0040.0076.58
4.4.10.0020.0126.58
4.4.00.0010.0166.54
4.3.110.0020.0116.49
4.3.100.0010.0126.49
4.3.90.0020.0096.48
4.3.80.0020.0146.45
4.3.70.0020.0116.47
4.3.60.0020.0096.47
4.3.50.0030.0116.47
4.3.40.0040.0156.43
4.3.30.0020.0095.82
4.3.20.0030.0165.81
4.3.10.0010.0175.79
4.3.00.0020.01212.41

preferences:
36.49 ms | 401 KiB | 5 Q