3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = array('cost' => 12); $password = 'test123'; echo $hash = password_hash($password, PASSWORD_BCRYPT, $options); //This will be stored in DB

preferences:
39.11 ms | 402 KiB | 5 Q