3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $h='$2a$07$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40'; $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.3.0 - 7.1.0
HASH: $2a$07$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40 - CRYPT: $2a$07$qNElXs2yMnL2.GNS3kiM7.vasXXVYM7j3OGsBedM9bYVZg0S/bbDK NO MATCH
Output for 4.3.0 - 5.2.17

Process exited with code 139.