- Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.24, 7.3.0 - 7.3.12
- Password is valid!
<?php
$options = [
'cost' => 12,
];
$hash = password_hash(md5("tes"), CRYPT_BLOWFISH, $options);
if (password_verify(md5("tes"), $hash)) {
echo 'Password is valid!';
} else {
echo 'Invalid password.';
}