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 $hash = hash_hmac('sha1',$password,$salt); echo "Hmac-sha1: $hash";
Output for 5.1.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Our's: deb5629ffa2c90112b99d79202e3cc74 Hmac-sha1: a488e7cb8cf123df2d07917776ffedf150ade1cf
Output for 5.0.0 - 5.1.1
Our's: deb5629ffa2c90112b99d79202e3cc74 Fatal error: Call to undefined function hash_hmac() in /in/HKgY2 on line 13
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Our's: deb5629ffa2c90112b99d79202e3cc74 Fatal error: Call to undefined function: hash_hmac() in /in/HKgY2 on line 13
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Our's: deb5629ffa2c90112b99d79202e3cc74 Fatal error: Call to undefined function: hash_hmac() in /in/HKgY2 on line 13
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Our's: deb5629ffa2c90112b99d79202e3cc74 Fatal error: Call to undefined function: hash_hmac() in /in/HKgY2 on line 13