3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(password_hash('admin', PASSWORD_DEFAULT, ['cost' => 4]));
based on 7GN1H
Output for 7.2.0
string(60) "$2y$04$TPZlznP1/fWLQTLqcWu0G.0/3Zqgf/7R324TmaddPrM2qKDd8OysS"
Output for 7.1.10
string(60) "$2y$04$NTwRk.HhAR63ymUPw0KEYO5n7n.fUVz5e7IH/lLR3bofjnPIc7ITi"
Output for 7.1.7
string(60) "$2y$04$fQEm9cuIpznXzGnoOIDaJO62Z4W4RwNXoLE0xuTnbh4/ge7ViyDOi"
Output for 7.1.6
string(60) "$2y$04$eb3evYVvxn0iRBCwYCM2tuaFJqKE9OfMWEhdXwG5QUWns7zMQ/bUO"
Output for 7.1.5
string(60) "$2y$04$TXd1EqNGZ7TyNNUc9fiiRuECl81WO1ZvaBkOgiCb2RDwAHDooMvyK"
Output for 7.1.0
string(60) "$2y$04$pBvqhj.y42faYvW4QsHaqOUsPTCjOTjz.IWccE0yL2zDuL1g90aja"
Output for 7.0.20
string(60) "$2y$04$MvnV56Jlr9iha.WI8s9QN.xvdIzNHmVGBdC0c90PlIOC12Udcr9lK"
Output for 7.0.6
string(60) "$2y$04$lGVhNmD.zsZ7VqfYbjDmKeFquSGij/IVUN7ZKWgbNPX0osiUGBjSy"
Output for 7.0.5
string(60) "$2y$04$.pqY90Q9TsSPCzyNRCXr3uzyIX9Ip4YojWMJdBzRlbgtSrKWA.t2W"
Output for 7.0.4
string(60) "$2y$04$.ObP3L1SWZYdDqnnXqSIRug2nYsl3cEAcmWj2LEsaTFCIrNkW3rXC"
Output for 7.0.3
string(60) "$2y$04$0c5nnJXkD0RJwxjZJ7dk1uDUTBVy3hMvENWZBmTniYLSM6pFCVf/G"
Output for 7.0.2
string(60) "$2y$04$cx1k4kUREsbZgClVZV4.BeupW0YyJlYMgRYi2hDTeW/Pf5pzYDBMC"
Output for 7.0.1
string(60) "$2y$04$UYE7En7tkjFgeuEp2mFrkeZybtjbG7u2WeStZehiL9b1ZjQz94fny"
Output for 7.0.0
string(60) "$2y$04$QdajLlFRzKGa7QJDgrpzieer.OXouE3WMWH7/Qr.JAgYsge1sCc1u"
Output for 5.6.28
string(60) "$2y$04$RxSBYb4.rIzQevqxoN6pOe2UALTl9OuzgbKRHi1lkKq6V0uOnKudG"
Output for 5.6.21
string(60) "$2y$04$aPtbJDXC9wTJAOon6q0Tsu7kvza2BHCgNHJTZdU2dYcovs2zGcQ3m"
Output for 5.6.20
string(60) "$2y$04$SykWcEwHCVP2t3kpOx9ireO8py4pvThWV5/iOAslMVNsljdafsuTG"
Output for 5.6.19
string(60) "$2y$04$SVwugL7RdtNWUlKQ1DoDBu947Nv1uj1AU21ZuXCVNrjC7j/F6Nxoe"
Output for 5.6.18
string(60) "$2y$04$VPLTD8Bz67gm362MRDXeAeFNJUAxHncyBTSOI7F5HVUbguZcaK6Gm"
Output for 5.6.17
string(60) "$2y$04$tiIZDwTSBmzsOR.O5xSFXu9O2eEv05vPZZtLtvTOXzd.iAno1gXM."
Output for 5.6.16
string(60) "$2y$04$Q6jUcODCTSRkuljWHPMEded6gPNjAQ3.jEu9EOGk3U0Z9l/zuJcVm"
Output for 5.6.15
string(60) "$2y$04$5L/CGOK5avLGVT1/LvTnS.9oEJwZ/Legbnf4EIVw5I6IwxN3bgUeG"
Output for 5.6.14
string(60) "$2y$04$.W1xIP.d.nfPGwGgzC2yS.ZFRJg1dyZqA0RUcNmeZvFqqn2HZ6P9S"
Output for 5.6.13
string(60) "$2y$04$qEkN/a36B4k76Q06k1ln3uAGI7wmXFvISPrO1MmIWtdcDLsNujpmy"
Output for 5.6.12
string(60) "$2y$04$HrVgGks3MQL2DpOmNp7Nyesf10Ngv2mIw6qHAvsOGqwGsIwgBBA/S"
Output for 5.6.11
string(60) "$2y$04$BI60cCbfewtbbcSAlS94R.S.LJ5HRzpltuNvZMYcyfqvYEZGgENm6"
Output for 5.6.10
string(60) "$2y$04$WuUlCIE8r4Ljw2C1vxgdLe4v6IUlxaPEO4CXP.oIt3SR1mtXYYEOy"
Output for 5.6.9
string(60) "$2y$04$w680DwaYi./y8KnFWis/i.N3EDA6aZgCMS0SOE7jEAPR93t6We1eW"
Output for 5.6.8
string(60) "$2y$04$fqKobMwmBK.OsR06SquWWeKWoB5BEqMD6sqKIZkBdfHVWMX36GAYG"
Output for 5.5.35
string(60) "$2y$04$gmS2R2XbUo.sdvPjwYpSJ.qjMEqnO4gmY6/l/.GC21ZTnH5VNadkq"
Output for 5.5.34
string(60) "$2y$04$S6b4uEhsKgmnT51Wk1TkvuPZBe3oOlzg8vkBD1oNqN7AO7NO/yhNe"
Output for 5.5.33
string(60) "$2y$04$M1I9UYYvLwLION1PY0oJ8eFfFuP/Kq1TQZ6EIpA4Qu3CG496Pakte"
Output for 5.5.32
string(60) "$2y$04$xR73w/fUrBi2xlX60.KWseBlHVn336EVyAM8a9iP82S3JLSBY8x26"
Output for 5.5.31
string(60) "$2y$04$Pf0gghrfbngi0YAVFPGNFe8brV8ElWycSdhhYOWIPEE9F2vy/TgDO"
Output for 5.5.30
string(60) "$2y$04$yJXnUlJH/N3WSRcmWYNcEeSKvXl/aIBWr2LqvoIkjhVZMl7VhTqIC"
Output for 5.5.29
string(60) "$2y$04$evlNOeYPfpZDzcM0o30umevP/uoUkfHoVF8MHcZyHfrfw.qGGhhHS"
Output for 5.5.28
string(60) "$2y$04$L13XZgwIt75HKlt2qIyvOuvLAJuJTb4fB2N86cptiKQgCjFMqfioW"
Output for 5.5.27
string(60) "$2y$04$xXUt8mlzLUN7t9V2QC7B1..murE.88L46OHJiEPpN28j.cBetonc6"
Output for 5.5.26
string(60) "$2y$04$.ECeMCVK3iK/6Bn4loTlLOgPqkBkMmF4gGyYB1HzKZC1wjFXk9PXS"
Output for 5.5.25
string(60) "$2y$04$2Aa8MoqJio4BTtbROtU7UeZbKHS5FiZt/62xXsI/c/Y4itTb836wG"
Output for 5.5.24
string(60) "$2y$04$fH7H0fq41LhjX4/3lGOWpuVgrVrO/xLIWoOCRp4lDFONO6XEVmmFG"
Output for 5.4.2 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/ZJaq3 on line 3
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/ZJaq3 on line 3
Process exited with code 255.