3v4l.org

run code in 300+ PHP versions simultaneously
<?php $salt = microtime(); echo $salt . ' '; $generated_token = MD5('$salt' . rand(1, 100)); //echo $generated_token. '<br>'; for($token=1;$token<10;++$token){ if($generated_token == $token) echo 'true'; else echo 'false'; } ?>

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.4.00.0030.01215.03
7.3.120.0080.01115.47
7.3.110.0050.01015.51
7.3.100.0060.01115.43
7.3.90.0010.01115.63
7.3.80.0060.00715.63
7.3.70.0040.00815.42
7.3.60.0060.00815.51
7.3.50.0080.00915.60
7.3.40.0060.00615.58
7.3.30.0030.01015.50
7.3.20.0050.01016.84
7.3.10.0070.00716.81
7.3.00.0060.00616.66
7.2.250.0020.01514.85
7.2.240.0070.01115.60
7.2.230.0060.01015.79
7.2.220.0070.00715.72
7.2.210.0090.00615.88
7.2.200.0070.00615.70
7.2.190.0040.01115.74
7.2.180.0060.00715.70
7.2.170.0060.01015.63
7.2.160.0080.00017.15
7.2.150.0060.01217.15
7.2.140.0070.01017.15
7.2.130.0100.00417.06
7.2.120.0100.00317.09
7.2.110.0060.00517.01
7.2.100.0020.01317.10
7.2.90.0020.01517.01
7.2.80.0050.00817.05
7.2.70.0040.00916.97
7.2.60.0060.00816.98
7.2.50.0070.00917.11
7.2.40.0070.00717.13
7.2.30.0060.00617.13
7.2.20.0070.00317.08
7.2.10.0040.01016.89
7.2.00.0060.00717.89
7.1.330.0080.00716.28
7.1.320.0040.00716.27
7.1.310.0060.00816.26
7.1.300.0040.00916.20
7.1.290.0050.00916.16
7.1.280.0040.00716.32
7.1.270.0070.00716.17
7.1.260.0040.01016.29
7.1.250.0060.00716.32
7.1.70.0050.00317.09
7.1.60.0100.01419.57
7.1.50.0030.01816.60
7.1.00.0070.07022.29
7.0.200.0000.00716.76
7.0.140.0070.02722.04
7.0.110.0070.07719.96
7.0.100.0270.07319.93
7.0.90.0170.08720.03
7.0.80.0130.08320.00
7.0.70.0170.07319.86
7.0.60.0100.08719.87
7.0.50.0130.09020.39
7.0.40.0100.08020.19
7.0.30.0130.07720.13
7.0.20.0030.08720.15
7.0.10.0030.08020.12
7.0.00.0170.07020.18
5.6.280.0100.06720.99
5.6.250.0070.08320.62
5.6.240.0100.04720.67
5.6.230.0100.05020.54
5.6.220.0100.07720.65
5.6.210.0130.07320.56
5.6.200.0100.08021.14
5.6.190.0070.08021.27
5.6.180.0130.08020.93
5.6.170.0200.05021.26
5.6.160.0200.05721.09
5.6.150.0070.08721.14
5.6.140.0270.07021.28
5.6.130.0170.07321.07
5.6.120.0030.09021.13
5.6.110.0170.07020.97
5.6.100.0200.07321.13
5.6.90.0030.07320.91
5.6.80.0130.08020.46
5.6.70.0070.07320.36
5.6.60.0070.08320.45
5.6.50.0130.06720.57
5.6.40.0170.06720.34
5.6.30.0070.08020.48
5.6.20.0200.06720.50
5.6.10.0100.05720.54
5.6.00.0070.06720.62
5.5.380.0130.06320.37
5.5.370.0130.07320.37
5.5.360.0100.07720.30
5.5.350.0170.07720.45
5.5.340.0170.07020.89
5.5.330.0130.08021.01
5.5.320.0070.08020.95
5.5.310.0130.07721.01
5.5.300.0000.09020.95
5.5.290.0130.08320.96
5.5.280.0200.07720.98
5.5.270.0070.08020.76
5.5.260.0000.08720.86
5.5.250.0100.06320.57
5.5.240.0030.08020.16
5.5.230.0100.07320.25
5.5.220.0130.07720.24
5.5.210.0000.08720.41
5.5.200.0000.08320.13
5.5.190.0170.07720.30
5.5.180.0070.08320.29
5.5.160.0130.06020.31
5.5.150.0100.07720.30
5.5.140.0130.07020.32
5.5.130.0100.07320.29
5.5.120.0000.08320.23
5.5.110.0070.06720.24
5.5.100.0030.08720.04
5.5.90.0070.07319.98
5.5.80.0070.06320.00
5.5.70.0170.06720.26
5.5.60.0000.05720.21
5.5.50.0200.06320.13
5.5.40.0100.07720.03
5.5.30.0070.05020.20
5.5.20.0170.07020.12
5.5.10.0170.07020.10
5.5.00.0070.07320.21
5.4.450.0130.07019.45
5.4.440.0030.07319.29
5.4.430.0170.07019.57
5.4.420.0030.07319.35
5.4.410.0070.06319.36
5.4.400.0070.06719.11
5.4.390.0130.07019.10
5.4.380.0230.06319.00
5.4.370.0100.07319.25
5.4.360.0170.06719.00
5.4.350.0170.06719.25
5.4.340.0000.08319.20
5.4.320.0230.06319.12
5.4.310.0100.07319.12
5.4.300.0030.08019.16
5.4.290.0070.07319.27
5.4.280.0030.06019.11
5.4.270.0130.07019.27
5.4.260.0070.06719.28
5.4.250.0100.06719.00
5.4.240.0100.07719.24
5.4.230.0130.06319.02
5.4.220.0000.06318.94
5.4.210.0070.07719.02
5.4.200.0130.07019.02
5.4.190.0030.08319.24
5.4.180.0100.07719.02
5.4.170.0030.06719.02
5.4.160.0070.08018.96
5.4.150.0130.07318.96
5.4.140.0070.07716.53
5.4.130.0030.07016.44
5.4.120.0070.05316.16
5.4.110.0070.06716.18
5.4.100.0130.03316.19
5.4.90.0070.06016.54
5.4.80.0130.07016.17
5.4.70.0030.07316.34
5.4.60.0170.06016.18
5.4.50.0100.07316.45
5.4.40.0130.06716.40
5.4.30.0100.07316.47
5.4.20.0030.07316.37
5.4.10.0030.05016.20
5.4.00.0100.06715.97
5.3.290.0030.08714.49
5.3.280.0170.06014.59
5.3.270.0030.08314.56
5.3.260.0100.07314.54
5.3.250.0100.07314.52
5.3.240.0100.07014.70
5.3.230.0000.07014.47
5.3.220.0000.05014.58
5.3.210.0170.06714.66
5.3.200.0030.07314.45
5.3.190.0100.04714.56
5.3.180.0070.07314.65
5.3.170.0000.07314.44
5.3.160.0100.07014.62
5.3.150.0130.06714.58
5.3.140.0070.04714.54
5.3.130.0070.07714.40
5.3.120.0030.07714.61
5.3.110.0100.06714.48
5.3.100.0130.05014.11
5.3.90.0070.07313.89
5.3.80.0070.06313.80
5.3.70.0130.06713.91
5.3.60.0100.07313.82
5.3.50.0070.07013.73
5.3.40.0070.06013.89
5.3.30.0100.06714.02
5.3.20.0130.06313.53
5.3.10.0130.05313.72
5.3.00.0100.06713.55
5.2.170.0100.05711.09
5.2.160.0030.06011.14
5.2.150.0030.05311.04
5.2.140.0070.05011.08
5.2.130.0030.06711.04
5.2.120.0030.05711.02
5.2.110.0070.03311.04
5.2.100.0130.04711.00
5.2.90.0030.05711.09
5.2.80.0070.03311.04
5.2.70.0100.06011.17
5.2.60.0070.03311.21
5.2.50.0000.07010.91
5.2.40.0070.06010.91
5.2.30.0000.05010.98
5.2.20.0100.05011.18
5.2.10.0000.04010.85
5.2.00.0100.05710.78
5.1.60.0030.0539.98
5.1.50.0030.0539.95
5.1.40.0130.0479.94
5.1.30.0000.03710.48
5.1.20.0070.04710.40
5.1.10.0070.05010.21
5.1.00.0070.05310.18
5.0.50.0070.0438.79
5.0.40.0070.0408.79
5.0.30.0000.0638.79
5.0.20.0030.0238.79
5.0.10.0030.0208.79
5.0.00.0070.0608.79
4.4.90.0000.0378.79
4.4.80.0070.0308.79
4.4.70.0030.0338.79
4.4.60.0000.0408.79
4.4.50.0070.0338.79
4.4.40.0030.0538.79
4.4.30.0000.0378.79
4.4.20.0000.0378.79
4.4.10.0070.0308.79
4.4.00.0030.0578.79
4.3.110.0030.0338.79
4.3.100.0000.0278.79
4.3.90.0000.0308.79
4.3.80.0030.0508.79
4.3.70.0000.0378.79
4.3.60.0000.0208.79
4.3.50.0030.0378.79
4.3.40.0030.0508.79
4.3.30.0000.0378.79
4.3.20.0030.0338.79
4.3.10.0030.0338.79
4.3.00.0000.0208.79

preferences:
31.84 ms | 401 KiB | 5 Q