3v4l.org

run code in 300+ PHP versions simultaneously
<?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."; }

preferences:
43.21 ms | 402 KiB | 5 Q