3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // username: admin $password = 12345678; // hashed password: $2y$12$$$$$$$$$$$$$$$$$$$$$$.ibwcWrMlgLR7y6B62/Vc8Dc54kecHHe$1$ZQhX9D2d$RexVJ.y2KWpfxMyY0tN9E1 $salt = 'HJsZ4yBWNbGQCw1Yi-7rGBunXym7AEIFatIHhaK_fQgY6I1ecqAEs7eAmJM88Zdn5VpdrKie2CN39~PjqSb3yoPCCzl4q8'; $vsalt = 'S2qXSXQUc-'; function hashing($password ,$salt ,$vsalt){ $check1 = crypt($password.$salt,'$2y$12$'.$vsalt); $check2 = crypt($password.$salt,$vsalt); //password will be: $check1.$check2 return($check1.$check2); } var_dump(hashing(12345678, $salt, $vsalt), hashing('12345678', $salt, $vsalt));
Output for 5.3.7 - 7.1.0
string(15) "*0S2k0u9.1hnFr." string(15) "*0S2k0u9.1hnFr."
Output for 5.3.2 - 5.3.6
string(26) "$2lH9Bbg1vo/gS2k0u9.1hnFr." string(26) "$2lH9Bbg1vo/gS2k0u9.1hnFr."
Output for 5.3.0 - 5.3.1
string(26) "$26Y1GW.Ks5mYS2k0u9.1hnFr." string(26) "$26Y1GW.Ks5mYS2k0u9.1hnFr."
Output for 4.3.0 - 5.2.17

Process exited with code 139.