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 7.0.0 - 7.1.0
*0\n*1\n Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/07oqB on line 11 5.5버전이상
Output for 5.5.21 - 5.5.38, 5.6.5 - 5.6.28
*0\n*1\n5.5버전이상
Output for 5.5.0 - 5.5.20, 5.6.0 - 5.6.4
*0\n*0wKKbsxspP6s\n5.5버전이상
Output for 5.4.0 - 5.4.45
$2y$10$$$$$$$$$$$$$$$$$$$$$$.Uh17GBGWex4DEFQzvG2XF.qYHkoVA5G\n$2y$10$$$$$$$$$$$$$$$$$$$$$$.Uh17GBGWex4DEFQzvG2XF.qYHkoVA5G\n잘되었으면좋겠네요시발~ Fatal error: Call to undefined function password_hash() in /in/07oqB on line 11
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/07oqB on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/07oqB on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/07oqB on line 7
Process exited with code 255.