3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $save_passwd = crypt('abcdefg', '$2y$10$'); echo $save_passwd.'\n'; $encrypt = crypt('abcdefg' , $save_passwd); echo $encrypt.'\n'; if($encrypt == $save_passwd) echo "잘되었으면좋겠네요시발~"; //$options = [ // 'cost' => 10, // 'salt' => "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$", //]; //$save_passwd = password_hash('abcdefg', PASSWORD_BCRYPT, $options); if(password_verify('abcdefg', $save_passwd)){ echo "5.5버전이상"; }else{ echo "거지셈"; } ?>
Output for 5.5.21 - 5.5.35, 5.6.5 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
*0\n*1\n거지셈
Output for 5.5.0 - 5.5.20, 5.6.0 - 5.6.4
*0\n*0wKKbsxspP6s\n거지셈
Output for 5.3.7 - 5.4.45
$2y$10$$$$$$$$$$$$$$$$$$$$$$.Uh17GBGWex4DEFQzvG2XF.qYHkoVA5G\n$2y$10$$$$$$$$$$$$$$$$$$$$$$.Uh17GBGWex4DEFQzvG2XF.qYHkoVA5G\n잘되었으면좋겠네요시발~ Fatal error: Call to undefined function password_verify() in /in/vi5vD on line 12
Process exited with code 255.
Output for 5.3.2 - 5.3.6
$2MnRDUvYatck\n$2MnRDUvYatck\n잘되었으면좋겠네요시발~ Fatal error: Call to undefined function password_verify() in /in/vi5vD on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.1
$2W5FNryXscWQ\n$2W5FNryXscWQ\n잘되었으면좋겠네요시발~ Fatal error: Call to undefined function password_verify() in /in/vi5vD on line 12
Process exited with code 255.
Output for 4.3.0 - 5.2.17

Process exited with code 139.