3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = "test"; echo "$password \n"; #$hashToStoreInDb = password_hash($password, PASSWORD_DEFAULT); $hashToStoreInDb = '$M'; echo " $hashToStoreInDb \n"; # $isPasswordCorrect = password_verify($password, $hashToStoreInDb); # echo "$isPasswordCorrect \n"; $hash_crypt = crypt($password, $hashToStoreInDb); echo " $hash_crypt \n"; ?>
Output for 7.0.0 - 7.1.0
test $M Deprecated: crypt(): Supplied salt is not valid for DES. Possible bug in provided salt format. in /in/5GnOp on line 17 $MUxmxd7IFuT2
Output for hhvm-3.10.0 - 3.12.0
test $M *0
Output for 5.3.2 - 5.6.28
test $M $MUxmxd7IFuT2
Output for 5.3.0 - 5.3.1
test $M $MdMwsjvLNso6
Output for 4.3.0 - 5.2.17
test $M
Process exited with code 139.