3v4l.org

run code in 300+ PHP versions simultaneously
<?php function VerifyPasswordHash($password,$pass_hash,$pass_salt){ $sig = hash_hmac('sha512', $password, hex2bin(substr($pass_salt, 2)), false); $hash = '0x' . strtoupper($sig); return $hash === $pass_hash; } $matches = VerifyPasswordHash( "Password202!", "0x0C3F6C5921CCD0305B2EDEDE1553B1DF55B87A9D55FEE3384A3833611BC40D106BBB48CCE1093AE35B9D0E3A1FE62E86186A6EC143BA00E53945E99C259B4913", "0xC62C5A645280DBCC615ED4A3E861D800B00A929856A9664B3AED50A06481ED19AFB09F74D3D7A9EA25327D93F23FDFBD2DE8CF3A75D65A3EA97290E0486F1F4322D2B5853AE6FE848E50355C35B62A993CF6689D9F9ABC861C5E7D88B099617E6A6C7792E285EFBB809FD69CD926C9BD9129AD1BE7DDB5DD459C2B9A2B945B31" ); var_dump($matches);

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.4.130.0050.00519.79
8.4.120.0050.00322.43
8.4.110.0120.00822.56
8.4.100.0090.01117.69
8.4.90.0090.01218.44
8.4.80.0090.00217.79
8.4.70.0080.00217.72
8.4.60.0070.00318.53
8.4.50.0030.00718.42
8.4.40.0070.01319.71
8.4.30.0030.01620.60
8.4.20.0000.01017.81
8.4.10.0130.00723.91
8.3.260.0110.00816.81
8.3.250.0080.00418.89
8.3.240.0120.00718.65
8.3.230.0100.00716.47
8.3.220.0090.00918.80
8.3.210.0010.00716.63
8.3.200.0090.00016.41
8.3.190.0140.00516.55
8.3.180.0050.00316.63
8.3.170.0110.00718.68
8.3.160.0030.01520.48
8.3.150.0110.00418.38
8.3.140.0120.00317.34
8.3.130.0040.01518.34
8.3.120.0090.00318.90
8.3.110.0100.01020.94
8.3.100.0000.00824.06
8.3.90.0110.00426.77
8.3.80.0060.00616.63
8.3.70.0180.00316.58
8.3.60.0040.01118.31
8.3.50.0080.00820.30
8.3.40.0110.00420.47
8.3.30.0150.00018.59
8.3.20.0070.00024.18
8.3.10.0080.00024.66
8.3.00.0040.00426.16
8.2.290.0120.00720.53
8.2.280.0130.00716.57
8.2.270.0140.00419.02
8.2.260.0090.00916.57
8.2.250.0040.00416.33
8.2.240.0000.00918.83
8.2.230.0000.01922.58
8.2.220.0130.00037.54
8.2.210.0180.00026.77
8.2.200.0030.00618.14
8.2.190.0140.00416.88
8.2.180.0040.01125.92
8.2.170.0040.01119.00
8.2.160.0030.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0080.00019.36
8.2.110.0060.00322.02
8.2.100.0090.00417.74
8.2.90.0050.00317.63
8.2.80.0050.00518.63
8.2.70.0000.00917.38
8.2.60.0040.00417.91
8.2.50.0040.00418.07
8.2.40.0040.00418.16
8.2.30.0040.00418.11
8.2.20.0080.00019.16
8.2.10.0080.00017.95
8.2.00.0080.00019.32
8.1.330.0080.00522.07
8.1.320.0110.00816.19
8.1.310.0110.00718.61
8.1.300.0050.00318.30
8.1.290.0030.00630.84
8.1.280.0120.00325.92
8.1.270.0090.00023.73
8.1.260.0070.00726.35
8.1.250.0070.00028.09
8.1.240.0110.01121.00
8.1.230.0070.00420.66
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0030.00518.76
8.1.160.0030.00518.75
8.1.150.0040.00418.60
8.1.140.0000.00817.45
8.1.130.0070.00018.84
8.1.120.0100.00517.44
8.1.110.0130.00317.34
8.1.100.0070.01017.25
8.1.90.0100.00517.43
8.1.80.0150.00017.32
8.1.70.0060.01017.23
8.1.60.0120.00617.54
8.1.50.0150.00317.54
8.1.40.0120.00617.51
8.1.30.0170.00217.54
8.1.20.0170.00417.51
8.1.10.0130.00817.39
8.1.00.0180.00017.36
8.0.300.0090.00018.77
8.0.290.0000.00816.75
8.0.280.0000.01018.35
8.0.270.0040.00417.90
8.0.260.0000.00618.46
8.0.250.0070.00716.85
8.0.240.0120.00216.96
8.0.230.0150.00016.89
8.0.220.0150.00016.75
8.0.210.0100.00516.76
8.0.200.0160.00016.86
8.0.190.0070.00716.84
8.0.180.0110.00416.74
8.0.170.0070.00716.82
8.0.160.0120.00416.85
8.0.150.0110.00416.66
8.0.140.0150.00016.85
8.0.130.0150.00016.78
8.0.120.0080.00816.82
8.0.110.0140.00016.88
8.0.100.0110.00416.84
8.0.90.0050.01016.70
8.0.80.0070.00716.78
8.0.70.0100.00516.68
8.0.60.0090.00616.72
8.0.50.0150.00016.62
8.0.30.0150.00016.84
8.0.20.0140.00016.82
8.0.10.0140.00016.79
7.4.330.0000.00515.55
7.4.320.0070.00616.45
7.4.300.0120.00616.62
7.4.290.0170.00016.55
7.4.280.0080.00816.57
7.4.270.0120.00216.57
7.4.260.0100.00316.55
7.4.250.0140.00316.57
7.4.240.0130.00416.51
7.4.230.0090.00416.54
7.4.220.0090.00316.36
7.4.210.0110.00416.52
7.4.200.0120.00216.59
7.4.190.0100.00516.45
7.4.180.0070.00716.55
7.4.160.0100.00516.55
7.4.150.0080.00616.48
7.4.140.0140.00016.43
7.4.130.0100.00516.54
7.4.120.0090.00516.55
7.4.110.0050.00916.47
7.4.100.0090.00516.61
7.4.90.0070.00716.37
7.4.80.0140.00016.44
7.4.70.0080.00016.45
7.4.60.0090.00216.45
7.4.50.0040.00816.25
7.4.40.0120.00016.21
7.4.30.0040.00416.36
7.4.20.0070.00016.28
7.4.10.0050.00216.30
7.4.00.0000.00616.40

preferences:
29.9 ms | 403 KiB | 5 Q