3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $hash = password_hash("123123", PASSWORD_BCRYPT); echo $hash . "\n"; var_dump(password_get_info($hash)); var_dump(password_needs_rehash($hash, PASSWORD_BCRYPT));
based on CV6b8
Output for 7.2.0
$2y$10$/7KLdx5ce6hBDrxZ/Qjy5en3EmarPiGylveLCSWN.YVH5Hvv6xp7O array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.1.10
$2y$10$p6xUj/Xol8h4ZS.1YqrunuT0.aDNmAXkwrWbBl/EXzsIh7XJ1ERbe array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.1.7
$2y$10$tk4nWCg2uN5SVGSbEw85M.rsvupqt3KP4Q9VUQ.29kK/oOog2LSaS array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.1.6
$2y$10$aYAEfcZQ.AScZOItCvDDGO9387Bo7rvFwp.Nt83AJm94HAkKfJRv. array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.1.5
$2y$10$OYuKz6bc37UAaX/QXfSKJ.eVrj5nxiWNXvcwRoia5pGxvxY0lMUt6 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.1.0
$2y$10$HjBNMhxN16KElE6Sa7r/YulqJzA8MG4gDkKw3XdpAb6xYIvNz9cLG array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.20
$2y$10$ykZ1.kHG8MZcRT1K2VMZk.NSSljqP3KTS7lZwJQRht6AxrXyImSPW array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.6
$2y$10$WQJt1KVf8P5Aewyx0Be34u3o9lbNgDOkbeeATeY7Bi.LPxmTrg4ya array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.5
$2y$10$ISa7/ksLGew65gsA9hnEO.8g3X7djPsCfs7hC1Z94deBjBSE98OvS array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.4
$2y$10$l4lSSkqOa3LHRKy2vWkMqOLGDPbQ37zZJ6AUGI6/L7mLItKacrC3S array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.3
$2y$10$KjKiZwPg0m.jW3QnRN66F.i1LolHE5bRdKStNGnyTNj9bWc/yTPVC array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.2
$2y$10$zuZR0EkMUHgk6K8TLWpDOe5QAOMHM2fZgLz4cOKHzCS67CNWHrIlm array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.1
$2y$10$hxsGzudBENXyy3c66rtsdOSc0VRT.yzweGGYvyJleHLZpy7iKtnzO array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.0
$2y$10$Zkh/O2QV9D4kcogcwxtZveIbOfMLfc901zc9VJzGIWMm7dU9AOOZm array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.28
$2y$10$f8H9I7421q6II2Yr3nWdmuoKsJ4swV/HALeLa0VIqN5cLgXJUzuOK array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.21
$2y$10$wFIgB2BhlG7bX/n.J.segO7Ibcl.ukTc4ZXGn6CONLLzcSpSAWtwC array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.20
$2y$10$NJuM4lJMrnpUY61SViePuefeJnFl7w2gfLS8yruKpMKt5yKnkv.bG array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.19
$2y$10$I2RK4MHJX7gHYlWy93iB6eppOyq/P5zR/qHVH9IS.n.X5AuxAkDaW array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.18
$2y$10$1JD3SfduAus4g2kCMPI5tOeQpUW5v.EWb5LN49AM.Mbo59qp.MhEe array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.17
$2y$10$SVH12YUSu376Sv08kjHUieWM6rP702wRp1/qBQENnhSytqCmDzRRu array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.16
$2y$10$hLzBKh8ycuRGcs77W5rvv.6YU8stZbyflT0xf0jW1hckg52a0Kgvy array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.15
$2y$10$Ov5T/bt0Ahqcsde/vjYHF.m3ukZNVhLQOvfBx4aFLvSDHlcfp1cz. array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.14
$2y$10$GJ6cftHyZwT6dlMqxVCN9euvquOHahLUA8K17h6F8cqIWnpQ1c.9m array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.13
$2y$10$IpH/PV/76l.3FpSD.102ceyx6qo3QKRVl3Mk4a7fX1Xh8o9/M/XS6 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.12
$2y$10$rCoWiwBBfa1yfRERzB9enu5fxqZo6BAQlJByHbr.5xjmFto3zi.Gq array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.11
$2y$10$tViWluZc7nhHqSQRUgrO0uhA3NppnxjJ9nfXPaHLasebRJibfj8WK array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.10
$2y$10$3uqRtXp6ail1KxfCCZ2oueLRFadAvuU663b0.RU44IO9kSR3Sqyf. array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.9
$2y$10$WU7ecj6CV1cRgJd7LPv9pOPLedZcVsqWuFG8d/vSdgvdfTrjY0fUa array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.8
$2y$10$zB/zaN2itiEHsqwhmwWW8.UEHr3Zdi2ZWeT9fuevWwuwkn9ZdtUK6 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.7
$2y$10$7Z5N9cKy5mNyXFj28puF9uvg6b0A7xSbnz7umYq2dQpfmUpbF715K array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.35
$2y$10$Ih7dedEQuaDZrlI4QZ.wuuqEzby.jumnuEkD9ycGumjGqI3ZjBXVO array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.34
$2y$10$eGZ4SwNpRc1TghxAsJX6dOvOHwNeD8c8CyNPsDrdGAT3wpcX8qvdm array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.33
$2y$10$XPHUmxtNWZM/89HrGP8qnefV46cnnCsvKGys5V3tuGKqjA6DGEdI. array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.32
$2y$10$1ioleKYyL3FTGLqVGeqGiOn3RkbU//MQ3PU9NTnWEGqg.WX7sOSke array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.31
$2y$10$MKM8zecnDLVpWlLEg2A7cuphGY9wd.0ZN8nWbuK/iJFmuo.hwTK1S array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.30
$2y$10$Vt3B.9NAkF7e7jFPfQeaS.QLEPgsaMSqNfrY0OTcLha/yhYZYBPyu array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.29
$2y$10$MiY33IIzD.sRCA/jF7XQtuT6s4QUk9KBbNk1wnc1AnV6CeGpk3e96 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.28
$2y$10$KImzoU50T6AyiZeJxRp06uxFyHuxdXHe2c8UlUmOzFMBFDWz57IbG array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.27
$2y$10$iK6QPD6Ow923my.dKTGMOuS6ssdMZGlu.3vgfWau5y6M3O4ZMyVbS array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.26
$2y$10$u2gkQIvO99EFAXBeouBJwejbrRnpffzA5j4faFziWMNGcpcVexTyy array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.25
$2y$10$VaOv8oY9wJ2Ir5S9gPjW5eJZaq7YTztSW3R0eboZ3nYzMtzgdxK8G array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.24
$2y$10$kBf65yINkia7E95j5evoHO/f6aBU7zujP9Nl67jsXLd2XElPF4qBy array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/7AmT1 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/7AmT1 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/7AmT1 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/7AmT1 on line 3