3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pass = 'password'; var_dump(hexdec(substr(sha1($pass, PASSWORD_BCRYPT), -10))); var_dump(hedec(sha1($pass, PASSWORD_BCRYPT))); var_dump(sha1($pass));
based on pJnee
Output for 7.0.0 - 7.2.0
int(3) Fatal error: Uncaught Error: Call to undefined function hedec() in /in/Fa2MJ:5 Stack trace: #0 {main} thrown in /in/Fa2MJ on line 5
Process exited with code 255.
Output for 5.5.24 - 5.6.28
int(3) Fatal error: Call to undefined function hedec() in /in/Fa2MJ on line 5
Process exited with code 255.
Output for 5.3.22 - 5.4.45
Notice: Use of undefined constant PASSWORD_BCRYPT - assumed 'PASSWORD_BCRYPT' in /in/Fa2MJ on line 3 int(3) Fatal error: Call to undefined function hedec() in /in/Fa2MJ on line 5
Process exited with code 255.