3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $hash = password_hash("servergrove", PASSWORD_BCRYPT); echo $hash . "\n"; var_dump(password_get_info($hash)); var_dump(password_needs_rehash($hash, PASSWORD_BCRYPT));
Output for 7.1.0
$2y$10$m8biZ0WZmJDWaPyB3.SYU.OchWw6ATuswSi.gEQj/hdVx/ku54SQq array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.14
$2y$10$iwy76dZg9BKKaU24600oWe/cSdKnOekghWobVhGYpBO0cH/pP8FRO array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.12
$2y$10$Tz4l6YDAkhS3MuGKi6zc1.85JaOBuZBjgk3kM8/edYUSV8Y83aVly array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.6
$2y$10$a7tyndcaVwjedEWK0lnn9u8RIXSTLJeR6/G/m89LcWN6TBd.tzbfG array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.5
$2y$10$ZD2UNmyCiwXITmkEhQMRRe9.HAYrIZKY4CXhE64kL5trSjen.LyNG array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.4
$2y$10$WopwpmsJljdSOpY2x30A/.ppBte5Y.CXv4/Cgid4TaJLdZ1WBDg66 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.3
$2y$10$XyCb5dZx8EXapMv9T0HurOlP1arpswHmqT9Xfg4E3AeWQq3WkG68G array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.2
$2y$10$Gc40F9iZ6ZoZX5fV9w2nDuMM44tdEfKlYzOWJn8GDf.sJ9O/B8nWa array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.1
$2y$10$bQhHUNpGDhzgTd/5gxw1veigfAv1DTvl6kMcsJmE/Ork5tDoTOxYu array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 7.0.0
$2y$10$gKNeAgUYyP8drCe72ps9zuR7A7QXnWE2KqaHCF7OmeyQ24nJRnQvO array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.28
$2y$10$kAqOHm1RDnpPG8yxTTi.xuTr6Dddnc2MilnIrriPlygmMMQ//58Wu array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.21
$2y$10$Ba2eJ/u5xd1A23qxS4bND.OYtLxzfL6pgkUfi1uuPU0TBQgqw3ACK array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.20
$2y$10$yzcAcy1nsQ3UKc2uwgorveTgtjQWMcseorbHPI2EeDryPFZ.POFt2 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.19
$2y$10$LRn.4Vjc/.wKrkzWtgXLt.qgzbASUZBz7xNT138X41UYd8i.RUbp2 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.18
$2y$10$W8hiRxateqiXEcseAVZnpOI0mBUg35ouwbyKPXeRNwrx.NdIRx/DG array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.17
$2y$10$QWxSPUqSSs5A8Abr.pZHGumaNCB0eq6Rj8pr8DP6eG5HuHm.08JFC array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.16
$2y$10$iVDUQKy4HRmarjjMplw4Y.fyLbYCAXMl18JMdQSfhqHm50kibcGG. array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.15
$2y$10$eN/qlB2mEYtSv/ctnilywuRkaiJHGsY6hZ8fmxzH1qjvmjYPiq5Z2 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.14
$2y$10$SG/NIqA5mQ3D2kbCjs0hpupP02FAe2s3E.On6BV6YLxyueY65Drv6 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.13
$2y$10$75prudk8DvCfmnEgZ0CplubDfFAMABFnV/r2lBRxucbEQKOLJ75/m array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.12
$2y$10$maU5844muCKyY2JZfvtI1.ipH2ELH0ZySfOzlI9vn33C16qnThn2m array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.11
$2y$10$72JseJMziJomTS78hc76quj3qBFdeelSy8DL5pSfabiWLxlyc645O array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.10
$2y$10$0VZXhWt54Jp2LNnKbL9sXOvS69MSqR8bRssEL1BtkdAGfwEP9gr.K array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.9
$2y$10$p9n1Eh0YCOX4VM1ffUXyT.BaC7yapZuvX9wmNhCnT8mZDVDN2XYQ2 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.8
$2y$10$63PWu8adnphitsOohx2IY.q8x/BoMThkTgda1XJi6NOwnSQJYMIzm array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.6.7
$2y$10$OfdsTA0GmBkGQwv.90CrEup6sLfRwtO.VZbJ9PCOQFRN8VfYK..wK array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.35
$2y$10$gjssH9HK38t93B2WLQtgNOO/xQKRhCL6mS5bdZVC7G.us9Xid9b1u array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.34
$2y$10$VqleFXcvb.0DiITN6V1fr.uPcN2kYPzszXC/06kIW2Uwz9hcFYzPe array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.33
$2y$10$rVvDTGHE96udM92Zs263KeOBvDPw32c3yrvX2Q1vC0LkgQ9d1rNP2 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.32
$2y$10$oMthRul1.FTY6h5gzYVuOOuO5yaA8wFx8miL7oA7rnh3kzkNVG8eK array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.31
$2y$10$2YZWlOJtb2mMcc1.wQIiE.YeXtFj7DAQhbqHQy.cpfkLfNHPjpBC2 array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.30
$2y$10$y4DC21j9fPHEcWV8H4T41eO/wdTdY1QqBHlKAxAANYhGaz5t8GEEW array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.29
$2y$10$5lApDzIP9cM40KDD.nasN.hY39Vdjc5Wh5YNIgi4I1H7mekpNRfqG array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.28
$2y$10$xyXbxOY6IqCUoMtLP0qqTuiQ4UKlNWiD93VqlGekYPbYKGnHB.L2a array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.27
$2y$10$OOeD0R28ickJMRqQU/v47ubkqzOfNxcdyTg3BcTTSAHlIzo3S3XGi array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.26
$2y$10$W.4Xpraa5jhda4pQPRFlletJUwiDBplc4Ehobrv8DdxYgcMEFusE. array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.25
$2y$10$5s95R9j6/h14Ca1LNQvv/.mzNSBArh4t5BIEW3H7yCMz/Dy.6/.z. array(3) { ["algo"]=> int(1) ["algoName"]=> string(6) "bcrypt" ["options"]=> array(1) { ["cost"]=> int(10) } } bool(false)
Output for 5.5.24
$2y$10$.00L81qynQ9adOcBJYLSS.l3GswAt63LcIAN1fbQthZITtEzAfPM. 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/CV6b8 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/CV6b8 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/CV6b8 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/CV6b8 on line 3