3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "thisismypassword"; $salt = "SaltyMotherFucker"; // Our hashing method: $hash = md5($salt . ":" . $password); echo "Our's: $hash"; // Hmac - sha1 $hmac = sha1($password); $hash = sha1($salt.$hmac); echo "Hmac-sha1: $hash";

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)
8.3.60.0130.00316.63
8.3.50.0070.00716.54
8.3.40.0040.01118.71
8.3.30.0110.00618.67
8.3.20.0080.00018.71
8.3.10.0000.00818.65
8.3.00.0080.00019.38
8.2.180.0120.00916.32
8.2.170.0110.00422.96
8.2.160.0100.00618.87
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00326.16
8.2.120.0000.00819.66
8.2.110.0040.00820.32
8.2.100.0040.00719.51
8.2.90.0040.00417.50
8.2.80.0060.00318.55
8.2.70.0040.00417.63
8.2.60.0060.00317.75
8.2.50.0030.00517.46
8.2.40.0090.00017.63
8.2.30.0000.00817.71
8.2.20.0030.00617.57
8.2.10.0000.00717.81
8.2.00.0000.01017.80
8.1.280.0150.00625.92
8.1.270.0040.00423.99
8.1.260.0140.00026.35
8.1.250.0050.00228.09
8.1.240.0060.00318.88
8.1.230.0040.00717.76
8.1.220.0080.00017.77
8.1.210.0080.00018.77
8.1.200.0040.00417.23
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0030.00618.60
8.1.160.0030.00618.68
8.1.150.0030.00518.68
8.1.140.0070.00017.36
8.1.130.0050.00217.30
8.1.120.0000.00817.42
8.1.110.0000.00717.35
8.1.100.0070.00017.35
8.1.90.0000.00717.46
8.1.80.0050.00217.42
8.1.70.0030.00517.39
8.1.60.0000.00717.46
8.1.50.0000.00817.34
8.1.40.0000.00817.52
8.1.30.0040.00417.55
8.1.20.0100.00017.61
8.1.10.0000.00817.54
8.1.00.0000.00817.40
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00417.99
8.0.270.0070.00017.25
8.0.260.0080.00016.74
8.0.250.0030.00616.83
8.0.240.0070.00016.87
8.0.230.0000.00716.84
8.0.220.0040.00416.88
8.0.210.0070.00016.93
8.0.200.0040.00416.98
8.0.190.0030.00316.96
8.0.180.0040.00416.94
8.0.170.0000.00816.96
8.0.160.0040.00416.81
8.0.150.0000.00916.90
8.0.140.0080.00016.85
8.0.130.0030.00313.24
8.0.120.0040.00416.84
8.0.110.0070.00316.71
8.0.100.0040.00416.85
8.0.90.0000.00716.89
8.0.80.0070.00716.86
8.0.70.0040.00416.93
8.0.60.0000.00816.99
8.0.50.0060.00317.00
8.0.30.0070.01417.26
8.0.20.0100.00916.87
8.0.10.0050.00316.78
8.0.00.0120.00916.69
7.4.330.0060.00012.98
7.4.320.0060.00016.36
7.4.300.0000.00616.51
7.4.290.0070.00416.53
7.4.280.0040.00416.35
7.4.270.0020.00516.53
7.4.260.0000.00613.26
7.4.250.0050.00316.56
7.4.240.0070.00016.41
7.4.230.0000.00816.54
7.4.220.0220.00316.57
7.4.210.0120.00916.61
7.4.200.0030.00316.34
7.4.190.0090.00016.39
7.4.160.0060.00916.50
7.4.150.0100.00716.30
7.4.140.0080.00817.86
7.4.130.0110.00816.55
7.4.120.0130.00916.60
7.4.110.0030.01416.59
7.4.100.0030.01316.43
7.4.90.0130.01016.52
7.4.80.0130.00419.39
7.4.70.0070.01416.30
7.4.60.0070.01016.46
7.4.50.0000.00516.28
7.4.40.0070.01016.28
7.4.30.0100.00716.43
7.4.00.0070.00915.04
7.3.330.0040.00413.14
7.3.320.0050.00013.22
7.3.310.0030.00316.31
7.3.300.0040.00416.11
7.3.290.0060.00916.30
7.3.280.0160.00316.29
7.3.270.0180.00316.33
7.3.260.0080.01116.34
7.3.240.0100.00716.51
7.3.230.0070.01016.25
7.3.210.0130.00316.24
7.3.200.0030.01416.31
7.3.190.0100.00716.36
7.3.180.0120.00316.31
7.3.170.0070.01016.46
7.3.160.0130.00616.54
7.3.120.0110.00514.74
7.3.110.0000.01514.59
7.3.100.0030.01014.63
7.3.90.0100.00314.66
7.3.80.0030.01014.75
7.3.70.0000.01214.59
7.3.60.0030.01014.88
7.3.50.0060.00314.86
7.3.40.0070.00714.84
7.3.30.0100.00614.60
7.3.20.0070.00716.76
7.3.10.0060.00616.60
7.3.00.0100.00316.57
7.2.330.0170.00016.49
7.2.320.0100.01016.29
7.2.310.0170.00316.78
7.2.300.0170.00016.64
7.2.290.0130.01016.80
7.2.250.0150.00614.98
7.2.240.0130.00714.89
7.2.230.0110.00615.17
7.2.220.0070.00715.14
7.2.210.0030.01314.61
7.2.200.0000.01014.72
7.2.190.0000.01515.08
7.2.180.0030.00614.90
7.2.170.0000.01314.88
7.2.60.0100.00316.75
7.1.330.0060.00815.90
7.1.320.0100.00315.98
7.1.310.0030.01015.95
7.1.300.0110.00315.47
7.1.290.0080.00815.84
7.1.280.0040.01115.93
7.1.270.0030.01015.84
7.1.260.0090.00615.77
7.1.200.0030.01015.77
7.1.70.0000.00917.01
7.1.60.0140.01019.25
7.1.50.0060.01917.00
7.1.00.0000.03722.45
7.0.200.0050.00316.97
7.0.140.0100.06722.11
7.0.120.0070.07022.04
7.0.60.0000.04720.07
7.0.50.0030.04017.71
7.0.40.0130.03319.98
7.0.30.0330.08320.17
7.0.20.0270.07720.13
7.0.10.0100.06020.04
7.0.00.0070.07320.16
5.6.280.0070.07021.03
5.6.210.0130.04320.69
5.6.200.0030.08318.17
5.6.190.0030.04720.57
5.6.180.0270.05020.57
5.6.170.0170.04720.41
5.6.160.0070.06320.44
5.6.150.0070.05318.19
5.6.140.0070.04018.20
5.6.130.0030.04718.22
5.6.120.0170.07721.03
5.6.110.0000.05020.95
5.6.100.0030.04320.99
5.6.90.0270.06321.02
5.6.80.0070.07720.33
5.5.350.0000.06020.43
5.5.340.0030.07317.91
5.5.330.0070.08320.07
5.5.320.0070.05020.31
5.5.310.0230.06720.28
5.5.300.0130.07317.98
5.5.290.0070.07317.88
5.5.280.0070.03720.62
5.5.270.0070.06320.67
5.5.260.0070.06320.88
5.5.250.0200.05020.57
5.5.240.0270.03320.23
5.4.450.0030.04019.50
5.4.440.0070.03719.44
5.4.430.0030.04019.23
5.4.420.0070.03719.50
5.4.410.0000.04019.00
5.4.400.0000.04019.14
5.4.390.0030.03719.00
5.4.380.0070.03318.92
5.4.370.0030.03719.17
5.4.360.0070.04319.17
5.4.350.0070.03319.08
5.4.340.0070.03319.15
5.4.320.0000.04019.20
5.4.310.0100.03018.79
5.4.300.0070.04319.11
5.4.290.0100.07019.17
5.4.280.0030.04319.14
5.4.270.0000.04319.18
5.4.260.0130.07018.78
5.4.250.0100.07318.80
5.4.240.0000.07019.07
5.4.230.0100.05319.07
5.4.220.0100.05719.13
5.4.210.0100.04319.07
5.4.200.0030.04319.17
5.4.190.0100.07318.80
5.4.180.0100.06719.13
5.4.170.0030.07718.77
5.4.160.0000.05018.98
5.4.150.0030.04019.05
5.4.140.0030.08016.35
5.4.130.0070.07316.29
5.4.120.0070.04016.43
5.4.110.0070.04316.24
5.4.100.0130.04016.36
5.4.90.0070.03316.24
5.4.80.0070.04316.31
5.4.70.0000.05016.23
5.4.60.0100.07016.21
5.4.50.0030.07716.20
5.4.40.0100.04316.24
5.4.30.0030.08016.29
5.4.20.0200.06316.21
5.4.10.0100.06716.31
5.4.00.0000.06315.78
5.3.290.0100.04014.61
5.3.280.0100.07314.52
5.3.270.0130.05014.48
5.3.260.0070.08314.54
5.3.250.0030.05014.56
5.3.240.0070.04014.55
5.3.230.0030.07714.54
5.3.220.0030.07714.58
5.3.210.0070.07314.39
5.3.200.0100.05714.59
5.3.190.0070.07714.65
5.3.180.0100.04014.48
5.3.170.0070.04014.44
5.3.160.0030.05714.50
5.3.150.0100.06314.50
5.3.140.0070.08014.39
5.3.130.0030.06714.47
5.3.120.0100.07014.43
5.3.110.0200.06014.47
5.3.100.0030.08013.99
5.3.90.0100.07313.99
5.3.80.0070.06713.83
5.3.70.0070.06713.97
5.3.60.0070.07314.09
5.3.50.0070.07013.78
5.3.40.0030.03713.87
5.3.30.0070.07713.89
5.3.20.0100.06313.67
5.3.10.0130.06713.48
5.3.00.0000.04313.57
5.2.170.0030.03311.11
5.2.160.0030.05311.22
5.2.150.0130.05311.30
5.2.140.0030.03711.07
5.2.130.0030.06011.03
5.2.120.0030.03310.96
5.2.110.0070.04710.98
5.2.100.0130.05711.00
5.2.90.0030.04011.00
5.2.80.0030.04011.08
5.2.70.0070.03010.98
5.2.60.0070.04011.05
5.2.50.0100.05710.96
5.2.40.0070.05310.99
5.2.30.0100.04710.89
5.2.20.0030.06710.86
5.2.10.0030.06010.75
5.2.00.0030.04010.61
5.1.60.0070.04010.14
5.1.50.0070.0509.89
5.1.40.0070.0539.94
5.1.30.0030.05310.40
5.1.20.0030.06010.43
5.1.10.0000.0309.96
5.1.00.0000.05710.08
5.0.50.0000.0338.49
5.0.40.0030.0208.40
5.0.30.0000.0608.30
5.0.20.0030.0308.33
5.0.10.0000.0438.32
5.0.00.0070.0678.13
4.4.90.0000.0277.81
4.4.80.0070.0337.81
4.4.70.0000.0237.81
4.4.60.0000.0377.81
4.4.50.0070.0207.81
4.4.40.0100.0407.81
4.4.30.0000.0177.81
4.4.20.0000.0237.81
4.4.10.0030.0177.81
4.4.00.0030.0407.81
4.3.110.0030.0307.81
4.3.100.0070.0307.81
4.3.90.0070.0307.81
4.3.80.0000.0577.81
4.3.70.0030.0377.81
4.3.60.0000.0377.81
4.3.50.0070.0307.81
4.3.40.0000.0477.81
4.3.30.0000.0337.81
4.3.20.0000.0277.81
4.3.10.0000.0377.81
4.3.00.0000.0277.81

preferences:
44.83 ms | 401 KiB | 5 Q