3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Usage 1: echo password_hash("rasmuslerdorf", PASSWORD_DEFAULT)."\n"; // $2y$10$.vGA1O9wmRjrwAVXD98HNOgsNpDczlqm3Jq7KnEd1rVAGv3Fykk1a // Usage 2: $options = array('cost' => 11); echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."\n"; ?>
Output for 7.1.0
$2y$10$uVPqzYtqnLdnVPpdaMSfyeNMI4YvNAMVH.vmMif49nCjLN9OKbzeO $2y$11$j8u4PC2QipITB1In7euAs.CGOkVnZnGBg0W38r8Yl.E9/9iioB3OG
Output for 7.0.14
$2y$10$VM1W69VzldM2P4OSB8KIeubGLEwd.Cr5bSRrMjXUhvljEsIsdb06y $2y$11$8ftC04/QQIqnYU8RcRv7G.t76HwDVAccNJOb2PFdwnFX4ommUUVl2
Output for 7.0.12
$2y$10$2/ebK/4PS.UX7Z7wpejX3.Mxklmw1PB2NhwilDOgFqXR/HySGLpsy $2y$11$wU/nR378hUgqSDsle39uh.dvbTRbiMSA10tp4XBNVXm8zS2hlRlNW
Output for 7.0.6
$2y$10$11g1jPGDCg7IPq0168l6POYreqXTjkqU/D1oIrqP1hNtkmkBH9jP6 $2y$11$4mZ.mg36lGAnKKJtjXq8kuK4BaFvvbDW0iisbNr68s7Hw2oZBPEY2
Output for 7.0.5
$2y$10$rWO6B20K3QzGYfYXDvcJ0.nPUfkut/6NI3.NpPxsnEkh2Bjbyzmoe $2y$11$7/Ck.5ju0qUROO7YjxmfaeZrn84DL5ZdDFAxokt8tK5dWYgzvktQu
Output for 7.0.4
$2y$10$PJY2xrqkYDJ9vDpXp1vNFusZLSXRBGpsDbBHF2aBwZjE9RXaiqtve $2y$11$bL78VPD3EzlhRxuuy.8ySek4GEBhNSh82xnTv3fM5BCCZ4YXMTROi
Output for 7.0.3
$2y$10$CYvNCfASNvePuwgrDoOGTe95KJzwj9R7OPwJS9l/BMnZ0knu4Jn8m $2y$11$sUkqDPSLiHjkSpzNBBHjMecymXqCu.LPanlDgkHEGKqW7/ngtAX7e
Output for 7.0.2
$2y$10$O6QU9mqzJJAaUwi7ReXwnunmwQP1Jqe5srl8fvXLHKTpoMcI0xELq $2y$11$IsrjsCl8w6.JWsOVhnXzMOzpuPEouIVcgskdk8hsBC0Q5EUVSRMTW
Output for 7.0.1
$2y$10$uAt.iGqBqUkEOTGGj0TDrOCi/EpewxhsEGuDc/PeSU/FOjW9TePAC $2y$11$iQ0NOeVQgSfhkN/TM/URvO4WTJQX39dJWYAtnTqEEEo5h0Iy9VdM.
Output for 7.0.0
$2y$10$XENDtKEmtSMxC9/SsxC75OjqBFXZZb6XI/tBaNcgPaod7RjqWTLqa $2y$11$CaWxiAopA4lokBtYhN3N3OR6vFyJfeMlO0qmd0TO2.k7m7nGvYasi
Output for 5.6.21
$2y$10$BXO7AuWKqunTwpw4dVzmUua1reviwMDCbcukbQe9MYZGtgPO/ruba $2y$11$Xc3HoEC4UeLIAfsIZyGkyu.8A5wpBnlNOpMT7WPR9l/YdBewMZEv6
Output for 5.6.20
$2y$10$UitXa98U1H6EiYSbT6ZEF.DMrCJkX2Gm8dxFP3sMadzKMda947MiS $2y$11$jsGt1Kwd8HCr65ePRSHHWOAEw2lVbDVtegBYYWVgs4A.spbW6mSMa
Output for 5.6.19
$2y$10$WY6aeGGDZa19aNQMPUe1rett7Vpo/yfZq0ph7B/LrlVIMNpWD/3Bq $2y$11$h5PWxLQ4eIy9ogsByq4xrOjggKWzKaluE55bGouCGUZiffZyQCvCu
Output for 5.6.18
$2y$10$S0nxUHKz17z88HxTIM/ImuffCAUuDfKNBL3JmBFbAzQCSBhuiNoD. $2y$11$DQnTMTNBPSdmw2CJdDVnWeJ2olFDxFFAYV.jKDlapQGJ4HivnsEfm
Output for 5.6.17
$2y$10$1ZMEUWTUjX3PbC9VVa6ZMO0U8QZu9s6X.3BWXabYzwREgrnU5yq72 $2y$11$1VPVUFWrhn8h61URHelMZOY5SPzbHCjTfxLpeGRxbPhGgkudoG.wm
Output for 5.6.16
$2y$10$PqK/5KfI1cU.CJyFDtPLr.F83/UTxgSAQmK3HDO88N6tfZWx3RdNS $2y$11$gAJxbjmhPku.Gg5YwRJYdOKTBfzrOcPrnWWv/zFOqI1QlDFaFmSgq
Output for 5.6.15
$2y$10$Aev23A5y7o9BOwkjG3XbNuuU35XZ4sWMafGhtX3iMsTFLLIDTcESu $2y$11$Qgt5rrAWQXH7n6bMWUe0j.X2ur5vjEgB7R/2w5nHK3GmuQZl7wVRy
Output for 5.6.14
$2y$10$yZNFefHQnbzfq.v7qoEZkOTZabLW9FEfQITyaNOre6nQTHWKORc4y $2y$11$kmVgMc7eZ3ReQytKjJziUeAZw5jNXKlB1x5WUllKwgnoLkCmXhhA6
Output for 5.6.13
$2y$10$/iU2XRJVnr82SLl1rKvS9.1TDp.vtNSS4OJG2KcZFpjaEiFYNwISi $2y$11$nAV6Hn3zc4ji0laql0T7heFc9dWfu/wpntzU/30fXpajA8MzytJhe
Output for 5.6.12
$2y$10$L/WFSjfp5akEFfkziD.lu.uTOilwpXo0QOYxzNm.XvRnK.QcRNt0i $2y$11$xa4Szy0YDR9LLIFdlW7XsOSw2QLsSrPB9ww8n34qYDd2xzkxqxMXS
Output for 5.6.11
$2y$10$s8XSgBKvkyCVwAVaCWgV/eVT8fQictOOyOJF5KQLvCqVf592Tj06. $2y$11$/gdsbyLVqlonXEEj8MCl2O.G0kChGFAkPBNz/PEY66bjdZaLgzVRy
Output for 5.6.10
$2y$10$OWKSXO2MalkPqi.K5/JZAeEBcQzG/QAT7B0sDktmjlk6PGbWiLjRq $2y$11$GdBPop5XpQDXaAPe6977oOkGccqpFbFnihZyFuYQKwz5Z/s9sfIIS
Output for 5.6.9
$2y$10$ir10yD6vo3o/cFl.9.pfPed5NheXDyfRTcV.zbtacOXlCLTj/P6Yy $2y$11$L73EXSgZLrtH9MlJ7oZPX.i0U18mZnFWt1.VKmvt0ptvisdnbEjoi
Output for 5.6.8
$2y$10$IFC59iylzFBoL2AsGb6HCO.1qczS0Rzg216VnNW2g8JqoByekLZja $2y$11$sieAE.OHlxrsa0Dr6IJqIO.LyPhIcAcaKnP8sT14j9ALQhI1vgJwu
Output for 5.6.7
$2y$10$lwN69gAZXrjVV.SdNGbHN.cQWU9sCjybgb9eWSAxXYrjFXQu9Km2m $2y$11$yG1DdlYMi9pm8DzXdmhZe.20VgRTdbi2MI1mNPniS1fIgPq3uii36
Output for 5.5.35
$2y$10$K0v4MBUAJW88djmkCHcOrOEg1y8itHHhpfOQoMknkgCAa4q.E2df6 $2y$11$U.OIFA3HcddkMQ1e/F662.jNhQdjQ71z7ATVaV/IlOi9.hi04INpm
Output for 5.5.34
$2y$10$wWAC4SBddH9C.opYBvzzI.GqT.yGnb7mQsli.MXJFXjGTA9wjOzAC $2y$11$qaCbYqBTYU0Id3j1DwRbBu4fpRNH1R1QKfhEuIguQyw3eVrr37ZfK
Output for 5.5.33
$2y$10$HV3ISXVzUrYx/QuldqikVuX/vHFZtJjzi0m1yJ96ZZIq7bEghJv7q $2y$11$6gipRLP.uGP56j973h5ApO0aZkyzKZNGw.RxLBlnaEpgAmZF9CuBm
Output for 5.5.32
$2y$10$ZbogjNRI7DzPItWIyTQUbeKlCJdVGgSpc43nhQPSwY5.d6fTl5dHO $2y$11$Zn5xIfQQJg.grt6E/.EhbOVpMwhe8CSc2Vo4gi.4.LAbtOeD1XxsS
Output for 5.5.31
$2y$10$7rjr7E5ndiz0iH8bgVy4iu2NdHh0GxvtxZ4NLCyaP6XR./wUIyA32 $2y$11$rPUSAjbyNGEl8wAuiXA6.O3RpijGhP5ahQeMltEIGivkomfH0jsN.
Output for 5.5.30
$2y$10$tveBK.HAPywZe3X4vaoobe.0g16b3FDpYMqURUyZvvIfkwqOfDoqS $2y$11$THhNFj5ZKmEJbtkOKs9ul.bbDO86XVhXAHmEbCnped9M95Jg4.DVC
Output for 5.5.29
$2y$10$mUNtzvsPWkzVu5Sjl402z.U9.NO9CTRjzyh0hM1oCadMafNwbOhSm $2y$11$lc7pBlOd5gP.sH9vKqwcBe4HF4CxMrRSOJ8VhD8b6V7ZasVDIVNRS
Output for 5.5.28
$2y$10$OK3kdgC8nYrMAqVzFpkXDO0qI1.4PLvA9LIxhiUueGoafnHE7rpA. $2y$11$y5qTNUwMYOtt0l11pmyGfuAJCWSzwPycu2/yPJfeBoBqSFzECNzZW
Output for 5.5.27
$2y$10$FecpU.ft30jDVDMWJc0are0ssVumAQKA3kCKYdvwzilAeN3LGti3e $2y$11$Z68f/Qyd/xmOGMIImrlwuuLllP3CzhmcX4xvdPsUQzuZrLm2FwFOG
Output for 5.5.26
$2y$10$jgY4K6NN9XKLPW9/IxJ8sOjx2oLWocKRAnGJ.3RuqbO13p.YIdc8C $2y$11$LzayCV2ciD2E4NpOITm2KeAL4s/7mLIkGTQ4VTAdbrZm6cd5r.zsy
Output for 5.5.25
$2y$10$ODsk.mUPD0/FO8wqr3da.esJs4lxvnj.NtkAhR5jIapGZKfwkxHHK $2y$11$oRZcYV1STdtRBWfi2RzQLOWMXqEJlKNyDzr1L6SdXa8pe0WHnBNcu
Output for 5.5.24
$2y$10$OZwZr5zoiNztBWzdsFVNOuRQTTZvXdM2xpVJE3BEBSTGGC9SV4Yba $2y$11$Xlutv5W9ntSw6mib3sXlu.FrlcdlYtqVRlXi72O6Ng0an3oCM2PoS
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/9cdiC 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/9cdiC 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/9cdiC 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/9cdiC on line 3