3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = password_hash("servergrove", PASSWORD_BCRYPT); // create hash echo $hash . "\n"; var_dump(password_get_info($hash)); // get hash info (algorithm and options) var_dump(password_needs_rehash($hash, PASSWORD_BCRYPT)); // check if hash implements the algorith and options provided var_dump(password_verify("servergrove", $hash)); // check hash matches the password

preferences:
37.88 ms | 402 KiB | 5 Q