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 | $password); echo $salt | $password; 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 wimwyo}xeswwo{erHmac-sha1: 0c105cdeb11707f827af357bd0e211433cc279f3