3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = 'teste'; $hash = password_hash($password, PASSWORD_DEFAULT, array('cost' => 12)); echo $hash . '<br />'; # $2y$10$PwbhVaqzuUSl5wSdi.iCK.RBz5pQp/a.6lRdSRttY8s2qs7dn5hTq $verified = password_verify($password, $hash); var_dump($verified);
Output for 7.1.0
$2y$12$Wo/y2YZZmhJvgIaVRFB2QOtUa46XyGyRnuXikwJCyFenJqGsGv8Wi<br />bool(true)
Output for 7.0.14
$2y$12$mcnKdyre/dfULmDHzjlL.O0PzfT0mcdq4dGVYEfS1.Olhd72yhKVG<br />bool(true)
Output for 7.0.6
$2y$12$.TEfFZw9hjKgZv8IskJ5ueE1SXiueiwtuZ.lFQwzHYrTjITrCi0lG<br />bool(true)
Output for 7.0.5
$2y$12$lOKMbHTx1aN0towGkC0koeebAYAxAaao4L3APUesgM9ZefFrGncZK<br />bool(true)
Output for 7.0.4
$2y$12$wGvP4wE9ViDIpr7LYci2fuSRvEaJWqiRuUsuI8dT.b99rb2n2YmKi<br />bool(true)
Output for 7.0.3
$2y$12$TIriX9tEsPlBRaeEqgnPL.Gz3WvvfwjMMpxjvy/8Ubu.kvA4Wza.S<br />bool(true)
Output for 7.0.2
$2y$12$uqZU3eJmR.YfpC5KxYw5Te9kmaL.175C2ZqkzvmmOzBuu1sI24WWK<br />bool(true)
Output for 7.0.1
$2y$12$jU/dmhjNyB7qwy8w9ucTe.TpchRn8J.d59mImUF1AIxILk3M8wuWK<br />bool(true)
Output for 7.0.0
$2y$12$KmEZqHvvx2E4raeUiVVogO1.0uYGMRVcTfVpn.29JfuPUl5JFHvW6<br />bool(true)
Output for 5.6.28
$2y$12$dswE./0WeIgHo/PYH00At.VKEo50bleJzVU15rsJyR55PRhAovUtW<br />bool(true)
Output for 5.6.21
$2y$12$OFFE/.yLtgl82krlaxCBR.CZ5YSd51EiAqP6krLwHSObN/sRH5OtC<br />bool(true)
Output for 5.6.20
$2y$12$d9mq7SdlOCJ0f94AQwU0UOUZH4fNSVqbOQ5yIpcuXNxdr7cZ8wejC<br />bool(true)
Output for 5.6.19
$2y$12$sbbxTMPQaaJpOShZvifd9eu782jr642rDwG/Vt33yhF9ca5y0TxKe<br />bool(true)
Output for 5.6.18
$2y$12$s5gNsaKRpPQvUsSKXqfdTObH06u4KsNHGIynJWjkGYSElTjgTMusm<br />bool(true)
Output for 5.6.17
$2y$12$7cnncXc90Mb7shFF6yPI4eKCwSAaz/ig86eo54CI11hgNJxob1wOa<br />bool(true)
Output for 5.6.16
$2y$12$eZAcy61WqyzHEfMuJA2loubLxcB0hjM7pxC/Qh56s0MFNtQklJ.46<br />bool(true)
Output for 5.6.15
$2y$12$/l7fTcTGJ9kz05x1Adddd.aHK7D0ntsy2Dnmg2FQ0Sf2pMxjSqE52<br />bool(true)
Output for 5.6.14
$2y$12$bp2.3x2n1cQi1uwcDWILAOq8ODRwrWmn4x8ObIbPvAC1pdYCFjPqm<br />bool(true)
Output for 5.6.13
$2y$12$1MCpenSaIu5OKTtge0eb4.VZD//RTb6eP8JILStlYNPsOA17Bw7P.<br />bool(true)
Output for 5.6.12
$2y$12$rKemCxcrcYOTeFqNxKHzse0v1XXfDogovvyEkTm0wVjfRcpqqC3Ga<br />bool(true)
Output for 5.6.11
$2y$12$/OEkxjlfqGQUwoRQbUpJd.7.VdOTKiukjr7jKHYgnAqhAo.eg7wt2<br />bool(true)
Output for 5.6.10
$2y$12$kMyz30tR56d4rxbAXp27BeGm3hKMo2DTCdXVGZKEXdoWWwzLsOLwO<br />bool(true)
Output for 5.6.9
$2y$12$hwA8Wu3a8b2IrgKwJgIWEeR2uzaGiQBWBcbbMrpooA8.QTLGV/pme<br />bool(true)
Output for 5.6.8
$2y$12$OeeXjHix28srG7calzqCveEGi0rZqLlFah920epcsZMl8TK1GLUV6<br />bool(true)
Output for 5.6.7
$2y$12$uBEH6URUbionv6M2268ZYuEDLPBxeB3lCEI2Hxc5xRE4Ph6GB55r6<br />bool(true)
Output for 5.5.35
$2y$12$/JljfKfgN8BGEBJtZyrJe.wtdNsoAdlf5/BC9mw1RduJ.quj9GVg.<br />bool(true)
Output for 5.5.34
$2y$12$fx7MNEeen1qRiOHlvLSKOu/p0E5gwS0PKxOADw3N4uxHEK7795bY6<br />bool(true)
Output for 5.5.33
$2y$12$kI8OTzVmjCEmxWiHAj0PuOXkkd4I8U0qDasRQREuAwCyE7lTCSqcu<br />bool(true)
Output for 5.5.32
$2y$12$0ERHEE3cnLxOUbKFY/UNVOgCcDDKQzrrS4oJu.P6o1Lh8AkLSRCCK<br />bool(true)
Output for 5.5.31
$2y$12$p9KU/dtWNUgaxsjnV/2hbO5L7qnjHcgvP4PjPxuL8gp0HIyv5mT5S<br />bool(true)
Output for 5.5.30
$2y$12$6ESRkl/txt1MKQ3kgWaQXOcxygPAdsWBVAe.WunvsdIOhAo/HhLFO<br />bool(true)
Output for 5.5.29
$2y$12$L82YvFN4hMWX8FiBg34H.eEY.wQfa.PrLetIt6luyUHXbCnuRPCH6<br />bool(true)
Output for 5.5.28
$2y$12$5c760Xf9Ui8NNuEHEALF.uMp4ZDKptEol7g.fukhj.MjlVzyIT/b2<br />bool(true)
Output for 5.5.27
$2y$12$weqiEI0KWoCAu5A4TPndw.TQk/970Tmo4F0A8Inob5FrmTEFZQZMm<br />bool(true)
Output for 5.5.26
$2y$12$zHochgQVdvK2qSlYkCDhE.FnrkDEAKK7sT9EeXzWT2yodc3Nh17kK<br />bool(true)
Output for 5.5.25
$2y$12$/BZR4S30D4COp08zkgpyweiynPX/Am5N.luBd.pU4RvyUBR4b5pvu<br />bool(true)
Output for 5.5.24
$2y$12$W1KQ2M.MTtmIxwOWD8G6.OBcg1lCy7X4KQJCWP9HK37ztEVinShSG<br />bool(true)
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/36JjQ on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: password_hash() in /in/36JjQ on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: password_hash() in /in/36JjQ on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: password_hash() in /in/36JjQ on line 3