3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function password_verify_with_rehash($password, $hash) { if (!password_verify($password, $hash)) { return false; } if (password_needs_rehash($hash, PASSWORD_DEFAULT)) { $hash = password_hash($password, PASSWORD_DEFAULT); return $hash; } } $password = 'thisIsABadPassword'; $hash = password_hash($password, PASSWORD_BCRYPT, array("cost" => 10)); var_dump($hash); var_dump(password_verify_with_rehash($password, $hash));
Output for 7.1.0
string(60) "$2y$10$4UdoGfJfj9Eo4F3yC2VOLuc55dD49dfaM7AJJX9pNn5Wo79i5qDHm" NULL
Output for 7.0.14
string(60) "$2y$10$MPCy/uID5TYS22PCdYaVQuGBowztM7rNu.wBz/Dm6gbxMZUUisHba" NULL
Output for 7.0.10
string(60) "$2y$10$0Ie207W.NXH.L5lTxAewXuA6lazOhh339ZkjHtBF8DOF5vDkibsyy" NULL
Output for 7.0.9
string(60) "$2y$10$ho.CTE94kdjegp80W1XUa.ApdEajVzwywuNFhoihJZ5Y4fsCWVxqO" NULL
Output for 7.0.8
string(60) "$2y$10$ECDkOqpL5G0Q.SSl2k0rA.1VKXNEC5Z5lun22pt53IADWibOJTt9e" NULL
Output for 7.0.7
string(60) "$2y$10$mvUz/sdFMmNn1DlbzuuuleC8ZcYhwfDegUzAMgSqJfxD/XWuc0Kca" NULL
Output for 7.0.6
string(60) "$2y$10$RdQyVXwJEcEyMAo2G3SNTeWxcHmmJqiGzRHKOUKqWkaBDRopVtiu6" NULL
Output for 7.0.5
string(60) "$2y$10$Qtzn8jj9fVO4zfUD9Ppt5.LiqOeafjr.SUSUzqnW9HJLWr0j0HZAi" NULL
Output for 7.0.4
string(60) "$2y$10$ex.UQQKUs80z1m1SY4DPpOgaUaj8bHIFYpX1iGCaEC/h292fNvIQC" NULL
Output for 7.0.3
string(60) "$2y$10$uDJ6iaUW2bcVwR//3yIv9OGyhZJfLxO1BY9ugkIlCUIaW32ryPx3a" NULL
Output for 7.0.2
string(60) "$2y$10$wZzapKPwi/Y8GVonqfephOumZcW9E4ksUtNPmv5ipTPki1I/l0LLe" NULL
Output for 7.0.1
string(60) "$2y$10$PVRcwQILT73su8iVpG6RYu.CJ0ZhUEYMJZbgQMeGOAYwS5LFEJpbu" NULL
Output for 7.0.0
string(60) "$2y$10$/Dn8y0d5fu2HTW/td6dgBeyQWysADvkyN.W4urCbtELvQpprOhYPy" NULL
Output for hhvm-3.12.0
string(60) "$2y$10$BXzXapHz.mNYNVL560fX/Ojqbd/g..2jX8mItQmjewYCSIRlmKKaa" NULL
Output for hhvm-3.10.0
string(60) "$2y$10$7yzmWf.tQieviZEmAczGfudmmpxnZTzgihcX8bWwEmJciZ6Zo0Hiu" NULL
Output for 5.6.28
string(60) "$2y$10$qg0Ia5S.s14IS/Z2fSshg.sLK8pOqYzX1NEnYt00nv1QB/k7IceOC" NULL
Output for 5.6.25
string(60) "$2y$10$U651Wq6ZN/GNpieYWIWx1uFZsYK3pTDVRWOpoXTlq65PDgG4WdCKe" NULL
Output for 5.6.24
string(60) "$2y$10$kabNrfXkszHp1XrDorI6M.7Mk5HcAayz7K4lUNxq06BRZl.jxASGy" NULL
Output for 5.6.23
string(60) "$2y$10$OHPh8cthXhved25vdCriEuv/V7CdsxMbwl34HsnzBrAFN8I4vQaoC" NULL
Output for 5.6.22
string(60) "$2y$10$rD13a299Z1v39oSUbBS8XeCy8/nc12m3ResnBpmJls9Qn8Ly2MEP." NULL
Output for 5.6.21
string(60) "$2y$10$8uaRrlmfP8k5tukfMmol..3QDr5iuLy1FdS0vmjq90OWXm5bGTVHW" NULL
Output for 5.6.20
string(60) "$2y$10$PGHXeM9BQQyueKusHvzWWOeO6CueK5FMvCOLn3nbpoDLnE/Ok6p4a" NULL
Output for 5.6.19
string(60) "$2y$10$/nIgbuFhIB2dQwo0yxJdD.0m65QudsI.UuS9I9JbOlY1AhwYv9gzG" NULL
Output for 5.6.18
string(60) "$2y$10$YTWEu94S.vwtH/mNiBc/Yenhdkwa.46mRgxDULjbC9/okHaUzXXyq" NULL
Output for 5.6.17
string(60) "$2y$10$APqncVP8QnxJjAcDoqciLOsJ/zi.mwzAQMdk1.zp4goHfoRle6Vv6" NULL
Output for 5.6.16
string(60) "$2y$10$1I9RJZVsc23v5d63t2xH.ekQyuv4pt9OTL6d8m4Ovby5gu.1W4cKe" NULL
Output for 5.6.15
string(60) "$2y$10$6gzyr0Bi6osghMHx81u1gOXDaHjH6eYzYiMpHOgPdmzeHBq86O6QO" NULL
Output for 5.6.14
string(60) "$2y$10$zlCPZ43NbuR3JwWTVg4YQOldHz3Ug99EBl0q.IH//.Ff.Yk14xPkS" NULL
Output for 5.6.13
string(60) "$2y$10$f6yrrG0f3zgJ1fzSBYHrluLL5BddZTjKqIPODVwL1Z0UvQDXDg.Da" NULL
Output for 5.6.12
string(60) "$2y$10$0a/58itIgMeYeUg0IA3.3uly6XbVbEuVbSjQXZKUZtPN0s4fh8/zq" NULL
Output for 5.6.11
string(60) "$2y$10$ZmrlSJNmOwreChb9XXgpxOQ2WrrCgrcaeltAiKn8dZte8we6U6.WG" NULL
Output for 5.6.10
string(60) "$2y$10$zznubLx3QpolFSZm6tCtJ.kdjnhSr9aHWIyIwse0Db75kd2T8dOQK" NULL
Output for 5.6.9
string(60) "$2y$10$LGkpwKnwjVWDaPl0phuCX.Bz9.oVrgVr.yW6Y2ZLY8MFPj3XCtnuq" NULL
Output for 5.6.8
string(60) "$2y$10$GN9x60MPWOdLfhibJaqDDeBfav6uTqa8Y8DhyN/KXr0uOSoOUSwsO" NULL
Output for 5.6.7
string(60) "$2y$10$RFpJ43G39O4b/ynQCEoIHeGxajVCtnlOxJyrUD.wlBt8BADQSvLwO" NULL
Output for 5.6.6
string(60) "$2y$10$Q7E.to.RqCSsM4rAIckqaudSYFmc5Yf4dEyJYvDftAWoDH3RrEVqq" NULL
Output for 5.6.5
string(60) "$2y$10$eiqUJFGBxSP3JYEcMJ0SVu2mx3tD3M876qc445hSYgxHEqz9SbjX." NULL
Output for 5.6.4
string(60) "$2y$10$XL.V06TfU.cMgnb8vVAyW.CwDmTvEhcNxZIfFjX.h2M5HBpEbkAGa" NULL
Output for 5.6.3
string(60) "$2y$10$nlKFVazocBGRmcGr8Gcah.axuQp.f2OcQgB4wwhjelJ8LmmAT9/ga" NULL
Output for 5.6.2
string(60) "$2y$10$XVD/HU6ApopLlQh9a5V0OeN51/INbMKXiW6fVCzOmacdJFE8Xxq5q" NULL
Output for 5.6.1
string(60) "$2y$10$EtOVlXBP8eXAbPGBZjlT.epdM20D.l3cwpYVkqgXfcC3K79UdTqmm" NULL
Output for 5.6.0
string(60) "$2y$10$b6Z1naCHdpZ2.5p07EI0jOKjoRt1s8C/6cz/31EmCZsTjEFTMlESe" NULL
Output for 5.5.38
string(60) "$2y$10$m0Xn.qaMFtEnRWyuR4YG5eKNXNBIva/DnPbX6F3xOaMUxhCm7ygS2" NULL
Output for 5.5.37
string(60) "$2y$10$ll/swJfYdU3nQC8UTlHAXuLJxsxfIruIwHDhytujeWPeEXuCpSyKm" NULL
Output for 5.5.36
string(60) "$2y$10$/1JV/Us94/.JFS1.dXxyV.nyj003hw2wF5veROTD26O9ZScntyo9u" NULL
Output for 5.5.35
string(60) "$2y$10$cnhsk3VBay4qVsl/meKz2Oq7em99LuOh30.8LacYCxu31BgHoqhqC" NULL
Output for 5.5.34
string(60) "$2y$10$iZKmPyb49U3y87fufQM9YeSvB9GmOYCLDuR1917XuRMY4RVUgQYzC" NULL
Output for 5.5.33
string(60) "$2y$10$B3/9EmgY7eXPBKxhq776Rud42GsmzAopRUp1Cx6IHIidRoZQP4LKG" NULL
Output for 5.5.32
string(60) "$2y$10$sdQ5xKnR.czXIFwM4ZKyVuKvt7Qf4ShObIIscPaB.9.M9vfzkoLCS" NULL
Output for 5.5.31
string(60) "$2y$10$V81TWvbfLwC9sV8gZkoYB.UIZLfEuPlJL8/i6IpjUTDktP7qFxvU2" NULL
Output for 5.5.30
string(60) "$2y$10$LTAVi2ih2is5wE.u58VPw.EBnkCQDYgrofhQ415Ketm.k1Y2EeF96" NULL
Output for 5.5.29
string(60) "$2y$10$F4o3WCdMOmiPbH9cRgXLlOm499oR.TriBd7Mj5FSbZzs3JwHFDd3q" NULL
Output for 5.5.28
string(60) "$2y$10$JFNDUeL.eYQFF..huyS2e.JzRyoMCk25gbruFErhzPjuAy8ied2tW" NULL
Output for 5.5.27
string(60) "$2y$10$jQ28knvI2N8TEmsNjpvyQ.Bos.t.pYeDdszegtF8Wh2jIKpum/zxu" NULL
Output for 5.5.26
string(60) "$2y$10$Y3rlolN2YYdFaOIG6HPgqemsMsYzwqN.0N5Zdc9BKUbaaf7dqFidS" NULL
Output for 5.5.25
string(60) "$2y$10$VEpUYqv2pibb4bRGVPuKmuNRCsBc/Tj73V4nFrw/.L5yxOGHzYViu" NULL
Output for 5.5.24
string(60) "$2y$10$NXlx6d6xKWziV96ZwcR8Bup.S2BKR2lgEVwjdTOvcBY2KRm2aeH.C" NULL
Output for 5.5.23
string(60) "$2y$10$o6Bv9LQyUWgwLtjPrFXBSO22P3m/jRCRJxIZGCRG7tkCWxsbZc.vq" NULL
Output for 5.5.22
string(60) "$2y$10$MNenbzUUSwiIBFdzf0epN.PP5exmzBtlJz2VC8IMXKjeagC4yFbn2" NULL
Output for 5.5.21
string(60) "$2y$10$D2nEFaoTf8ITYA.7NxniDOWg63aZCfEdxwLbBJRJkzpp.2s8CNYxu" NULL
Output for 5.5.20
string(60) "$2y$10$EdJ1gXWQ0Ra3/S5SkormzOPVTb8x3cB.v/.rh8f9NSDzVdqhIUFd." NULL
Output for 5.5.19
string(60) "$2y$10$V66YY5G41wt5tkYUNdER9uYTZEFaDlimszpp/VJkRexUR0nvR7Cmu" NULL
Output for 5.5.18
string(60) "$2y$10$zxa63s7w1LigAswR9l9gIu.b.G3FcaNYzeS5teZn5QEEC2PZ7orVW" NULL
Output for 5.5.16
string(60) "$2y$10$QjbI6YdBSqh9flOK2tkXzumk/i8FqHGdzLz1bIcrhXj/HGZr4xi5q" NULL
Output for 5.5.15
string(60) "$2y$10$.OGdFPCQN1lCsBP.RrZGWO3RTYQw9Z0hCL8uzM4F3ucUR1u9U26Na" NULL
Output for 5.5.14
string(60) "$2y$10$6uvTf1GNT83uqIDsbT4lzOVpnn01vpbv2o95OpR5ZMeU7hY/GWh3." NULL
Output for 5.5.13
string(60) "$2y$10$QB04FrevazTpw71FSGbSOeMyyjIyxOldxm6oQgfhx5DOFuwkwjevu" NULL
Output for 5.5.12
string(60) "$2y$10$t5hXM4QtUwNbnuBNOZ1UZODHT/6y0UWyzARfhWxrWefzlZdUcSuya" NULL
Output for 5.5.11
string(60) "$2y$10$ra77DijugyhgSHatP26uGOccfk57xdgAI4fYA4/0vi4HgK/ee.SlG" NULL
Output for 5.5.10
string(60) "$2y$10$tFpFrtXVIRLfqLAZ8TqGDuL2YD4IP4htBKNeplDLlJlfRU5f5uYBS" NULL
Output for 5.5.9
string(60) "$2y$10$b57Tle.8I5NwDkvGabPsUuEXelcErQMebOO29RSC.ANP5QrOWeVbK" NULL
Output for 5.5.8
string(60) "$2y$10$rfxfVvsFJVa2/jg2BS3H/e3DOWpU5/n.yWF0tkikXo.qvcHTPLzBK" NULL
Output for 5.5.7
string(60) "$2y$10$PT4trPUfALJ.9w7bdAzAKuzImBePyJC7LuUnIAQgKX0dsT0yAtBcq" NULL
Output for 5.5.6
string(60) "$2y$10$iuJCsrOYTYV1outonrVGdulYevFwZntjVzo4OYmER33trj6CF6SaW" NULL
Output for 5.5.5
string(60) "$2y$10$MEvi7kFSM97s..s6eRCc.ufR7GS4FC6hBZ4wa/jqTt9RMqyl4HPRy" NULL
Output for 5.5.4
string(60) "$2y$10$hUtLsyDIyk/XFcjebvjUsuLcWbQBPFwnYRB/VQUVEGE2unIaNDCBC" NULL
Output for 5.5.3
string(60) "$2y$10$Diq2ZX6fWEUnisKq2V6jAu4j8f8ZrAIoDtsvHe.1WnuaNaCOQyB1." NULL
Output for 5.5.2
string(60) "$2y$10$Zfqizq05tUphBxkL1sCApuu6LvpLpAa8TMeeUH5PwZ4SE/Pm4P3te" NULL
Output for 5.5.1
string(60) "$2y$10$JQmCFKgApKyK7RkTlY0pu.S6OJwyX09wgGGuWg4xHjXzBkw9BJFq." NULL
Output for 5.5.0
string(60) "$2y$10$3cU3AjpCEdPAqk7aujb/5.ONj59maJO4UJAps8FoWE9Tu1xtK0ZSy" NULL
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/sAkDp on line 16
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: password_hash() in /in/sAkDp on line 16
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: password_hash() in /in/sAkDp on line 16
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: password_hash() in /in/sAkDp on line 16