3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $h='$6$rounds=5000$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.2 - 7.1.0
HASH: $6$rounds=5000$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40 - CRYPT: $6$rounds=5000$qNElXs2yMnL2.GNS$M5.2gPj6eNyxfgYeB5hDHaOB8gcYxrA5Y0WK0D19FXkMG3GXDvfeVz.9/kO5zCzJ9t3DEjfNY6z6gE0HuG1P6. NO MATCH
Output for 5.3.0 - 5.3.1
HASH: $6$rounds=5000$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40 - CRYPT: $67LnUJQ6bIYg NO MATCH
Output for 4.3.0 - 5.2.17
HASH: $6$rounds=5000$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40 - CRYPT: $6$rounds=50$REvuXPCxoTcrgx/GJvEMGrN/cEG8VgB3r11HKydkUmMT7Kf8//C.IPWDzxPwfnNkt2XVGxL7NJRXVCo7WrLzE. NO MATCH