3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = "test"; echo "$password \n"; #$hashToStoreInDb = password_hash($password, PASSWORD_DEFAULT); $hashToStoreInDb = '$2'; 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 $2 *0
Output for 5.3.2 - 5.6.28
test $2 $2rcByx51ejoM
Output for 5.3.0 - 5.3.1
test $2 $2vU67iv49YBo
Output for 4.3.0 - 5.2.17
test $2
Process exited with code 139.