3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $options = array('cost' => 12); $password = 'test123'; echo $hash = password_hash($password, PASSWORD_BCRYPT, $options); //This will be stored in DB
Output for 7.1.0
$2y$12$VVrLyhwO9YfjeikMJ4q.kegQGtsTdEOy0Syz/fEKKsJt9p.tiNYuW
Output for 7.0.14
$2y$12$RZIkGK7UN/bmOIHnedt/eeDhX/LF2SFpZPPjIhR1p7KQkkjBrgRgW
Output for 7.0.10
$2y$12$dCCdRB1AsTV1CFL5ApXr3exuMmYsiG/wi7HnubGu5sM0IwN4nRowa
Output for 7.0.9
$2y$12$iQLJlnJbthLRC8qDn0qttO5U.fUv3EtCIDYywvUlQIXcXhk8JaJaG
Output for 7.0.8
$2y$12$qd/9VpZABE6l3aLtGuPJ0.dOIzCUAjViL0IFjkhj23xxTj2MtAN2S
Output for 7.0.7
$2y$12$dO6AixMHfx2HEc7Dp35wue5l0/TqkSX7y8h11O2lGy5/gaPVbYXEu
Output for 7.0.6
$2y$12$6Qlh6lOPjWMTX6hFj/ztwevCUPAGnTXGwG4pGDxNh1DWsuU4OCzoi
Output for 7.0.5
$2y$12$y.oXW3HaCnczOy9BmbaXs.y8.72bC8AlPz11NPUMtgKwiexbCQkz2
Output for 7.0.4
$2y$12$PSHih24aMQX1ia1XusJbfOLWd8JNKNxKmE9P9PgMgy8lwoLvP7RdS
Output for 7.0.3
$2y$12$5rlfOyl7M1R50s4XdaHgv.bxWcurH3gwjxf0SAARUzaWUMDoJd59C
Output for 7.0.2
$2y$12$yq6Gg8zCB21oL9FsPXgjyOns.bOn2Q68giHv2aBzvHQQD9r3NtJF.
Output for 7.0.1
$2y$12$TSpw2jFahxqNPMNjULGcyuTCRZoti9YCMTR3CckmizDCIxZRHQ39m
Output for 7.0.0
$2y$12$5xtSn3vcemsMePUXhFMuH.VIH2PsSpOTdz0eLfxQnaxq81ZPuuAL.
Output for hhvm-3.12.0
$2y$12$yx.p4KWP1WaJF./JJHzyg.8MQDAfHrlMYz4GT3M0jPM1OwRE8Xhm2
Output for hhvm-3.10.0
$2y$12$yPufZR1VU9mzVpTu12UgNeQlXH9IwiGCZgDb6cd2neVC9FRaQkEvW
Output for 5.6.28
$2y$12$TVWfDiU83QA/yECyl/Fecu3EmX2qVevY4c7hlsOyTzLcvUsT0c6VO
Output for 5.6.25
$2y$12$96RNjWk7shZEWyphH2lEGeCHm6meSAGPJ.JFJVW5U1UBTSUo5pk4i
Output for 5.6.24
$2y$12$.tDBwXB4PowQHKqd4oS1TOBtzNO0m4BBt/yMJ8gdgVrRDFfiklxB2
Output for 5.6.23
$2y$12$n1oJpXM/G1t6e2IlCcAZW.Nhow2SvZkc2e47Bh0iaeaFz2VuLtasa
Output for 5.6.22
$2y$12$dpWIrRO98VNBg4RXNOWRQ.XOO.te1gyD5H/u3rCpbir/Eb9lGrBpu
Output for 5.6.21
$2y$12$tlXELcuJcO1HzIkxxfPfcer2gJUu7DFHjLKa3n3jVifbEJMJ2266C
Output for 5.6.20
$2y$12$IwQyX/loMDo6wrRmwT12xOIvqcEKH5zoHV3.jVQKdGHOpdN3j8U.C
Output for 5.6.19
$2y$12$xzk2Y53L5QDeqpokLSY/nehb9gbS5BMLQnyCtuS.8KRi4CM1WCcJq
Output for 5.6.18
$2y$12$T5hrdgIhjsUI5PtrrJmqc.siyy6etCxW3ED1oX2V/Jq0Z3/IiXJAW
Output for 5.6.17
$2y$12$yumMULf8zByqF1qBNvPnvOC2jkwKtEi3fKpYInHj0Wa1cHdS2WXui
Output for 5.6.16
$2y$12$/5DTz89mnV.kMvdmKIRF1.2QluPrd4.FwCRVavLTwdf9yzgjhnWTC
Output for 5.6.15
$2y$12$do.GRpxtyBwSNjcsC5Lk1.b7Y3LuV/1na5DOhI014a6vZX3YVJrAe
Output for 5.6.14
$2y$12$xooZMCFlNH952ePI53KrUOTuUkQs86XCUKqC1RvWAJDn7qVOuP31e
Output for 5.6.13
$2y$12$rFb0N9qYcce7JBhtoiLQ9OjaXfdhMVdYEtOgO2/VmpQqFgCIXki7K
Output for 5.6.12
$2y$12$uangsjdv9QyCDIMzpp0EvOiAIU7JaX1ORPwA/or9Mkvp2XGXfUsNC
Output for 5.6.11
$2y$12$48h9ys5pbxOgCmWovcuMlO9COtEUoCa4APmeK5yFJaltN18EqAGJ6
Output for 5.6.10
$2y$12$AVP5/TpS50Oc5OgPO8cDPeCAWeejuETDd2nImLR.uc9CVlrhWirXy
Output for 5.6.9
$2y$12$hNvYjrdoWv4IUbRUF2cy.evLovz.9hMKyfBGNLxnaFrc6rU.G3i0a
Output for 5.6.8
$2y$12$rFgw0xs.0RrMFjfNOZh0xeP02OeDv/9N4Jkc09csEf/nPF4kSwG3W
Output for 5.6.7
$2y$12$xVidv1EfXGepRQVewoKf.ufLVcC/Re33y/LFuL9b/eTvCzw6vbbWG
Output for 5.6.6
$2y$12$99zsRThwL33TUhzVBXzVsenSxiRjZXhOMtE0jHCS3o5xfNOykPpo.
Output for 5.6.5
$2y$12$3.5CvrtWK0fJSOH0BzhiPeEdI8.ebliIQYYPeMg5xOutRoKyuJVMq
Output for 5.6.4
$2y$12$bCPBTbT.3fId7j7BFaGxNeV9Gmq3aebGAQNPZnzExRaLkmWjps2xS
Output for 5.6.3
$2y$12$doNtkEkv6dVdqtlLRycmX.B0D767T5GjKWOmU8XY2PKrbKIIsuEuy
Output for 5.6.2
$2y$12$oogj/ryfWR8.GnI6CgdicuxTMkFtXte7HWI4Lndmf4u69ux4zxrji
Output for 5.6.1
$2y$12$/fGNCAy24LRuFcN.yWHojeAhPgDWyz45YY1P/lWA7Pt.oHJR6CoBO
Output for 5.6.0
$2y$12$BuoT6EybAzwYQD7ORSqWA..hfU0GJ.ZsTWFKK6ezC9l.v02hwCyeS
Output for 5.5.38
$2y$12$3DPGaiDAFzT6qTOfzUYkSupKAsFADIvxeAl8.EcsAtb98Tc9Q8Whi
Output for 5.5.37
$2y$12$rMU5I3z3pLCIF/dkGCgtqeGutGIUrTtRsckFjpxlSVYscoh3ruCeK
Output for 5.5.36
$2y$12$f4oDkfSmEIarzZQRpE9oieOKUw4TYMSQnQ7r.GPlYM1QCNwGoElyW
Output for 5.5.35
$2y$12$PlH6Dw59ocVAuRyMksWDB.9J.1WHqMt9i5/QpBHvUEGzbIntSMPJC
Output for 5.5.34
$2y$12$ACam.kdYaPRta.BOrBjr2edzEMJuAd3LPpU/UuUFflwkmAlnjVWui
Output for 5.5.33
$2y$12$7IF11dibJzzyY9CICgMzIe2WhpjGkrpGk5AYpXvrg88SnvOJz3VTW
Output for 5.5.32
$2y$12$EWo8YSj4WyrfzE.fGOwkE./Jv2l4mwTaj6.JNINFXCaroXiRjfOFy
Output for 5.5.31
$2y$12$61.5oL6hzpFvauTcaqRNNubHBLHxNgI5NutFJhGes7ndl2ao5T/Zy
Output for 5.5.30
$2y$12$t7tGi3P8TafmyVx8auBdEO4R/NvoQc8mThoFTOBaLQm5/6L6WEpZO
Output for 5.5.29
$2y$12$hj70Kf6MeXQE2L523UTUm.xqDv/TSY0HgfpsUaL/DnatW2rYvZiZi
Output for 5.5.28
$2y$12$//bbAGbaQ14QhgaE6.RKr.HWyxOBaVDfyAahNqZ7tr.FHwY8smELK
Output for 5.5.27
$2y$12$1Gu/wgW2jcVfOy8AsJABJe5LbH.Aif06.H3LrJWkc3fUeNqyyzpmK
Output for 5.5.26
$2y$12$xTf9Ph0su3eSEiNaGhnm/eiNIQG4.p8oES/KUNF9wqMR3tJg22he6
Output for 5.5.25
$2y$12$LeC6lnkbKQX6/8y1CUOmROHtCs6BGN9lZ1TjdH4fFCqZDuf./FkOu
Output for 5.5.24
$2y$12$o8JlM49WynRszQqKyObaduDX0j6a4dhIAfrQPpZ7wyD1QJMAVGa8C
Output for 5.5.23
$2y$12$vtJPhZHfk9w5NqUiqGzo0u2.0EbB1KL1v7i3zFcwsI1ItZwMWYatu
Output for 5.5.22
$2y$12$G5DsGf.4JW4PVc/VmB/eEOLbcL5/H7SM2Hk2.7A.E3jKAqdz2uu4e
Output for 5.5.21
$2y$12$5mD4NkepL0hAQXutCd6nhOZXFg8tMtr5KtG3VaBWtAb7Jx4SEwcfm
Output for 5.5.20
$2y$12$EsLjo5mNj/N8otxUMKzJVOhQv3XBHy3KttwLbnFn3.88EwxKXIw6y
Output for 5.5.19
$2y$12$VMWBdrjh/yGihse6SGmPp.K8C0QGuYsqYuajp6CapNnk.s3xzTbo2
Output for 5.5.18
$2y$12$0L.DfvHNkP8EMvE8qt.AceLsUUYrP4qUf.5FpWokhmkBdcvxr0Wt.
Output for 5.5.16
$2y$12$vg691wJoF2.oNJlccNa3c.yZt5FheTc2XveS9mPoU4VAWqpzy9.ue
Output for 5.5.15
$2y$12$Oiz.7IAEtxjShHb1Wb2ZeOgHH86vJ6us016Nx258KBDMNE1O.hmG.
Output for 5.5.14
$2y$12$L6fUcnXcSSD8wXldWEMYkuaBooNkg7GC7swD9WDobi7VUQrZl2Rla
Output for 5.5.13
$2y$12$DynrNWibVUk0tGwXt4hjTut3lInLE8uA7vltHwYzGI2ZeIuDyFux6
Output for 5.5.12
$2y$12$Oh5fH8qOiMqzID.LQI55DOOYLjs5xCVV7HrsrZzjokVryhlw.tIzK
Output for 5.5.11
$2y$12$3NkkU39sfJZsmmCO9VpHNu7wXXvT.czsjBJLXio9WJt3kC3YZH9PG
Output for 5.5.10
$2y$12$E4DT0FH1l0vxSxz.TsljgOmPoAfXVl4V6fgfSxYI76jle0aEIbIaK
Output for 5.5.9
$2y$12$WrTawE7RAu4lLgW8WGJusO87OoSNLg/cRPa/ZYaj/6.aJMHQToghq
Output for 5.5.8
$2y$12$4/HJ8IzRn5Zceo6dlkof8eY9FlV1aThu1b3aQD3iRV2TWyFqcpfxq
Output for 5.5.7
$2y$12$AqAtpucrynJ07dJ6vhJVW.jXH7/TY1XPKoIOACWNVGDswNGLqqeJK
Output for 5.5.6
$2y$12$9QmAayvZByWre0JBDDQqQuPZVpAZBFlaeRT12mRrKO5Pn2iLCo7d2
Output for 5.5.5
$2y$12$AJcIf93zHb7.j9eJmXPwVuwYsJBRn3DmEtFUoxeC0refyXGgnbtO.
Output for 5.5.4
$2y$12$dw2dd3WD6GDd30k53UNQYeX/cIfTMQZd5lvzZIASEVq8eHZVR..lS
Output for 5.5.3
$2y$12$eXQy/vk0075y9yBvkOKGTu8pygbjkgqa2Igqg5fVSstDtyC5jB5ge
Output for 5.5.2
$2y$12$ihOPHbNyZV8.uPTVj.X5MOnUW/sMSLFZNpKVRKCNsEHmPb91lEbDO
Output for 5.5.1
$2y$12$Cmod0YSJpmPTBl0kI5aEmOvBMPqwLzu5ueiB76PKqC6QvPyZprN5q
Output for 5.5.0
$2y$12$hlb60ldYnTjLYopsUdHFtOctgX7fV2Dfq5lXpbmMFD3UUu9UluE2G
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/IKnF8 on line 5
Process exited with code 255.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/IKnF8 on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: password_hash() in /in/IKnF8 on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: password_hash() in /in/IKnF8 on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: password_hash() in /in/IKnF8 on line 5