<?php
$p1 = '12345678901234567890123456789012345678901234567890123456789012345678901234567890';
$p2 = '123456789012345678901234567890123456789012345678901234567890123456789012';
$p3 = '123456789012345678901234567890123456789012345678901234567890123456789012abcdef';
$h1 = password_hash($p1, PASSWORD_BCRYPT);
var_dump(password_verify($p2, $h1));
var_dump(password_verify($p3, $h1));
- Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.24, 8.2.0 - 8.2.11
- bool(true)
bool(true)
preferences:
77.44 ms | 407 KiB | 5 Q