BudiBadu Logo
Toolbadu

password_verify Online

Test PHP's password_verify() function online using real PHP 8.2. Verify passwords against hashes created by password_hash(). Perfect for testing authentication logic without a server.

password_verify(string $password, string $hash): bool

Password to Verify

Enter the plain text password

Password Hash

Enter the hash from password_hash()

PHP Code

This is the actual PHP code that will be executed

Loading editor...

Quick Examples

Click to test verification with sample passwords and hashes

password_verify() Function Guide

About password_verify()

This tool runs actual PHP 8.2 code on our server using Docker containers. It executes real PHP's password_verify() function, ensuring 100% accurate results that match your production environment. The function verifies a password against a hash created by password_hash().

  • Verifies passwords against hashes
  • Works with bcrypt and argon2 hashes
  • Returns true if password matches
  • Timing-safe comparison
  • Essential for login authentication

How to Use

Step 1: Get a hash from password_hash() - either from your database or use the password_hash tool to generate one.

Step 2: Enter the plain text password a user would type during login.

Step 3: Click "Verify Password" to check if they match. Returns true if correct, false if wrong.

Security Note: password_verify() is timing-safe and resistant to timing attacks. Always use this function instead of comparing hashes with ===.

Request a Feature

Have an idea to improve this tool? Share your suggestions and help us make it better! (One request per day)

0/1000 characters