3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = "test"; echo "$password \n"; #$hashToStoreInDb = password_hash($password, PASSWORD_DEFAULT); $hashToStoreInDb = '$2rcByx5jo'; 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 $2rcByx5jo Deprecated: crypt(): Supplied salt is not valid for DES. Possible bug in provided salt format. in /in/N0K1E on line 17 $2rcByx51ejoM
Output for 5.3.2 - 5.6.28
test $2rcByx5jo $2rcByx51ejoM
Output for 5.3.0 - 5.3.1
test $2rcByx5jo $2vU67iv49YBo
Output for 4.3.0 - 5.2.17
test $2rcByx5jo
Process exited with code 139.