3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // This is stored in the file: $storedhash = hash("sha256", "salt" + "password"); // Logging in: $password = "password"; if (hash("sha256", "salt" + $password) === $storedhash) { echo "Successfully entered password"; } else { echo "Nofie."; }
based on KNfef
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/RbjU6 on line 4 Warning: A non-numeric value encountered in /in/RbjU6 on line 4 Warning: A non-numeric value encountered in /in/RbjU6 on line 8 Warning: A non-numeric value encountered in /in/RbjU6 on line 8 Successfully entered password
Output for 5.3.18 - 7.0.20
Successfully entered password