3v4l.org

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