3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(password_hash('password', PASSWORD_DEFAULT, ['cost' => 14])); var_dump(strlen(password_hash('password', PASSWORD_DEFAULT, ['cost' => 14])));
based on pPAXj
Output for 7.2.0
string(60) "$2y$14$B0yNMBld2Vw5hxwyHVjGeO9wTE/gKccI/6thMTXWYOO9A03af8lxa" int(60)
Output for 7.1.10
string(60) "$2y$14$GwWhI2dTu/vb/9bmcrnHPOvjDn1QQwk1ZbBerxLTwaQDfQ9hG09qm" int(60)
Output for 7.1.7
string(60) "$2y$14$cBfi9m.2nPQs7fXW7enBQecWJi3UgHCO6H6IshVCj8JpwVOvuWhWy" int(60)
Output for 7.1.6
string(60) "$2y$14$4KUaUjeSGOHjbYy570T0/ui2vp9mSODOuGIw3sLyK7uP1P2FVt1wO" int(60)
Output for 7.1.5
string(60) "$2y$14$bdsidaH9sNT/BE.jINQux.xjZ.5QAinxRYYZpKbH6Fal0.SDF.GmG" int(60)
Output for 7.1.0
string(60) "$2y$14$A8Np.VvJwt0NvMU2IoVXGe93CbpQqOLenEJeFH6iOoNpfExDKYFF2" int(60)
Output for 7.0.20
string(60) "$2y$14$Bxu5MT/fuwPNuYqhKBbD7uvW95sl/tzqb/iVnsIDjTFzFp0cT8qca" int(60)
Output for 7.0.6
string(60) "$2y$14$mX2THndmfz1qpstfOoKf8e786yB6UDHCupqXiH7L.vCLkDB.yjqDy" int(60)
Output for 7.0.5
string(60) "$2y$14$HUbqAEOkqZ2FyuWqr15seOGJtUaJAqnYV.Pg1kmD79hgakxkOTZqO" int(60)
Output for 7.0.4
string(60) "$2y$14$TkX5d0W4YZYebGY2XjsdLeizz8bPyJ0gGLX9G0B9oC8PncLFKPD32" int(60)
Output for 7.0.3
string(60) "$2y$14$hpFhw/A7rvHnYfXk47XtReATXgTO5WIko6NPfiYGRuZj41mP0VlTG" int(60)
Output for 7.0.2
string(60) "$2y$14$aR387hW85kMnCK1S.ZGQn.9.u8j1MvVx4fGddmjtXRXAYI01FyJ4W" int(60)
Output for 7.0.1
string(60) "$2y$14$rBU499hRwIfaCBP09TEeaOUiQ0J1IXOZoLd.7YIxkS6O..aAZ82xO" int(60)
Output for 7.0.0
string(60) "$2y$14$8ekmQzygGcY3AzPVznh1qekalWa.CeCZgbVKx5Jsq5CgzLMRl52a." int(60)
Output for 5.6.28
string(60) "$2y$14$FhiGFTaBWms3gI0euU/nveRYbqAlmMNx4XMWlP3vfapjQ0UDhg.Ui" int(60)
Output for 5.6.21
string(60) "$2y$14$EwEGQRLpkdt7Ty8csHW.LuiS/gDlRaeqqaUVrFA0Zpdd34KD/dBj2" int(60)
Output for 5.6.20
string(60) "$2y$14$JvUoJdkUdVVpFX.XM.XefuvLoTrNqzd9O5cLQz/ptg1rIJhuWt/di" int(60)
Output for 5.6.19
string(60) "$2y$14$Vt/mWzG8JXxIwaGG5JTrFePK0no8OB6r5dCAe6WANb.3wfCxVi522" int(60)
Output for 5.6.18
string(60) "$2y$14$0S/3XBZ0y4ZFWWrwtRy2wep6qvb65aDQ/a2U1.JoJd.OwcUBJdu4." int(60)
Output for 5.6.17
string(60) "$2y$14$JjLXa1ayBtxvaUM0Q2RXpeyUMLl1l1G5Z0vDHmyVhduRyXrHrsshe" int(60)
Output for 5.6.16
string(60) "$2y$14$TY1049I2/cs9.Fth/RuM9eCy1QQNB9o0kx6gSCFNr/gvVJ9Hbj/22" int(60)
Output for 5.6.15
string(60) "$2y$14$zY8Kh54AUStykzTWXvY4feTUEcbbhK723oGZZIaJmrOhSo22NpTo6" int(60)
Output for 5.6.14
string(60) "$2y$14$T1KpvE6nkMB151sNkPWD2u9KhvgiNa8Q4oNp8XLRJ4BveQ.vKV0Fq" int(60)
Output for 5.6.13
string(60) "$2y$14$I5UNqfVFT8xr.sPt5QyMMOFugX4w9DUT.rlI.ygwfpdcYqdkMZMX6" int(60)
Output for 5.6.12
string(60) "$2y$14$ueJIJvm/9.Lw4x4RBm/VJemcoaWp.XWI.LqXnCDj9kD2RlFBdEpnS" int(60)
Output for 5.6.11
string(60) "$2y$14$2C0hJNqEzKL5B6dF1LPAXOkBWJM7JGDm0Z85AmpmvTXduh/loj0lC" int(60)
Output for 5.6.10
string(60) "$2y$14$VkhZf5zdZJD6Qkb9Of5fse4WAxHbdJRvu.ZES9Oz7Tla4uHpq8lCC" int(60)
Output for 5.6.9
string(60) "$2y$14$uRCF1L6tIJqLwkXbSZtNS.HZ4aAixVyX3ceEtGN8ZvzeADotUNEOO" int(60)
Output for 5.6.8
string(60) "$2y$14$8IPSDKd2mErDimPFuwDkgOqynqnGauPKR21pVammujP66ncjwefhi" int(60)
Output for 5.5.35
string(60) "$2y$14$Ri9mKA6a/x/d1oWh5lT...Mpo5KWiThJBCx.u.mtLPzTYm1l/2jyK" int(60)
Output for 5.5.34
string(60) "$2y$14$HwDeQIwWchjlyGuwErf7R.0G6YDwvB6NjWObEDPVKFoRWQpxJZs26" int(60)
Output for 5.5.33
string(60) "$2y$14$dXN/a06INxrKk3Czj5wfsOnXAxfkjMhi/Rryz.nbD0KhiqCV3lkSO" int(60)
Output for 5.5.32
string(60) "$2y$14$DGSGPd/cmvqspx4FbVvLQe3y.Hw1bSIm7jbxo7NKRYdwwXdeg56QG" int(60)
Output for 5.5.31
string(60) "$2y$14$36ZbfMzKm1gaxI2njqPJ8eZ5gqLzNUQ45OGo4GkoRpP4l1GY/guXy" int(60)
Output for 5.5.30
string(60) "$2y$14$cjBJSc97vPBL.h3rVKek/e3NdUGUmn/d12Ki1DrtmlbIFZmDLB5M2" int(60)
Output for 5.5.29
string(60) "$2y$14$hwh9hKvvyyuRdoHiR98z9O0lJKC2Gzwk2O8/WNt35xxSbRV.Ckfni" int(60)
Output for 5.5.28
string(60) "$2y$14$Jjl4HMyzsVEATxZj6dk/le4ZY3EmQzM3E9Dbejxk9H6R7HKUomZVC" int(60)
Output for 5.5.27
string(60) "$2y$14$nMzEI9Eo1ufonY.FtxXRUOuPNGEakMAGjsjXMZ8EumOgZve8GWWrW" int(60)
Output for 5.5.26
string(60) "$2y$14$qECUdWi2BeUMGhB2n/HUquKz6G/IXGOTKMYHpVw2LVcqoDr.nZkMW" int(60)
Output for 5.5.25
string(60) "$2y$14$acqUC561xz.BP6O/UqrHyeCeYmDIUUi1JozU8bzsO1XMbgh3Q2eam" int(60)
Output for 5.5.24
string(60) "$2y$14$bY3KxdlvLM51UWoK8TwDvO.LyLzC0Piz1ucnx8GlmrVWc1NO3ZqFi" int(60)
Output for 5.4.2 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/OJHvc on line 3
Process exited with code 255.
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/OJHvc on line 3
Process exited with code 255.