3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Our's: deb5629ffa2c90112b99d79202e3cc74 Hmac-sha1: 1341a4c5788769e6acf62efb40ccc82bd602d302