3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $options = [ 'cost' => 10, 'salt' => "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$", ]; $save_passwd = password_hash('abcdefg', PASSWORD_BCRYPT, $options); echo $save_passwd.'\n'; $encrypt = crypt('abcdefg' , $save_passwd); echo $encrypt.'\n'; if($encrypt == $save_passwd) echo "잘되었으면좋겠네요시발~"; if(password_verify('abcdefg', $save_passwd)){ echo "5.5버전이상"; }else{ echo "거지셈"; } ?>
based on IHntJ
Output for 7.0.0 - 7.2.0
Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/Ekc5B on line 6 $2y$10$JCQkJCQkJCQkJCQkJCQkJ.MO834YyHgT0dOZzVWDc7VcgJFefztRy\n$2y$10$JCQkJCQkJCQkJCQkJCQkJ.MO834YyHgT0dOZzVWDc7VcgJFefztRy\n잘되었으면좋겠네요시발~5.5버전이상
Output for 5.5.0 - 5.6.28
$2y$10$JCQkJCQkJCQkJCQkJCQkJ.MO834YyHgT0dOZzVWDc7VcgJFefztRy\n$2y$10$JCQkJCQkJCQkJCQkJCQkJ.MO834YyHgT0dOZzVWDc7VcgJFefztRy\n잘되었으면좋겠네요시발~5.5버전이상