3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $h='$2a$07$sillystring$'; $p='salasana'; $c=crypt($p,$h); echo "HASH: $h - CRYPT: $c\n"; if ($c == $h) { echo "MATCH OK\n"; } else { echo "NO MATCH\n"; } ?>
Output for 5.5.0 - 7.1.0
HASH: $2a$07$sillystring$ - CRYPT: $2a$07$sillystring$ MATCH OK
Output for 5.3.0 - 5.4.45
HASH: $2a$07$sillystring$ - CRYPT: $2a$07$sillystring$$$$$$$$$$.3kkMznxJwlUTlMxky.dQ/UR1FiGqI2m NO MATCH
Output for 4.3.0 - 5.2.17

Process exited with code 139.