3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = hex2bin("002590cd26da"); // Convert the hex string to binary $key = hex2bin("8544e3b47eca58f9583043f8"); // Convert the hex key to binary $hmac = hash_hmac('sha1', $data, $key, true); // Use 'true' to get binary output $hmac_hex = bin2hex($hmac); // Convert the binary HMAC to a hex string echo "HMAC: " . $hmac_hex; ?>

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.5.10.0070.00918.43
8.5.00.0110.01019.91
8.4.150.0020.00014.05
8.4.140.0110.01117.27
8.4.130.0100.00917.81
8.4.120.0090.01020.52
8.4.110.0140.00619.02
8.4.100.0110.00917.57
8.4.90.0080.01220.65
8.4.80.0110.00919.41
8.4.70.0140.00517.79
8.4.60.0140.00818.91
8.4.50.0090.01219.09
8.4.40.0200.00017.50
8.4.30.0090.00922.27
8.4.20.0130.00717.78
8.4.10.0060.00320.96
8.3.280.0170.00918.33
8.3.270.0090.01016.34
8.3.260.0120.00616.50
8.3.250.0100.00818.58
8.3.240.0070.00216.68
8.3.230.0100.00516.41
8.3.220.0150.00318.86
8.3.210.0100.00816.48
8.3.200.0050.00416.66
8.3.190.0120.00817.03
8.3.180.0030.00616.94
8.3.170.0120.00617.29
8.3.160.0150.00318.27
8.3.150.0120.00820.61
8.3.140.0070.01116.19
8.3.130.0040.01518.40
8.3.120.0060.01320.58
8.3.110.0100.00720.94
8.3.100.0090.01324.06
8.3.90.0050.00326.77
8.3.80.0060.00318.55
8.3.70.0140.00018.43
8.3.60.0110.00318.18
8.3.50.0060.01216.58
8.3.40.0140.00021.65
8.3.30.0110.00418.95
8.3.20.0050.00224.18
8.3.10.0040.00424.66
8.3.00.0000.00826.16
8.2.290.0050.00416.48
8.2.280.0070.00718.31
8.2.270.0120.00617.21
8.2.260.0040.00419.01
8.2.250.0080.00016.60
8.2.240.0100.00016.94
8.2.230.0030.00622.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0040.00416.50
8.2.190.0070.01116.58
8.2.180.0150.00016.63
8.2.170.0120.00318.78
8.2.160.0110.00322.96
8.2.150.0040.01125.66
8.2.140.0070.00024.66
8.2.130.0030.00526.16
8.2.120.0080.00021.00
8.2.110.0000.00819.16
8.2.100.0250.00717.57
8.2.90.0290.00417.57
8.2.80.0210.01117.57
8.2.70.0280.00417.57
8.2.60.0280.00617.57
8.2.50.0250.00917.57
8.2.40.0270.00417.57
8.2.30.0220.00617.57
8.2.20.0220.00717.57
8.2.10.0220.00617.57
8.2.00.0240.00717.57
8.1.330.0100.00916.32
8.1.320.0160.00316.24
8.1.310.0000.00818.44
8.1.300.0050.00320.28
8.1.290.0030.00630.84
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.53
8.1.230.0150.00318.84
8.1.220.0220.00717.57
8.1.210.0220.00617.57
8.1.200.0220.00617.57
8.1.190.0260.00017.57
8.1.180.0240.00317.57
8.1.170.0220.00717.57
8.1.160.0260.00317.57
8.1.150.0240.00317.57
8.1.140.0170.01117.57
8.1.130.0210.00917.57
8.1.120.0310.00017.57
8.1.110.0200.00817.57
8.1.100.0240.00517.57
8.1.90.0110.01717.57
8.1.80.0180.01017.57
8.1.70.0240.00417.57
8.1.60.0220.00417.57
8.1.50.0190.00717.57
8.1.40.0210.00717.57
8.1.30.0200.00817.57
8.1.20.0230.00317.57
8.1.10.0270.00317.57
8.1.00.0190.00817.57
8.0.300.0250.00317.57
8.0.290.0300.00017.57
8.0.280.0290.00017.57
8.0.270.0190.01017.57
8.0.260.0260.00417.57
8.0.250.0220.00817.57
8.0.240.0150.01117.57
8.0.230.0210.00817.57
8.0.220.0250.00317.57
8.0.210.0230.00517.57
8.0.200.0210.01117.57
8.0.190.0190.01217.57
8.0.180.0220.00717.57
8.0.170.0240.00317.57
8.0.160.0240.00317.57
8.0.150.0240.00317.57
8.0.140.0250.00417.57
8.0.130.0230.00317.57
8.0.120.0310.00017.57
8.0.110.0250.00417.57
8.0.100.0180.01117.57
8.0.90.0220.00517.57
8.0.80.0200.00617.57
8.0.70.0210.00517.57
8.0.60.0200.00517.57
8.0.50.0190.00617.57
8.0.30.0260.00017.57
8.0.20.0230.00317.57
8.0.10.0200.00417.57

preferences:
31.13 ms | 403 KiB | 5 Q