3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $b = crypt('password'); $la = crypt('password','$2a$07$usesomesillystringforsalt$'); echo $la; ?>
Output for 5.6.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/ndP0I on line 2 $2a$07$usesomesillystringforeaukJGqKyjM.17r0oegwMm5vRFfPVfju
Output for 5.3.0 - 5.5.35
$2a$07$usesomesillystringforeaukJGqKyjM.17r0oegwMm5vRFfPVfju
Output for 4.3.0 - 5.2.17

Process exited with code 139.