3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $salt = 'OaZZhZgCp/VAldZFX2o6leedzq6wLT.'; $options = array('cost' => 10,'salt' => $salt); echo password_hash('test123', PASSWORD_BCRYPT, $options)."\n"; echo crypt('test123', '$2a$10$' . $salt);
based on 7g2F7
Output for 7.0.0 - 7.2.0
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/cFMG2 on line 4 $2y$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.5.24 - 5.6.28
$2y$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.3.20 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/cFMG2 on line 4
Process exited with code 255.