3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(password_hash("Password1", PASSWORD_DEFAULT)); var_dump(password_hash("Password1", PASSWORD_DEFAULT, ["cost" => 5]));
Output for 7.2.0
string(60) "$2y$10$/QhC7bCmU52/zMfOqwAsYOZ0qxlbknSFpNP.smIna5Odfd.Su.jFa" string(60) "$2y$05$.EqI7qxx1xrh3S/ew6dtY.iVSO.h2Ye6dbK1ttftj/xDLbX8e.rtC"
Output for 7.1.10
string(60) "$2y$10$PkNtE1VjkQvr5bMf1uo4..IOZ0mnXhkPDQTb.Xg.hC2ZpcrBYtEBK" string(60) "$2y$05$kHm.2B3RuYEqTAQSZVtQ5ulUnU0ZY32PiO6z5CrmednPeD/7xyGq2"
Output for 7.1.7
string(60) "$2y$10$K7seRm1mqED3NNYoWhMlL.5onGKlyBMtsEtJQNJDyI2F3a4IFcua2" string(60) "$2y$05$ffBFXOedDYYLKfXtBc.YeuiU4n5qv8cXv/GvnQd/rBE70s8Rr3I9K"
Output for 7.1.6
string(60) "$2y$10$FCXhUtl355FryYaONJY1m.mSvsSs.Z102oysf/Q3Niaq6vmukezQ." string(60) "$2y$05$HlenqwAXEVfwQyhMfCxBaerAXQueUpgZGmBoUfRggx3VCm5kSvtSC"
Output for 7.1.5
string(60) "$2y$10$VGD2Uq9TM58Q2JEPkd1ejOgiwD6CZmp.2FA/AFIgR7SgL3SA4QcMm" string(60) "$2y$05$NZ9oLK3hhXwGJ6pSN9MRcO2vh2T2qEM625SnbXQS9zMS6z3zgs3iy"
Output for 7.1.0
string(60) "$2y$10$jmJjs9A4c8aUG8IXKe5feePM2unBQEMYZAYEIUBUy8owXMcKureZO" string(60) "$2y$05$Ec/93vLibCL1CHSc15kfVuamMrZMRIaYa4AGMuQQIpI9VhVfnNwFi"
Output for 7.0.20
string(60) "$2y$10$uPXAkwdfUyNUbEVjMLv4veSyAO.OYt7o9yh9YmvOOtkH.G6D/tCie" string(60) "$2y$05$9.Zkp4XY0Y8bnY61robh..l/AD7IB6CYjCPaZKKbk4pWtkcv5arb6"
Output for 7.0.6
string(60) "$2y$10$Dcd0E440gS94ABwg2jgDbOWIKYiTEkE4jVu/B9nfJsnnwH80O30PO" string(60) "$2y$05$ZEZENOJVILcuSxMFWMCZxOuVNW3wh6L77mr4ms5ePsK3.kt2bu3Ii"
Output for 7.0.5
string(60) "$2y$10$0BTMrY.Tp9vjFAfeqaQIz.OQspPl.fL37ycwu7yds8SBOdg9P/z2O" string(60) "$2y$05$ygPoEh8DBfZ5mOh.mmrNS.Oq23n4p6R4z/XemgWqfR5BI3PRU1dk6"
Output for 7.0.4
string(60) "$2y$10$P2v3l/aSyGllUmFIduYr2Opwj5YlfzrMiadw/Ev9RcdxAI.VdHGhy" string(60) "$2y$05$OJMWXveJpGqTAOepnBLceOR5mgzCSsosWsug2J9n1fwEpV00.Ujwa"
Output for 7.0.3
string(60) "$2y$10$weAStI3rrsMFLlYVkXn4heaa0zA66a2iEijslnjL2PHKWmR3GnKze" string(60) "$2y$05$oIygFayVo0InFEOuQClexOy04cWRQdf2G6BputrgNOwc279jvt.Re"
Output for 7.0.2
string(60) "$2y$10$IyqO5l0rmfUnSJiaZ5LY/uxYbcvX5V0y/RUi56cCyXcfgUK6kyiiG" string(60) "$2y$05$IfE1BWqgt4ZiLjs7k3IuGe2BesTgITy3xQK/vXn8iHr9V4rKPImSu"
Output for 7.0.1
string(60) "$2y$10$lMkDCfU.nEp.RQiAsJPoeewzD8DZSYmwvdhGvxyfh6NKBIUfs28ve" string(60) "$2y$05$j2G1cWaZujuqvBgU1lpSEe.ApdLoT3z9XvVM36bEnDE8C1SUG9f8S"
Output for 7.0.0
string(60) "$2y$10$xXQTAZZ1fRIGVX7EzEkMR.4B4j3Zo.8XImwPqRX9YzV2SBdTCsBR." string(60) "$2y$05$emiLn/mtZMaKTLZK6klpjeR6kg.YNC77/qyxFNhcO5xiYIIV5HygC"
Output for 5.6.28
string(60) "$2y$10$EuiPJwOK7M7XOrLAEMyL2uiKpGrvDQHKtLvQp4IBF3sf1k9IsAYRm" string(60) "$2y$05$7lIDZnnoCdibGtaCayFY5Opa4TvfCQw/LIdWB.MWZSn1mN7rJ12wq"
Output for 5.6.21
string(60) "$2y$10$rRH/nwcrdwmwYyxv0bXRc.51pzvrk/FqvztsEL2lZIlRzuBezC9uy" string(60) "$2y$05$hq/l2D8njaOgTb.mN4ieb.01ofmvxFdkMk13yZXAYJD6mugSghxDy"
Output for 5.6.20
string(60) "$2y$10$.OUHLEttvCSwDeB9634OEuU1v/tc8F3a4gcYte0ewC7TQO7LMJzXC" string(60) "$2y$05$L2lBA9mMGmfx9Gi.Onymk.vk4AnrQWr5Du4R9GJFQww2hVqz1dQ1u"
Output for 5.6.19
string(60) "$2y$10$xPzBbYfHiKLdFSABzhF6Mew4TjdQWVooo7kjWrj.42b3WHKOGvF2e" string(60) "$2y$05$P3SNZMmQlc8beGGu6E2ESu1TbYodQrw3WcOSTZfgh0O8hGvFDfATK"
Output for 5.6.18
string(60) "$2y$10$dYyPxgRzAvEZPknihMhOxeazbGz1AFPI4Xc0UlT90xSIozijwBD3e" string(60) "$2y$05$vAnsIDJTLvwk04PvePloPulKmoexudsiOwwPCS4C7eWy.tsv./ZtK"
Output for 5.6.17
string(60) "$2y$10$dBuXYyJ9T1SZGs701J/RA.9vgdJ2ihGsqcRdfE6jam1QCCKae9fh2" string(60) "$2y$05$xdoi10VseMJum92h8Xoi7ejlETijthP1GzVyZKTiJtiQMEWa9ytEK"
Output for 5.6.16
string(60) "$2y$10$DXnI54JVWXtjTVcgQ3vBIu//./61KoV7ruyPztNv3g/ebn1bSw6rO" string(60) "$2y$05$QBBckDZdy7PyAyQrx0TN4OSLL1UFxedOaorJbA/dTaVL9nVmn5NGq"
Output for 5.6.15
string(60) "$2y$10$Qq.bNDNA7tgadgk9VuOPceTWz5AIWc/Y0YahJptQ8ZDe.Ge2m/z4e" string(60) "$2y$05$MYvkfYH4Aq5WTUfrluKQ1.swjqLDUhceOUopNKC/N2LVqqQvWAwjS"
Output for 5.6.14
string(60) "$2y$10$4r0twodzHZqeFhuzCJ4j9egknkcYST3tLHsd2eMeBdMX0YKWVYlQK" string(60) "$2y$05$sW8cZ/r/QT8shls6PC5SX.rDXSCEFqNJtdf.F961uSDVkNYWZIWdG"
Output for 5.6.13
string(60) "$2y$10$rkUDs.yqC72fl/nTNeXqJOESJxW8BHKyK9dUMZHnokNvE92/VIbFm" string(60) "$2y$05$gOYds5HHadYnp4mLo7A6D.nqZLXTcnZbUxpJk4gI0emZksLaDgRdC"
Output for 5.6.12
string(60) "$2y$10$McjufXAgd9F8uZwQuHHWfOqhpGKNwfHr/6f4yaoU62aZacGk2dIL2" string(60) "$2y$05$akcR5AOTuYqD73h0Wfx/7.S88N7oFw3pCf9Gl./PMTIFAcEhCqbHa"
Output for 5.6.11
string(60) "$2y$10$nF/LGkN6KhtVksuvQLHO3OuN1xLBym5rGbCrkFw7ZJfthYsgRHEB." string(60) "$2y$05$5.jb0ooPbuvBoyoND5NB3.cGN8oacZhE.MR9A4TqkJgqI8X9Zo34y"
Output for 5.6.10
string(60) "$2y$10$gohvX06CxuUqoi8Q5nFOW.b3/MOpWznPS.RyfBR2z.LX3Ozt4mmaa" string(60) "$2y$05$7Gyb6ED07aMyjYHoUvP1o.hkh/9D/Ws16PK5GK2Dp3PjcaEgwX8tG"
Output for 5.6.9
string(60) "$2y$10$aTPiIwhgX79SqD.RKlWHsOfOrB6eT3H0svzGYbBhOQ9XVOA4t0lDi" string(60) "$2y$05$P9yedqf41TgBHPrK0eh74ejjpP/gwc.wp2tPs09NNQLX2G/njjSje"
Output for 5.6.8
string(60) "$2y$10$Vo13K.xsqKu4TIkAnW72juqig0tEVmLV3LsZBhypiY/u1tztHVrJS" string(60) "$2y$05$Uo1LHq3tsHQGiCKRnF2iYuJsfrNTNYyJQFPRuP8pI6zvTdesTxEeq"
Output for 5.5.35
string(60) "$2y$10$JsC6JdCd/RxYCQZubmvZpu/uOh5ydGJ92csWH72UCFE1IgQlpFow." string(60) "$2y$05$X/5eR8ho9uAsJ8TlHViP0./HeamqIGO7giY3vmegl2yM/qXnYCVsu"
Output for 5.5.34
string(60) "$2y$10$hq0vgYL6/xpmJAGD9m5caeaXZwjnPV22CIFDi3Tjs6qETk/lb85/u" string(60) "$2y$05$FRvaTs61Ihe/PnxvF9hbxO9MUAdBupy5n93mUXrlojtzCv0s7oPDS"
Output for 5.5.33
string(60) "$2y$10$t2sHZC6A/4nB7WP0G2ip2eFKrLufEpOIskb1PNx6CLpIklHg0RvTq" string(60) "$2y$05$ZcAwBQ9WiCIlWxPkcDOsbO9nqHOCFJEuNaXLBW3wY25UiMU5DtZqu"
Output for 5.5.32
string(60) "$2y$10$N25Mlzr9NCHOgSNgojj0d.BnTIRTyZGIn8OjgNvbLMfk9PHacAlFa" string(60) "$2y$05$bZzyAU8pZHV016Fvz8Z1h.zFP/65rWlmb36QTBNYkfq3DNEf49rpy"
Output for 5.5.31
string(60) "$2y$10$/WbLFuTi5PKUnBt2IkRv.eyuRRrPzPFTxRqr/khFAI2uoc.ioPlRy" string(60) "$2y$05$znxGwRi.iWLoO6cCOSxg5OGGUg3RMoM6MA7yoy6UjWyDYDGy.WOxC"
Output for 5.5.30
string(60) "$2y$10$cJIWlikdnLiSEFTVsbbnQ.jnLTAYaDf3NYaCkwNIvh1ybgv.B/sYK" string(60) "$2y$05$WneRsKDxUGZHc2H/JAeRF.6ZiHqdka19K2TzraTR6wj8sePnUOTE."
Output for 5.5.29
string(60) "$2y$10$w3PR7Xlk4Xq65Fkz/Yq44Otj37Uq0156KCe79UMgMEYa27vqJMn4S" string(60) "$2y$05$cwqZjAnU6KMck2L/1JZhKuxfkJP78fJrc4ooi20Yos3mctVRqQtXK"
Output for 5.5.28
string(60) "$2y$10$j48ape3TOSRaxC9P/EzjpuGKIGWHtMW50wGCTLiQE.eb93VyBmt/y" string(60) "$2y$05$SKAuNNR53cCV1bJpAT762uDecqxRTqu63bPx1BsZHNBs4tbqtqMl."
Output for 5.5.27
string(60) "$2y$10$TK60WBYLRPUGOHEq.U5.buBeetGCUjhlhU87Jk58JmgUYEkrkNb7m" string(60) "$2y$05$9Z8X5iLxtcWczF31HkbLDuazbvttLYhPiW37sXdGgrQgwNqwT/16S"
Output for 5.5.26
string(60) "$2y$10$LC5ajY.niTe3Hi2xVQtB6.zvCuOhbYcJbOCRbfSEPunwoFeiV/WYO" string(60) "$2y$05$ds0u4nAZ4Ygb9z7kWs3QE.n1vCJBZm6AHPyX5Jxz6t.IiqJTUpwru"
Output for 5.5.25
string(60) "$2y$10$1VeFJKm7DlxYfVLhwlkE2.6jAq2sy1.eGtvD8aGQ.gICbEUoBXY4K" string(60) "$2y$05$u74uno440Gwub9blixFMS.8/7VUrPMDrao37bx/dRhftPCGpfpn3m"
Output for 5.5.24
string(60) "$2y$10$P8J.oejCJujLTgRcTuvqTe.aRPrmTb4McVEVc5uU9umkb.dS9k/7y" string(60) "$2y$05$zKxelt93nTMleFmOlxake.G42U/hEq5mqEc0QOFJo570bsFhhwMgm"
Output for 5.4.11 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/nGKTC on line 3
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/nGKTC on line 5
Process exited with code 255.