3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hash = password_hash("admin", PASSWORD_DEFAULT); var_dump($hash); var_dump(password_verify("admin", $hash));
based on 2JNQl
Output for 7.2.0
string(60) "$2y$10$KkkHhEgm.Z4lcrSsqR66JOLlwZkvqraLICSZfft5FvEaYujx6ImLi" bool(true)
Output for 7.1.10
string(60) "$2y$10$mWikJ8Kb7dLBBO45rQLYNuzmmxaGtVK/DWZlmMCnjwitsXfSEmQYO" bool(true)
Output for 7.1.7
string(60) "$2y$10$Tm4.Lk7cmF3e4jFFiYMPoebYptcCznsLDnd546sGmjZfvVQLzHYpe" bool(true)
Output for 7.1.6
string(60) "$2y$10$pK.ARNeTXMtbfvGWN2.sbeH/TlYATsoagV3ll/wDmsbVw0/R06ueq" bool(true)
Output for 7.1.5
string(60) "$2y$10$nbbptz7MSMCZ4FzFbiVwmefsuqe1.VaR8zamMV46IEF5nfujb8Lm2" bool(true)
Output for 7.1.0
string(60) "$2y$10$pBMuonVR9LT41CiKFxsIOeMf.Zlh9iJaLGgS8M2ZrC5uyYgrlNl.." bool(true)
Output for 7.0.20
string(60) "$2y$10$3GtiaVUZnrWS5eEfZCAVzeXMQ10Icnj/yGe7aPe4kE5BEWi2Ildsu" bool(true)
Output for 7.0.6
string(60) "$2y$10$YMo7In4XVmWcafiwHyTpZ.Ur7n447p0Clu.NDhW3Q5nv8ty7dOVcS" bool(true)
Output for 7.0.5
string(60) "$2y$10$LeDSTvJHicceU5ZU5/9MneOZhFwcVn9y55n1hLz5OfdV6jIYOkOYG" bool(true)
Output for 7.0.4
string(60) "$2y$10$9aH2IW2a8ePMOmH1YjW1suJbXGRfkH8xrj6ADGhiDtpEN9kPMQ712" bool(true)
Output for 7.0.3
string(60) "$2y$10$RlAAzwybR7JHd9DR.gCj4Oln655X.zPxRD5RJl89qnK5suoRuZw4W" bool(true)
Output for 7.0.2
string(60) "$2y$10$tov7FB6yhcI7C8Vmxoata.XE83VShzCE0E5wdT0iOlwB7JVOW/Qhi" bool(true)
Output for 7.0.1
string(60) "$2y$10$VVFAQatY/SZh.Pa5JsQ4f.pJmRl.E0/E/wGFCzj7bN4cLRlKd56ti" bool(true)
Output for 7.0.0
string(60) "$2y$10$/AXXZXMbP.oRHCKebuTyF.UL0ySdjcHVp1f.HdXLNCHq77kGxD7Ue" bool(true)
Output for 5.6.28
string(60) "$2y$10$Z5nDusUDpMP7JyD/gXQQKe5m.ZEii2RBET25Fwrn8GIrFq3bD1IW2" bool(true)
Output for 5.6.21
string(60) "$2y$10$DbqShSU9QuXAOOp6iqtk2u7VBkmCazf8mInriTEcCW7rtUuiDbSwO" bool(true)
Output for 5.6.20
string(60) "$2y$10$WV5xGCKioVMPas/9cDPnSuZJCxHM9/NGF2f7YWb4LWyptbwb4Uk2O" bool(true)
Output for 5.6.19
string(60) "$2y$10$xq/1Do3z2CFp2I2zm3wEyu01ie1uCKO5AU5F4DjhCNc1B8br5eKtW" bool(true)
Output for 5.6.18
string(60) "$2y$10$YRpATKELUBimfK2LOvOiy.jU65GwrgDhXfhbtaWrOK9ENuvAeEDgi" bool(true)
Output for 5.6.17
string(60) "$2y$10$Wg9FQE6iAadxtuoKY2h.xOfc9etQMCeN/Jwtg7HAzWdfUA6aMzigS" bool(true)
Output for 5.6.16
string(60) "$2y$10$kUD2y271oY7FEugaNnNYAuh63YKSlMmPr3pYn6nWt1W6Fjspr9IB2" bool(true)
Output for 5.6.15
string(60) "$2y$10$ENPkvzvMtEykHkvPXRwFJ.nj5MEL5FskIYvXoleYzZX2BzL4fBx8q" bool(true)
Output for 5.6.14
string(60) "$2y$10$w7wUy50DNEPAg5zRyJbHH.ujgy3m4DG9SyyNGpMRAB3SusxP47x2C" bool(true)
Output for 5.6.13
string(60) "$2y$10$lSCgNvj/DSzPD4vPtbKzcen26yDxdVjqKX6iVmBnv9P/uR72HZ8JC" bool(true)
Output for 5.6.12
string(60) "$2y$10$28mGAa6sYs6KnPiPIvUWHebGku/EMYoRezoBz3GYoaJgcYeiB//Nq" bool(true)
Output for 5.6.11
string(60) "$2y$10$WEWc/.paFfqdloR6AOPeveATbYM0H/FsZr9PQ3Ovv3.ikIf6JM0k6" bool(true)
Output for 5.6.10
string(60) "$2y$10$1g5x3V/OhUVqdSdYK2EhLe5aWiKdRyPVSPLXWPcW7cCzxm0QF.H6S" bool(true)
Output for 5.6.9
string(60) "$2y$10$XesJ/2ZBgfS.nO5vLUSgiOMcXivVNpRWlsHo1wR3WtIAwK7HCUe5S" bool(true)
Output for 5.6.8
string(60) "$2y$10$mbQOkqtcep9c2A/PULSRwuKwysBco51Sndb9oY.lcR9ruiaBsITWC" bool(true)
Output for 5.5.35
string(60) "$2y$10$CT7eWhfbqm5y.y4kGx27kuniSSNtQxiERBM6FPohzZcj.AXeiiUPe" bool(true)
Output for 5.5.34
string(60) "$2y$10$PFVfIJyIiDpZZsyaQXUNIeL/YuZHzkxWpJk9f8LFtZM.eXO0sEodG" bool(true)
Output for 5.5.33
string(60) "$2y$10$Gsa9yG4GRBZpT0FGLgc8X.T.x4x0n01SWZAixIwgX4p3QUsyCmyTK" bool(true)
Output for 5.5.32
string(60) "$2y$10$DnIVEHZhvONXDhzrBhCTJ.7dXGCZmGyI.cmitv2KE8UUyIQVbW1Oq" bool(true)
Output for 5.5.31
string(60) "$2y$10$Msb2k1H8ThZPOS2zrJIH0OHTAZ6bBtabIpass2U7oxMm6GIDMWtgu" bool(true)
Output for 5.5.30
string(60) "$2y$10$iko4NoIXBnvSZjhaueSFU.E9W9dJAhvWimWtgDDL9nnQ4dJb4Ir2C" bool(true)
Output for 5.5.29
string(60) "$2y$10$R9ezz9nGfJ5Ufyenn63ioem0wUtpGjhrToHgjVkRH5CPboJYbPeR." bool(true)
Output for 5.5.28
string(60) "$2y$10$gdAQe9F6AQlPGm2MOaus1u7O8enz/xrGe/VVOIJEFU97pebB9DIce" bool(true)
Output for 5.5.27
string(60) "$2y$10$4pMc8S3vKFmVZQU8G9162.zsAM7fpttvgYoJltT3EJbOTZwT8iUcG" bool(true)
Output for 5.5.26
string(60) "$2y$10$zS9/U2YAwYoDSeUE5AvghOT7CZ6/Flr/ge30UHswlLPV6U.fnwtVK" bool(true)
Output for 5.5.25
string(60) "$2y$10$qm1pcqiqB6z6AZuH4hLvxe2EDkOPWn4Ggh4aiE.skq5opVQRHPF76" bool(true)
Output for 5.5.24
string(60) "$2y$10$jrRGKgnb.UQw91vxKvshzOZUHcFAL.NvkgadXBbwTtbpekUfJ9US6" bool(true)
Output for 5.3.21 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/GjDd3 on line 3
Process exited with code 255.