3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = 'sup3r53cr3t!'; $options = [ 'cost' => 12, ]; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."\n"; ?>
Output for 7.1.0
$2y$12$ePKwID.f3fhhmAjFvoMIeuZAiR/D0F1qneyNECbdneyNRCgv0kp6W
Output for 7.0.14
$2y$12$siu4M6XqUKnVTc9Tj9PBLeftubsLvCJPIBH7CS/k7O8f3.VcsXmea
Output for 7.0.6
$2y$12$Eq52bnzmrPzBApTyv4z2Ie7wrMImsBibYosj2X/sXtEoJg2ceqskm
Output for 7.0.5
$2y$12$xnhGu20JvXliVvMP9UjMJOaiJFii9KvCXcFjrZD9FkKJqsP90OK4G
Output for 7.0.4
$2y$12$wk0O6eofCkYo8m8rukpRCeYvgiY1wRWc5a55uLRJDXUFSNyvh.IDO
Output for 7.0.3
$2y$12$ZEJaE/JxKYJH6jqxq./C8eL7MHrjxbtrip9u1QL/bZRl22Smd7F9e
Output for 7.0.2
$2y$12$nqWSHo4Pxw0lL07rdeBA4.fQooUD/oXYC80NxIZIX6iUIknXbU2aK
Output for 7.0.1
$2y$12$cgzuZMm87wn4hSlChTtupeEqv.SgXgr/XoZr9J.cxOpTStss5oPPy
Output for 7.0.0
$2y$12$ub5/7c2l68356oi.HaXJU.eDHF7xQIBlEbgimESDq3HGzJeGrgE6q
Output for 5.6.28
$2y$12$WGqTnxUPEV6jGUa9YDI0Web6rbyaQU9pttSilIy6ie1ETTug/3kZm
Output for 5.6.21
$2y$12$DI88.c4CunzB31itUbrKg.5rUG/srII7/Okp2nQVH16KNkArfTW32
Output for 5.6.20
$2y$12$AvSUsGf168YpSh5WBhKRduR3adpAKF4BThqSzUSgkqAJzkzTuLzWu
Output for 5.6.19
$2y$12$.lxZfkvefmwCDBPxs2/WjOAXUgC1WVZYwy031vDdWzdHcm28PZ5Ye
Output for 5.6.18
$2y$12$5G.VDzUSa10urnmogJFYVeIFyw0wCwZI/DXKfJNLol6rv80ded55q
Output for 5.6.17
$2y$12$.gGpWh4t0AHZ1dvwZ0GhAOdA/m0F6wDquji41RkROma/zO9k65jYK
Output for 5.6.16
$2y$12$w960kGY6CwHUydTiZq.94ufhHcGVQ3k3oIi/ldrJydqeoxaM9IImG
Output for 5.6.15
$2y$12$zi.thW/5fZ4t0yqhTbDXJ.J4h/XuZw/Lb7Htjar67Db1w/vaKARo2
Output for 5.6.14
$2y$12$zEsaEvhahYdi8BH5AzNnnuSX2nGO9jcGZUQwBTD.QTnf.ISSrwp6y
Output for 5.6.13
$2y$12$ca50/7eBErpKupyp886fEevjDoHxSQar011a3wnZZ9VrglyR6SSje
Output for 5.6.12
$2y$12$7pkLZkK62N1ex6f5065AE.S.gjcQPtvKZNeKnaUKYestRsbgLUu2W
Output for 5.6.11
$2y$12$LClL3CXK6adjccA9cUv9Pe70f/myNWBFbe0/SJgqXfuXPzelW7sKu
Output for 5.6.10
$2y$12$BgzHpBt2JXEIsdo.hG9AoeqhhmlLEsuwf7w00FLPuf6sSIR0nHLMS
Output for 5.6.9
$2y$12$ha7rlha/pV/hOGO/SVz0tOmSW8PjHJogv6HHFgBVDqsqtx3Ei6cRa
Output for 5.6.8
$2y$12$n14UDFEVNALR8JfUJjpBGeUyV44MlghjQxLtdmAzUJj8H6rSguJpu
Output for 5.6.7
$2y$12$KbJqfFkdVlauJnqCtY3XxesiwF81R1hJaOnYXKtEI4uqiNbf/Szoi
Output for 5.5.35
$2y$12$J/7hUrXr3fQ8VdX0ozsmlewEjVZUJ6.hcRJru7debqLYbSK2SyWp6
Output for 5.5.34
$2y$12$MttOhhcwjbCdrptE3qBdD.bBsMrbiF9MBnAadVlj5/VwyBUBTXLW2
Output for 5.5.33
$2y$12$lhIxfabNYdI3gPXH9O9PuOk5THgD7Co8B9S94F0Cp4QOlP4Wrk5pe
Output for 5.5.32
$2y$12$zd.bKyu3xrRHIiVhIyr/He6fSa0p6j.ydV2DiF207Z4OaFX.NpEZu
Output for 5.5.31
$2y$12$GjNyoeTy5s1SYkL1DhSiCuMDdccbxUCEHW2GS4iAyq2M/vZmKDYQK
Output for 5.5.30
$2y$12$iOqBLJaGM/OIQD5WYCt77uFo8Zc8qlNDOgk1V98Tlob7Ip.4fAd5K
Output for 5.5.29
$2y$12$3ofv5FUfVARZlGZjFh8tcOBxWWzFd8X7wvfRZcQeg.fM0C0pU23OO
Output for 5.5.28
$2y$12$TyNvM3KNVjadwklcplZ0CuGdeIvxib2N.d1MEkC1hxnS9TCMwNgo.
Output for 5.5.27
$2y$12$8/PXb5AxpO8v74JK.cM39uUanMgOlTiexa5zZBYV6pDM0lHW9AE9C
Output for 5.5.26
$2y$12$beitDDlw8tRubNsO8FaLDuWNyfd1Lf3Mes1V2H6EnDDFv5srwJayq
Output for 5.5.25
$2y$12$NyVUAXwbXEtxrwOJNRTt7.Jz0HIcfaUbor4JHhulQ6s2qHA9HpZFu
Output for 5.5.24
$2y$12$yfk/XCLggE2Rq0PjuZke0.bdUJ6dOW7gRGx9dLM6H4KnBq72AHusm
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/Pi13m on line 7
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/Pi13m on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/Pi13m on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/Pi13m on line 4
Process exited with code 255.