3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $salt = mcrypt_create_iv(22, MCRYPT_DEV_URANDOM); $save_passwd = crypt('abcdefg', '$2y$10$'.$salt.'$'); 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.6 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/cRIY5:2 Stack trace: #0 {main} thrown in /in/cRIY5 on line 2
Process exited with code 255.
Output for 5.5.24 - 5.5.34, 5.6.7 - 5.6.20, hhvm-3.12.0, 7.0.0, 7.0.2 - 7.0.5
*0\n*1\n거지셈
Output for 7.0.1
$2y$10$a$�}�� ��"��;��'P��.Uh17GBGWex4DEFQzvG2XF.qYHkoVA5G\n$2y$10$a$�}�� ��"��;��'P��.Uh17GBGWex4DEFQzvG2XF.qYHkoVA5G\n잘되었으면좋겠네요시발~5.5버전이상
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.4.32, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_create_iv() in /in/cRIY5 on line 2
Process exited with code 255.
Output for 5.4.36 - 5.4.45
*0\n*1\n Fatal error: Call to undefined function password_verify() in /in/cRIY5 on line 13
Process exited with code 255.
Output for 5.4.34 - 5.4.35
*0\n*0wKKbsxspP6s\n Fatal error: Call to undefined function password_verify() in /in/cRIY5 on line 13
Process exited with code 255.
Output for 5.0.0 - 5.3.27, 5.4.0 - 5.4.17
Fatal error: Call to undefined function mcrypt_create_iv() in /in/80LIL on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: mcrypt_create_iv() in /in/80LIL on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: mcrypt_create_iv() in /in/80LIL on line 2
Process exited with code 255.
Output for 4.3.1
Fatal error: Call to undefined function: mcrypt_create_iv() in /in/80LIL on line 2
Output for 4.3.0
Fatal error: Call to undefined function: mcrypt_create_iv() in /in/cRIY5 on line 2