3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** * We just want to hash our password using the current DEFAULT algorithm. * This is presently BCRYPT, and will produce a 60 character result. * * Beware that DEFAULT may change over time, so you would want to prepare * By allowing your storage to expand past 60 characters (255 would be good) */ echo password_hash("12345678", PASSWORD_DEFAULT)."\n"; ?>
Output for 7.1.0
$2y$10$tpC6S5KbP55359K3JS3ituBafzqfFPC2WX1xTANCOUf2GClA9Rdm.
Output for 7.0.14
$2y$10$nuasfv7DnGYAUKLTEdcvK.pX4SnoA6VQJBt2s5K0DsBVyWMRSj0KS
Output for 7.0.7
$2y$10$Mm4hXL/v9e9GfRV8b./hGO7VlUk6YcGJvwn4RMEDmRzQlgAJWm1Qu
Output for 7.0.6
$2y$10$oaSlRLw.fKDJrNnVSwrBQ.jq6/G.FyddcMxX.DMoHo.Zo8aj2Dyn.
Output for 7.0.5
$2y$10$pXSL2NOL/dsvu1K82Yozq.wu74Y8TLWfauu3HICHjnyko2OQi4gkK
Output for 7.0.4
$2y$10$DvatqIdmbzsxHDXErwod8unwCF0Q.SRAzvePz3sYfahwpAN7xGeQG
Output for 7.0.3
$2y$10$1etgx09R58UI3VqPLLhPkeS4klqKv0x53vPCbVYAJ/t5FA4Yk1Y2y
Output for 7.0.2
$2y$10$QpJuUuvnL/Ru8UHM0h6hlujeNojYxQEAZ.UtouoohNg44t7TgrGlq
Output for 7.0.1
$2y$10$.ud.44x8p8KScTtk/fd42.mCE0t.vEbE0EgRTa7xqXfyycllUIKPi
Output for 7.0.0
$2y$10$0.JW5HS5QIH98YT0qs2KUOqktUC87TIgQi5XbqhEnEHxlV1gAVVoW
Output for hhvm-3.12.0
$2y$10$U.KVnswQlLm8gOxGPfJ8B.t4PRxi1V.Y61Vu7P9WYHb2kOWEUis6u
Output for hhvm-3.10.0
$2y$10$oKJz166IGFbEXJH.h3QYleczJalEFho3XhlWbMjCnpkeK/aLdy/x2
Output for 5.6.28
$2y$10$FtK9q4sRbCO6e3fCJ9hGaepBpffGTPaI.7g8Dx1JS20Czcc9cnMXW
Output for 5.6.22
$2y$10$.DqX0BpjQ.fsi8ttBaa1iOvl8os1.njzxqhMEG5evyZ3aW04um9ry
Output for 5.6.21
$2y$10$EsLTq6cLEc4FyWjf8LBjrOZxoTw5A5J.88PjR3JTT3vI76eB5U/bi
Output for 5.6.20
$2y$10$ZbjVjRKGo.sQer9VOEr5M.6MQYfWuW/AIAaPaiJicN6NVJ3N6LSau
Output for 5.6.19
$2y$10$7e86ogPfQfLY0dxYU61oru9bnJGf8o3k00mo/Jsk4HR4KT8/f/./.
Output for 5.6.18
$2y$10$RkdHDx7sHZJOqtOG8otqZ.9QlnOiQMNFvBBzBrOkNVG.UjdmbDrA.
Output for 5.6.17
$2y$10$3k45RvAs5g.7Sh/mLonBRu0wbb6.a92wvkYtcVTYdNHCZBV5G.KTu
Output for 5.6.16
$2y$10$BzBm5fvo5apWG.cNI/9IXOE3A2piFuX8iSCP.PA22FXTf.ghtB2aa
Output for 5.6.15
$2y$10$3knYwiIZ3o4d95KXjTVPS.r6UOWulYTy.3BgTiid0J3nFpOttDZ5a
Output for 5.6.14
$2y$10$w.VuJL3zSG4/9bYNG/pQp.Jcee5oMIcRSxP5mkiBbXxfFclm.PJcu
Output for 5.6.13
$2y$10$Lw4XtbWZCakTyIwTQBK46.WjmpomAK3pBlzNI3vIq84ToW5Vi3HZ.
Output for 5.6.12
$2y$10$ZJHCBt/9E3bPuJvZlwRTOe.pfl7UH33merQuHuIwHJWsIrEe5cEVG
Output for 5.6.11
$2y$10$51ryhynnrsmu.NJAxrzagedrBi3GUi2jQLAbAkKQyJMMPusX/wlgq
Output for 5.6.10
$2y$10$aCXB3MLZzfwK3WT65IPWGe4lfViWWAnzKzTR9ABMFVfPEDTFO6BL2
Output for 5.6.9
$2y$10$DHoFgi0u2fOEQBhsLjN/zuCiHgZWJnur.diJPmGWF6BC0xiVkT8nq
Output for 5.6.8
$2y$10$ZMM/jq5.hZen9VUKbqdM/OnkI6/sL5vIxxINSN9lZgQ9SAysW721.
Output for 5.6.7
$2y$10$ARA3pKmayJQllhzUIrdfr.JlMrUeMb2J7KQq8cYOMT1atC.xjOsiW
Output for 5.6.6
$2y$10$hoeoQ3Sy35U4FzhI5/PDKO2LmQveE6OrsWLtvUuLqXsNBewcsTAFa
Output for 5.6.5
$2y$10$8WkqonFfezyodGQyc6Uu.uEVextNDV50CWqxoPINZEUN90gz9prQC
Output for 5.6.4
$2y$10$TCgrlRDqdRUfqNhrXDzjZ.zJogMWfwuQSR6wn9a7.3sHybniWneuu
Output for 5.6.3
$2y$10$gP0GN4bsHUTtEOjMyj8DqeakBrpFEJOt4ypYaxs43mgCqyqsm1oHe
Output for 5.6.2
$2y$10$EcZdFuHcj9VHzhihqavN6uyAbdTS9t4wPU8EDSqQFOklfDftUqmLG
Output for 5.6.1
$2y$10$y5pGym4ji/Netd.XuxVEhONEc58nTFVljOA0vXlaq2Mz0O6uS4A9e
Output for 5.6.0
$2y$10$9E8jfT2Ty30yTfowLX3HxOWQJDjPIc9NiZFw2VGnxEOURlH2I/HVC
Output for 5.5.36
$2y$10$F4QSmpsOg3ItPpSEHTcIJ.yM0ugdDMVkjMZEKdESebXv9dai1pUaG
Output for 5.5.35
$2y$10$O4xyhQQwETXJv0gvKoccROmXXuzxcnWU9Bk/ojuMUVCtcW/VkoJAa
Output for 5.5.34
$2y$10$EznwdW7VMY//0DvsSeAGSuhjT1L4pZPS0uQTZ7B9aV6JiECUaLIye
Output for 5.5.33
$2y$10$O2H1Wm9xGnnRwr4Fe.6E7.gBM9EKnj.H88FHFvdpx2UmURa8VrVuW
Output for 5.5.32
$2y$10$EbvWf0njn8kQLOUNZ28uGOq6FKUIKqBH790jw/TuHazx9dKtmthtW
Output for 5.5.31
$2y$10$f3fzbE2.b88QG7HFYoEmo.bplQw.LY./63P4.XFUspS8KIbQVZjrC
Output for 5.5.30
$2y$10$7/aIXUgfYS2VShHlOUKW2u8l/w8uLqjCSDd5fF9EwaMSveFCPLsSq
Output for 5.5.29
$2y$10$9MjqXghkstkVUmwftWgOe./vNU8bylB6xtEX.UVMjNIu1/Ub6z6sa
Output for 5.5.28
$2y$10$P3awK/IiAHajMNaLRIA.COQZD96NB8O2dvOu8aTXGK6FotiinF1sy
Output for 5.5.27
$2y$10$.i7hvZTxJc1vtgtKzDZu5eqwzyie01SmTjbRfT70KdGRKcmKb/36G
Output for 5.5.26
$2y$10$DnYiNCkIYxtJ3ARn3Js7L.X2dxGVAurcpQHwOc5i6njpK13VrTs.e
Output for 5.5.25
$2y$10$wlSrrizNKWGxvqzl/4i/g.rUb7cp.IlPGu8SrY.jIT7hozkdf9S0K
Output for 5.5.24
$2y$10$prM/VhmRWthwJeUDXbOSo.AZ7B.n12pba3q4YoNB3Y2sqVntBb29K
Output for 5.5.23
$2y$10$YePk1qK4djqJxiQnriE.iOn7YSFcI2YxJ0qEq4mowxw.DzIPTWcMW
Output for 5.5.22
$2y$10$o7iv56daHM5LJGa4oknVmuFeiODRuR.HWtq3LcTBhTDU6MAnUfFsS
Output for 5.5.21
$2y$10$Qn.wDUQPm/HupTXNjbiwBem1AHa8fHZ1C8dZlAu5VnjVAM4Cb0qcS
Output for 5.5.20
$2y$10$fj3HU6eyGbCAGRSmy6Iy4O4PfoLv8sB3C4j.edzJ6AAUdgDsi/DQu
Output for 5.5.19
$2y$10$Z5qCohNWpupjJOt9PkEaY.Ze19qabRQuvYcTMQHSWwExzE5cO3Zj.
Output for 5.5.18
$2y$10$JUOgsxeNP7pB2uNWqqcuDuSw.dwUe/IGg7iJeeA2rPkCZHsMQgCw2
Output for 5.5.16
$2y$10$XmQOIMeNECHNjAV.LQa6J.9WV6L./foYSGpvlmY/uyNMPpblkHvry
Output for 5.5.15
$2y$10$Yesc2njaBGuzIjzpsUEfGui0UU8QmYSdAQwf2yksgFty7oEpw2r2.
Output for 5.5.14
$2y$10$ncktYCdGZyhGl5jCT1u9oeZsmDiGSTf3CxzHdLKhvJeZVNN9N.63C
Output for 5.5.13
$2y$10$gA.tnFkMlZ8rkpRvwjP33eJCVcuteg.AGNmqvipmygBa2KBSs0xXq
Output for 5.5.12
$2y$10$0UhgzEwGGFDlR9eAnH5ro.kARHpD4i0t0SdqaPcz3g0NkovSjzPMu
Output for 5.5.11
$2y$10$cBew14s/j3iWnP/1gQ9zAufOTQqZQtmlieuzocmQRQwNb3G.Tdj1i
Output for 5.5.10
$2y$10$8VhjiTIyj2D3ym403Eb7wu2bq6xpoGk6iPcVqVulnm0EjF9Xsg6z2
Output for 5.5.9
$2y$10$1tokk.yeluWWh./FEuRgA.BakrQv4RP1trfkx0omrIBxCwSoCzScm
Output for 5.5.8
$2y$10$eE5q/qWpMszA.TtFXEs4tuIGJTQj0fyBW5k1fLi59UKUMw8/jQxfa
Output for 5.5.7
$2y$10$I.72LkW6QrNI7l.OlX4nQuQkPVWVFuVPNUHqSf.aiLdvviGsfVs4e
Output for 5.5.6
$2y$10$7RICI54295B9XHFEHB6rEu.c9Rby6peNmmiYkxK776kCX8kyRJxcK
Output for 5.5.5
$2y$10$QqWu7kjd0SV3gASLHo/JWOY.a41RyjmaIDexl58VKWfNdRIAT83QG
Output for 5.5.4
$2y$10$AcMExH6bsrxhOFJjXSmanev0gkpVZw6GYcYm5JW5HBsENwVifGoI2
Output for 5.5.3
$2y$10$TkJUtnfNnyoehPHWMdM6tu7/9NjTiqqZTrfmNMPXZXYGS0uwg918i
Output for 5.5.2
$2y$10$n/.CkWoC/gTvK42wtJaPpew8.8Qux5.2O9NHW6.vRJvwTZmfbjBYu
Output for 5.5.1
$2y$10$FtnwgjZHVuSmbTS06hbIAe20IOw40OMtIflLrRiqsaT7KjhLVPpJy
Output for 5.5.0
$2y$10$jKnw2xj4XK2.xnVrEULYRel8DoSUFetxncniuussFXUm1yPtIqnue
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/T1WMp on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: password_hash() in /in/T1WMp on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: password_hash() in /in/T1WMp on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: password_hash() in /in/T1WMp on line 9