3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = "test"; echo "$password \n"; $hashToStoreInDb = password_hash($password, PASSWORD_BCRYPT); echo " $hashToStoreInDb \n"; $isPasswordCorrect = password_verify($password, $existingHashFromDb); echo "$isPasswordCorrect \n"; ?>
Output for 7.1.0
test $2y$10$PZLHoFvudRYs5rdQMINRT.Cd6Zg5WYUoAQKY8MnACkc2OCHTBeFTa Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 7.0.14
test $2y$10$bT6bI7e3Ppp4b5iO.xgFy.NgP1nZvod33jg4NJwMsh.gLnB.3Gp6S Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 7.0.6
test $2y$10$EINIQ474j6.CAKcm0JOHQ.U3KQBZ0FFCXBGvi5fq9xTbq/mLHbsdC Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 7.0.5
test $2y$10$awO0Op78HrCBdglqyCh2wuH9.L3tbI.ecDPYrv1KRK1g1.36sgLaa Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 7.0.4
test $2y$10$8D7ywHroH7anYAHJb48xZOBWpXddq.0JKsYXdLPhKxjt7fJf6PPl2 Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 7.0.3
test $2y$10$8l1AKt8i8Bc4mSnaiKEFPeXcmYOHuL7rwh5rqW7MoycDnueIJLV9e Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 7.0.2
test $2y$10$Q9hEq8lT1KhjTO4ofWCcYeG2w/rRcHrEFvhkxIZqMFmdQJ/u0EcNK Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 7.0.1
test $2y$10$qhfnzSAJ5chxMD53yaiquOoJ.xK5bORZUNGXKsy3J8vO9X9McIyTW Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 7.0.0
test $2y$10$chg.TePRiSge57M01bFt3.jF8k5AA2OLydGXQnWhuGdafghit2BIC Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for hhvm-3.12.0
test $2y$10$Y3KR2KCpway0c1XI3O7cC.qnecLkQKmH6ppQBAgJ.9M4vON1TaEWy Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7 Catchable fatal error: Argument 2 passed to password_verify() must be an instance of string, null given in /in/GaTsb on line 7
Process exited with code 255.
Output for hhvm-3.10.0
test $2y$10$nEbVhSo/p1Zr.hyKxtGxN.siXjfRDTXIW9EMytnMKs4AwD.57diyy Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7 Catchable fatal error: Argument 2 passed to password_verify() must be an instance of string, null given in /in/GaTsb on line 7
Process exited with code 255.
Output for 5.6.28
test $2y$10$1qxDpC6hQMDklerP/q9DOuEI2wnwAnX8NrJ0cT27494KVX1qGZ.w6 Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.6.21
test $2y$10$tEbfvq8NVofAiQMrRajDvumAj7SAbCDkSumk0pQh9BbUAIiX821qa Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.6.20
test $2y$10$dUi5vu0bJ5WJZzYalfBwd.L2LpbSCbBTCAU/59etb9ZyPCd8uBKK2 Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.6.19
test $2y$10$n01QqlSofqMSMh0jB2KKi.HcQI7WhC11x8okm4T3Q4HIZqOiB9ALe Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.6.18
test $2y$10$LZLJr4INGP5QF8TQFE.2aemB5mg5bzYCJnNxoMydLA0iz6wfBbD.m Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.6.17
test $2y$10$TcVEpmU5LBz9dvcrstmOfeNL0h8HUehnnXQSgjySevdaTYjsW52Mq Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.6.16
test $2y$10$QyRE3.N.eMUDlfeEpsh4YuJxGaByELFZsRLwFrRI2PjiqKEoi8oTe Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.6.15
test $2y$10$tcCXksPr9O/Y0OgdPJDgh.M5xK9ywhvhqGh4kQE7IlvWklKJah/di Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.6.14
test $2y$10$WfshBfiAR5lxJx7YjdtJdeBuy3dz.k1s99rPCSl7X9tY59Omh5J4q Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.6.13
test $2y$10$rjCM/3jpRYJGFg9lJ0mQoOkx4bp2xJO6EVAK8kWxn51DAxaMc1Pu. Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.6.12
test $2y$10$dapMm5p3X504MSNcNKrA4OuHH.34xNUcgCgEJUroJy9pbsK82yKr. Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.6.11
test $2y$10$unM7zftWjSxNm9Sr8DGwRun5S2xjPUbE01FlhZ8e5fR32vS0zx45S Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.6.10
test $2y$10$h7UNqUOjXS2VKOzefPpqPuI5QCge64OG0Y2JthA5.MKyFYN80TPZi Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.6.9
test $2y$10$urjK/Qcga5fLunAzsyPYQ.LKw9Z5mjJT/58dpSJk2hDjtPxNqEWP. Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.6.8
test $2y$10$hpn6aP.to.MbCLGLC3w/z.VyhmI0chBZqjRoy5xTYav9Zr7xDUc.6 Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.5.35
test $2y$10$krIFP354C6HNXh.dFDarwO8pqygd6Q7q.60EIOm3Haiqxcnb34I7. Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.5.34
test $2y$10$DaAVpHv5tx5Y4uPyZQvyjewdTp3vwcGY5IIcIAkbzK4WSGQ/HEs8C Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.5.33
test $2y$10$2DkCjYgMcSSwBOIozz6y.u4zhVq9Rd3fdO8VYhv5DsEzyNvwugFQm Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.5.32
test $2y$10$n1oJUumztyqurQe5FSfALeiPNP.R7BzgRKNp9Vx.ODDQhVUjuAVgK Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.5.31
test $2y$10$IRTgDqf6y86Bb1BOaqptZebZwx2Nc5/4tHHuiITXS2P3UEII.DVgW Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.5.30
test $2y$10$ib8vLvxj5JbafNNSBVJ0su7YCtS5mwZE//7nI8eb6/bKuFXbRNnoy Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.5.29
test $2y$10$2DwEElj8h9p8QlwF2Iq/ROhoPqh.I9RcpGSkrwtF99uEw5JdEp1x6 Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.5.28
test $2y$10$x4sKxQP0dbe7nCrILF7A0O7Svp6n/29W1P9bchxHefIXmerkin2ge Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.5.27
test $2y$10$cuJx.gjf2GfqN4WvS2w/1ug8dp4X5lcI30aR81AUljSsCBO4PX67i Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.5.26
test $2y$10$y0ldVegnKDRaoyj8dPOhuOvL.aWNC7hpd0FJ4b3.n4ogjnRbARCJ. Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.5.25
test $2y$10$2/zYzS28twI6Hn/9bupPjO3u4jLIS5cHj0R1.yo8fkDkkvy1vTLce Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.5.24
test $2y$10$Dmz6vlP7zOQm7vdWJ2PYVOt4VvWINaLM8s3pjnK3w0JWtnq7049b2 Notice: Undefined variable: existingHashFromDb in /in/GaTsb on line 7
Output for 5.0.0 - 5.4.45
test Fatal error: Call to undefined function password_hash() in /in/GaTsb on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
test Fatal error: Call to undefined function: password_hash() in /in/GaTsb on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
test Fatal error: Call to undefined function: password_hash() in /in/GaTsb on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
test Fatal error: Call to undefined function: password_hash() in /in/GaTsb on line 5