3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $h='$4$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 7.0.0 - 7.1.0
Deprecated: crypt(): Supplied salt is not valid for DES. Possible bug in provided salt format. in /in/KGluU on line 4 HASH: $4$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40 - CRYPT: $4a7zg8wBiB1Y NO MATCH
Output for 5.3.2 - 5.6.28
HASH: $4$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40 - CRYPT: $4a7zg8wBiB1Y NO MATCH
Output for 5.3.0 - 5.3.1
HASH: $4$qNElXs2yMnL2.GNS3kiM7DqmGbFLdQfIwu2691aJgT3xgJazPLtw7RPKz3Dp8RIc4b5fmJ7qvlq/mPN8a.rE40 - CRYPT: $4OuT.bUgoRTk NO MATCH
Output for 4.3.0 - 5.2.17

Process exited with code 139.