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 | $password); echo "Hmac-sha1: $hash";
Output for 4.3.0 - 7.3.0rc4
Our's: deb5629ffa2c90112b99d79202e3cc74 Hmac-sha1: 0c105cdeb11707f827af357bd0e211433cc279f3