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; ?>

preferences:
96 ms | 406 KiB | 5 Q