3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(password_hash('foo', PASSWORD_DEFAULT));
Output for 7.1.0
string(60) "$2y$10$TihLM3x1phdUn9u/TV1JgeJqkj3aGTVNTJO.D18SUFl7fuM91aD.W"
Output for 7.1.0RC5
string(60) "$2y$10$NKuG5IyEMoD/y92gArkEkOgWZvFNjodqx3HP/yi2IGzr078KBEMwa"
Output for 7.1.0RC4
string(60) "$2y$10$lLsQGMUx.DDrw6Ugp/gy.erpzJ.83WnKDy9fyvE8zXRumGRDtGMHS"
Output for 7.1.0RC3
string(60) "$2y$10$qsGLUNJWJEQnQaOfGbk3sedxVBcay8yx6v8GzWNevIo9yeZ/Prhly"
Output for 7.1.0alpha1
string(60) "$2y$10$EadwtFx3OrSJRWHGa5TWp.gapUD0hJsIHGrp64iZanE.5HectzPBq"
Output for 7.0.7
string(60) "$2y$10$7ecaBM1wxmvNoGrWzPm3mejP.3ehyRijAVEfoqq07fJgN5EpxRoIy"
Output for 7.0.6
string(60) "$2y$10$rDnDfCfJB1zZddRL/nsBrO.BDOL7BL6tZdeveJ2mxyRPLXUnNZ9B."
Output for 7.0.5
string(60) "$2y$10$LsvX/nCJqnlx1EGjbOxise9VzgIOFfGUpwPt1NGvy9/MWzjtmHpcu"
Output for 7.0.4
string(60) "$2y$10$CHYPtS6YTJhc9b6gncgyZ.KDa1frcjDE7fTQ4uUPrBoeEqbvyMsZi"
Output for 7.0.3
string(60) "$2y$10$AN1uhotEaShRIDKoH.XKD.QRzo9xjgQ3XWFPthQt8DQ.8LjxsTMOG"
Output for 7.0.2
string(60) "$2y$10$TiB.WcZwToMyLGzcIl/Rsecl2QFeYdlL6MQgkrIfGNoXwnv7RToea"
Output for 7.0.1
string(60) "$2y$10$ISnUTnqp87Kl1CPhZMAHfOdPeSkmtfp1ZhgpSuW2/TBpPoyq18yvO"
Output for 7.0.0
string(60) "$2y$10$m.gIqbf2eO79g/vFszTa2OzwMv3BWRN7jL61Y0/VV/hiZzpJw9KTy"
Output for hhvm-3.12.0
string(60) "$2y$10$9.Gje53VnOWmaO9LSij5zOaMIKPwQg2hLY54zDqxWiBoBdYNCkFd2"
Output for hhvm-3.10.0
string(60) "$2y$10$euS4YqIYFUTKMUmVDS9UpujVEPePy.CosmpsJJMhybEscjKMJEmzC"
Output for 5.6.21
string(60) "$2y$10$K6MVOrShgWNyJQekGHnT8uZTsWqZ1eXa3Wv3r3jQFtncWMRadocQe"
Output for 5.6.20
string(60) "$2y$10$pHclItcw/1R8Xc/9AqcBTegpOvalU1OGIyjZhWDHGJRBOso.G5dhy"
Output for 5.6.19
string(60) "$2y$10$UYl3irsMyl0YgSS7fq8YWuogC6YAZTCLfie2SvICj633WaMz5fDXW"
Output for 5.6.18
string(60) "$2y$10$SixBsRD3Cufllc.k2P8Gp.QHM1puneUPOSZTroWIHj0myCTeY4hxu"
Output for 5.6.17
string(60) "$2y$10$sWg4wZwR2OWLH.dABsD5EeOlmbYPoehagq9scy4yRmkQsUjah/7cO"
Output for 5.6.16
string(60) "$2y$10$ku3FAzJFs/vhvyqUMxO6s.c99O5PhTAQAJiLkZ7V43pBTB9NQIeKS"
Output for 5.6.15
string(60) "$2y$10$YoIyFcOFz9DzXSsIxIHpvuSun.RK319YIaxHd5wNHQGFC0aFkkaL6"
Output for 5.6.14
string(60) "$2y$10$K716TAuTfo0fggpGLwRoRud0L4AWhpVv5isXRB8eafM9gwQgdc5Uu"
Output for 5.6.13
string(60) "$2y$10$eoTbljUXI5JidB8f/M8OJu6Hrv3YU7wn5XeA4Ay5TpMUWg8LqjCze"
Output for 5.6.12
string(60) "$2y$10$R6//nawdoP7w8prl.8Po5OEIABKpcZaO8M7MjpAfmNV4gPAQq1zcS"
Output for 5.6.11
string(60) "$2y$10$/UE4irCzLnNTtIaNLoZa/uXCxt6DLd97ghQ7WJcAwaX0hTnhIcGde"
Output for 5.6.10
string(60) "$2y$10$Gh7sKBkM1HNmdUyZuxzT8OALzP0OgZ8eOlWex9fdia/gv7/HQzavS"
Output for 5.6.9
string(60) "$2y$10$lTJ6WuIT7BRNjSxwu/2Iqe2RF8XbliZy5adMmYC6PfWGrY01wRrme"
Output for 5.6.8
string(60) "$2y$10$zvp1dzKUX3FFpq/4dzqBYerVh3g9K7Fz7UbU4MTeA4C7YTudeJL0e"
Output for 5.6.7
string(60) "$2y$10$eV5piRfxw.htHTFbbszgw.PANGDy76xphNUSjghX0WtQNA7wwlod."
Output for 5.5.35
string(60) "$2y$10$Xav8txprKfQahgBvEqKQ2ONB704c7ZqQBgTdZFJxEzOBiyUJYbWUS"
Output for 5.5.34
string(60) "$2y$10$T9/ks9Ddi/2FhfvfgF7Efex8Pahu5jpo54VFrw8T82ckfmAg3uyLm"
Output for 5.5.33
string(60) "$2y$10$oE073Aa6xvA5oD4JBT/XvuhXMUh/TM2FYR/ALDYYdxartaFWTHRMW"
Output for 5.5.32
string(60) "$2y$10$spT/Qqduc9/uR2cygfUjceLQpJapnK1VXyaWJcLhp9ALN5ERGzZ.O"
Output for 5.5.31
string(60) "$2y$10$TUxQRqfaka914ZVhtZdazuvoqx/K88pnB.HpvXztPrFOvedKPjUYK"
Output for 5.5.30
string(60) "$2y$10$.IB5tSecE4o/AEyYCFb9y.txj0VrNOx6qd8RVBQOgtRgB8ngaTiMm"
Output for 5.5.29
string(60) "$2y$10$txHEfsyB9E00nRo0I6A5QuaZPRFnc3cZ11WfjEZ802xa4ac3hZ6QW"
Output for 5.5.28
string(60) "$2y$10$rpwwKj/2I8qecXq7w0Hcs.ghg8iWuO6yUgivoAI5HEJjC1CsVTZt6"
Output for 5.5.27
string(60) "$2y$10$r4KljVaOxGZMNn5oGfm4ve4OyqjXezVGIcQMEcIuF5kuNxLy8MOXu"
Output for 5.5.26
string(60) "$2y$10$h6QvrC2k0uCjrdktcdHgZeeS89NzjBs35ls6oERkM1Lm3gBqbYjou"
Output for 5.5.25
string(60) "$2y$10$h5p9VDfQRHe5rpXlxXwL3.XRMkAjacUiZDYJhzHrv2XGnqimWfEpO"
Output for 5.5.24
string(60) "$2y$10$ldVCX9AgAyMAEsrwXFcjZOzLQpYERZi4FSliPGR.sU7mx3aZ8tvUm"
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/8hNuX 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/8hNuX 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/8hNuX 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/8hNuX on line 3