3v4l.org

run code in 300+ PHP versions simultaneously
<?php $realPassword = str_repeat('a', 80) . '3F$^$S#^%$JFD'; $hash = password_hash($realPassword, PASSWORD_BCRYPT); $attackerGuess = str_repeat('a', 80); echo 'real password ' . (password_verify($realPassword, $hash) ? 'accepted' : 'rejected') . PHP_EOL; echo "attacker's guess " . (password_verify($attackerGuess, $hash) ? 'accepted' : 'rejected') . PHP_EOL;

preferences:
39.97 ms | 402 KiB | 5 Q