3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 10, // increase this value to increase iteration count and the time it takes to generate hashes. 'salt' => base64_encode('Laugh and spit into the air. There could be holy fallout!') // a secure SALT value will automatically be created ]; echo password_hash("coolespasswort!", PASSWORD_BCRYPT, $options);
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.6
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/6HrqV on line 8 $2y$10$TGF1Z2ggYW5kIHNwaXQgaObu.tI.AQbzlpBZZANmLiSWomw2S.Q0u
Output for 5.6.0 - 5.6.24
$2y$10$TGF1Z2ggYW5kIHNwaXQgaObu.tI.AQbzlpBZZANmLiSWomw2S.Q0u

preferences:
73.42 ms | 401 KiB | 49 Q