3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = "test"; echo "$password \n"; #$hashToStoreInDb = password_hash($password, PASSWORD_DEFAULT); $hashToStoreInDb = '$2y$10$7fLak4uTUJicNkqs1ooypO1R3REmqlBdf/N1rprqPGNrZq8Gyl7tO'; echo " $hashToStoreInDb \n"; # $isPasswordCorrect = password_verify($password, $hashToStoreInDb); # echo "$isPasswordCorrect \n"; $hash_crypt = crypt($password, $hashToStoreInDb); echo " $hash_crypt \n"; ?>
Output for 5.3.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
test $2y$10$7fLak4uTUJicNkqs1ooypO1R3REmqlBdf/N1rprqPGNrZq8Gyl7tO $2y$10$7fLak4uTUJicNkqs1ooypO1R3REmqlBdf/N1rprqPGNrZq8Gyl7tO
Output for 5.3.2 - 5.3.6
test $2y$10$7fLak4uTUJicNkqs1ooypO1R3REmqlBdf/N1rprqPGNrZq8Gyl7tO $2rcByx51ejoM
Output for 5.3.0 - 5.3.1
test $2y$10$7fLak4uTUJicNkqs1ooypO1R3REmqlBdf/N1rprqPGNrZq8Gyl7tO $2vU67iv49YBo
Output for 4.3.0 - 5.2.17
test $2y$10$7fLak4uTUJicNkqs1ooypO1R3REmqlBdf/N1rprqPGNrZq8Gyl7tO
Process exited with code 139.