3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $username = 'test'; $password = '1234'; $hash = password_hash($password, PASSWORD_BCRYPT); echo "Hash: " . $hash . PHP_EOL; if (password_verify($password, $hash)) { echo "Valid"; }
Output for 7.2.0
Hash: $2y$10$x0JxtzKu1ocAsD8AhHpWoeaUYazt77njfNXGdWr5qZwA/RnvkX.Ii Valid
Output for 7.1.10
Hash: $2y$10$AprPNxnmwjBZ/9p7kv4T/usrbGzOTWSFvRGJyPtU1BhZkpHpKvmgG Valid
Output for 7.1.7
Hash: $2y$10$591l4GrYunqgO5HaY/U16eihwPuAW88i2uDBK/fs8upFSN16gYjlm Valid
Output for 7.1.6
Hash: $2y$10$dUX/u5KYMWg2rLyew6Wvm.o46hd7waYQE6zuE8tzmDkB0WZVQW2Si Valid
Output for 7.1.5
Hash: $2y$10$vZZ6i/wfq62mSJuQ2Fapr.Lh2W.dOj9QFAYBbQFwB7LfzTdeDfI9m Valid
Output for 7.1.0
Hash: $2y$10$7Zkfw68/VmuZfYAZSG8WheyDsRuj7ohEi01RMRNRH1BkHW8wmroRi Valid
Output for 7.0.20
Hash: $2y$10$KeFCzH/HLqWFTC2i3foBcOuPUkLqMTvZQbW1/YmSG699QgAWrqupi Valid
Output for 7.0.11
Hash: $2y$10$zcolvBtm7DTm6WwKrq055.QUmRyZWBj22hVkDMGmF7up7jg/3WHFm Valid
Output for 7.0.10
Hash: $2y$10$ZrfxIdBVD5fj646LLfZQk.4uHsliLcA62COPGAtx3XqXhi8mRhidK Valid
Output for 7.0.9
Hash: $2y$10$zIjgZkSGUiHUSALkCrldku8XxJkrVQ1CbsD68ax0poJ.g89rC.ZdK Valid
Output for 7.0.8
Hash: $2y$10$V6tWPuNbT1vHOUS1wQCC6uyaMDBMM9uY.2cba92hd8KbNRuFfOqAm Valid
Output for 7.0.7
Hash: $2y$10$LWcmv6fJC9s06g/1F5NXcu09Phix6I53knVBJKvNoVsAum1UpRC2O Valid
Output for 7.0.6
Hash: $2y$10$HsuQFtaBQnSod5FRAax/jeIVGUE/6gxyCWv3D/PwxHFVYozksYnui Valid
Output for 7.0.5
Hash: $2y$10$G1Uz.Ct1vQ41Xn6Ngy8LOellKWGmNaQKQwSzEz.3E3N9Tvofdq69C Valid
Output for 7.0.4
Hash: $2y$10$TZpkBlp231zur8O/ottp0.XurNhagbqsJDWQlawF6Gq8fbg.024jK Valid
Output for 7.0.3
Hash: $2y$10$Cgf0uDHzZPig9SjFBPHD0eHJSYkXrWVTFfksO75ZZQXW84KJTxsku Valid
Output for 7.0.2
Hash: $2y$10$cYnmfrdEVyGG/nz6SNFPpuzf3pUMbds8GVAxOpq98bByOa7slVBwG Valid
Output for 7.0.1
Hash: $2y$10$5m41Z2ut5GvbJtLveXSew.gTLNY4po/FdlsJ5rHB.ZH3uhXsRfJje Valid
Output for 7.0.0
Hash: $2y$10$1XEv3CtsDTVcEUXESSuoHOCu0TSuH5W2wN9eCZb8yL0OMGhWhPsye Valid
Output for 5.6.28
Hash: $2y$10$1dAAPBjPFIw1R/wGowu.PeYir69aB9xo3kddHwDSJUAtZe90iVjXm Valid
Output for 5.6.26
Hash: $2y$10$jPcZtsl99dwQB6l/Q7S/3e4TgaQbckfZBuzZHWXaaxS0Q4VARAT3e Valid
Output for 5.6.25
Hash: $2y$10$T8i1iNW7xR/gBZhGxM/XbOxl83xpc4i0vzxEbU5FCawQkoxehwBKi Valid
Output for 5.6.24
Hash: $2y$10$RXZNqAxd1RfVATsFWKDbVeIVu5/pB82iNpdMS9SUV33vPCpVD8yAG Valid
Output for 5.6.23
Hash: $2y$10$5WV1HCDium4z/DYDvZRBduaBIy9sdo9zJFjeBcTMAKsbMUsET6H.y Valid
Output for 5.6.22
Hash: $2y$10$wI0p2vmnhmCj0hrOJ7r8weCFFrU3d/UFgewYcfOToIlXMseISQh2u Valid
Output for 5.6.21
Hash: $2y$10$8BcjHVKI8Fd/8o880eRIauvaaLF5cYB0t829C6mwCmLWItZVwnHYq Valid
Output for 5.6.20
Hash: $2y$10$yBqkQDpdenxA9PA4U45KZef3bheYTuleyZuqT9VV.DHGpAVUiit6i Valid
Output for 5.6.19
Hash: $2y$10$uIZ.evNxRQiixHNCA4.3G.1vOunF.rYoTTlHM9/Ya8rWqrnBv.u2i Valid
Output for 5.6.18
Hash: $2y$10$Z.sQbzW7vSPc9gfui2UfQ.DJlAJ38em2NJ4XU4wt.yvYw7wGGxNke Valid
Output for 5.6.17
Hash: $2y$10$YRd3w4ittD91U7Dv3RVqJeOipqtnR7tRogZFE/vmJlby/uVTBwT5O Valid
Output for 5.6.16
Hash: $2y$10$brLFfc/27DINf25YL.ZZk.bdI8vYO8m689U8.b29qnxKznysCwr.S Valid
Output for 5.6.15
Hash: $2y$10$dgEe.0sbAHJ4g8DD2Rh6Ce2dG5bZW1Ylarj7tKPoCDnRQ/Fix7dpe Valid
Output for 5.6.14
Hash: $2y$10$Ln4VEbyN6tEu9NySZpefT.oIcRRAMPxECtSnq5pwL2oaBK8Fb2D0. Valid
Output for 5.6.13
Hash: $2y$10$q5yvFH53uLRHHH4CdH72JuQpW4NSVIccJf6EuZ4cVa61yT20Vfsie Valid
Output for 5.6.12
Hash: $2y$10$nk0zDD0rZOHyW87uyNB34uYP8DeIr1aMvzvmRktoPd5tZXe98RSLe Valid
Output for 5.6.11
Hash: $2y$10$vGC3R5/iPGLgXNTEXJLpCece56IEmyYTJ1kcFd1sDfOflWfuepjna Valid
Output for 5.6.10
Hash: $2y$10$87wH1Bo.nNPmsXkVoon7LeINV1yDuZsPoU02vsZwlOHNo76lEmKY2 Valid
Output for 5.6.9
Hash: $2y$10$Q/IQ15EyLXKU1RUXep16vOIuJ6YBkXnugkmcs6NRlXn2VzzYstcxa Valid
Output for 5.6.8
Hash: $2y$10$pI1T.Y8jdqOahegxqXFn6Oxvbm9LId.tUrZSgNHuwwGWUehbUjYHO Valid
Output for 5.6.7
Hash: $2y$10$wEWRdR5n9Ggm8kmw5RjvU.UXooyaH76Y2owW5Jsl6W9P/gSLUBCwq Valid
Output for 5.6.6
Hash: $2y$10$MnrxS9IeWksFTL3rteVQiu7CUlp5spBUy8BD7MpB6acFMT04wQtlm Valid
Output for 5.6.5
Hash: $2y$10$S.jy1ivVU3DgRHYfGJ/dMO1.wcplxNtcCfs1oUFWlaFbJxe5SC8om Valid
Output for 5.6.4
Hash: $2y$10$GP8V9w2J6tZhk.bVcg4Fxuw1zV/Z/dj0Pfj5ii0yn2fAL3va9G0km Valid
Output for 5.6.3
Hash: $2y$10$l2acfaJVPrO9UNQpIx3IDO6CZOSWKGxbg8ow0LTeqWqIxMFEatAc6 Valid
Output for 5.6.2
Hash: $2y$10$OqkwpTY/iaMXhk7OTiqYGuoUj586O/yxuY33SVQDyI2gjrh7flLQW Valid
Output for 5.6.1
Hash: $2y$10$O4/7VW/C7tw7Gl4l6S7ETOTyhJZrelkd57WtT4.1ja86gWbZ5Eyli Valid
Output for 5.6.0
Hash: $2y$10$b6Y2jGEJKCNnyoHQW55tcOHslzG7z1oVqKtIJW69H01OvH64QC21m Valid
Output for 5.5.38
Hash: $2y$10$QNEjsO3hEKZRTQu4E2WXaehV/5ulMZhI21vNtSnR.dPYG..IL63Ge Valid
Output for 5.5.37
Hash: $2y$10$k1Jj8mjXmhPGmpoBYoDnj.ELbokYOLdXOid4AvOsfGUXjTWC7WDsS Valid
Output for 5.5.36
Hash: $2y$10$fDp5y1gH/3uiPPaUo4d9QuF.ELzer2aNWTBW61ph30ueBZKWMOAWG Valid
Output for 5.5.35
Hash: $2y$10$Ts4QYRPMCvW2ARwKkCYcSO4D.GVTfhXAZia2wHhFcUD2KTI9A19.e Valid
Output for 5.5.34
Hash: $2y$10$h64hyfkL3LrOp.YMws5EyO1spgPgRjEmX3BRhMEC1urUsTsXuwH6e Valid
Output for 5.5.33
Hash: $2y$10$7BPzybINQmjacx/U2yLe/u2T6oyFBWSyqInHKB9jLYQzmZReX2qWC Valid
Output for 5.5.32
Hash: $2y$10$pzgd0Rr3kg/s0KwKhBO/Sud72OO25n0ABPQnJ/a7nkIg/xDJXhYYC Valid
Output for 5.5.31
Hash: $2y$10$qloHWaWi0KAwLj3DyxG0heYC8bpJEO0aYtvDSGXosT7csn653xtXi Valid
Output for 5.5.30
Hash: $2y$10$JZ0VF.pBaM/s7RuFC7qeGeehSKwgighEXG0Tft4OSQiT6iKjp/Q8q Valid
Output for 5.5.29
Hash: $2y$10$LSo.7awgIzKeHUWudpZCVOAlRsO2wgsnvRWWS3NAsHK1Br/r2NQSG Valid
Output for 5.5.28
Hash: $2y$10$3gfTAtfM8lX7AtfN/jO7i.qHIw1OzsC5bK93S9KV9GOL3yj1mQXky Valid
Output for 5.5.27
Hash: $2y$10$JVhg4NPrPFZmv6fo6KEfeuqUBS05dO0FtB5cLJLKkTK6wnWFEfxwO Valid
Output for 5.5.26
Hash: $2y$10$YuEU16h4ymAh/sjnlfhFoeGhMrKqQ3l47InX0qPZ3qznJdaH5IZPO Valid
Output for 5.5.25
Hash: $2y$10$1Ggt6Y0PM2kmBBQkVpxTIeZoJAmgF0Gdf4d.Cu/NBkKxZ4v8mWY32 Valid
Output for 5.5.24
Hash: $2y$10$6jREGXUcs9LB6WedskZ9du72GsAjQFHy02VDeV45H5rHKKJgOhxUm Valid
Output for 5.5.23
Hash: $2y$10$dRMsDMSjFVOrIQkXDaJ1HOKu73HRqVJamGonCp8WCwZwJBKt2c2ra Valid
Output for 5.5.22
Hash: $2y$10$iZRW.cyFSfKLvyUUqBxHZ.4r/6p7RUGjLGPQY5bf/jsrz4BvqNfj2 Valid
Output for 5.5.21
Hash: $2y$10$2/YkYrNDQmino0.CA6CzDe.tsMjppFW1QV2Z8p2BQj1zecrRomNqG Valid
Output for 5.5.20
Hash: $2y$10$CSdbLZmt/nehmHA/zzXmBuS74T.4O7f.4gNyk8hmSzVdCkN.uXqAG Valid
Output for 5.5.19
Hash: $2y$10$PcVr.raSAaIH8d4N9DXd5u0WS35rd.5nMNI3JDQRTDYHsW7O7tsyu Valid
Output for 5.5.18
Hash: $2y$10$/rEiWvrMaVxrTYPOLNchDu3Cer0vsSeQGf8tIHWlotqVbtZBqoPIa Valid
Output for 5.5.16
Hash: $2y$10$x3osxd9jd2G66K57TTWVHObsUbAJclBl6TVGQFdM4aMxcG9VEzYru Valid
Output for 5.5.15
Hash: $2y$10$MBX5bRsDFsHyW81qSpIjMuXZrX1Mo0.msIbpYmc/cus2saVG18dv. Valid
Output for 5.5.14
Hash: $2y$10$EKa25W2CjdI.auAhhdBCYOnkdRXLx5RK31YZxC5l4pUgfjsOkPNgG Valid
Output for 5.5.13
Hash: $2y$10$kC2UjBlOiojpMumKptlKl.3IHG3Nd.PaniDOnetAia8DK/t3/Flty Valid
Output for 5.5.12
Hash: $2y$10$VYPSCqy.Z/7c0oL1F.omK..Eged9vspyAssvozirKNSGygfznsj16 Valid
Output for 5.5.11
Hash: $2y$10$5eVckhZKKfECL5ALX2z6E.Jmx78NdXSAUJZtDeokLsHrD/bSfPUjq Valid
Output for 5.5.10
Hash: $2y$10$Ft36/hoqPBWrgYX0lqERteKOdySNRzTZuPMg8WCdngXxgYq0AU7xG Valid
Output for 5.5.9
Hash: $2y$10$o6Y8LH3BgS5Ta.avvE/HkO0OuyUoe1C4IpXeu4B0MiPvOmq4nZjU. Valid
Output for 5.5.8
Hash: $2y$10$oz73ArXQ8CTdY6rWtuG4ReirTB6lRlAc/VTzlCwu/pm6ImOERAVje Valid
Output for 5.5.7
Hash: $2y$10$mXduS3wjsTorMqTEo45YTu1AiUj/YQJDbPOz..M4EdgQ3flclqCNq Valid
Output for 5.5.6
Hash: $2y$10$hgjTAMLa0NTk5/EPiT8WbuTSobaed4mZ.g0SbJ/1xQ28A0LThw3sm Valid
Output for 5.5.5
Hash: $2y$10$22faLSacs9pYYJy04p5sI.Y1dlkEv4iFG6/F6w9xh3GVZmQHAS0bq Valid
Output for 5.5.4
Hash: $2y$10$.HZ9znx8lbUNEe0eyqAHEe6W8r1pl8BZkXKoCDR3qOz1VCvta8Day Valid
Output for 5.5.3
Hash: $2y$10$eGaCzlGp7saww3tmA5HBceQrnW.8BNevAlQSp0lRLrke/0aF91tk6 Valid
Output for 5.5.2
Hash: $2y$10$HjGG5LegNGpfur2yGHeWaO.od8DSbi1B3eqqJHj55hDab4ah2nYUK Valid
Output for 5.5.1
Hash: $2y$10$1xnjHRvn/bAXrKOGdhdSO.990xYfIoNg1U6UqrDuTcanJDQbdNA7. Valid
Output for 5.5.0
Hash: $2y$10$6W76QCG2SfTSsDZeKO5Vsue5CYlG5GjWC6ynoYFUKfaaFzhANSJaK Valid
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/CWedI on line 6
Process exited with code 255.