3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $p71 = str_repeat('a', 71); $p72 = $p71 . 'b'; $h = password_hash($p71, PASSWORD_BCRYPT); $result = password_verify($p72, $h); echo '71 vs 72 chars password_verify result: '; var_dump($result); $p72 = str_repeat('a', 72); $p73 = $p72 . 'b'; $h = password_hash($p72, PASSWORD_BCRYPT); $result = password_verify($p73, $h); echo '72 vs 73 chars password_verify result: '; var_dump($result);
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.1.7
71 vs 72 chars password_verify result: bool(false) 72 vs 73 chars password_verify result: bool(true)