3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $password = "thisismypassword"; $salt = "SaltyMotherFucker"; // Our hashing method: $hash = md5($salt . ":" . $password); echo "Our's: $hash\n"; // Hmac - sha1 $hmac = sha1($password); $hash = sha1($salt.$hmac); echo "Hmac-sha1: $hash";
Output for 4.3.0 - 7.2.0
Our's: deb5629ffa2c90112b99d79202e3cc74 Hmac-sha1: 1341a4c5788769e6acf62efb40ccc82bd602d302