// To compare hash with plain text, use password_verify("MySuperSafePassword!", $hashed_password) // Please note, that works only with the password_hash() function.