3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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);
based on H7qMs
Output for 7.0.0 - 7.3.0beta1
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