3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo password_hash("rasmuslerdorf", PASSWORD_DEFAULT)."\n"; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT)."\n"; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, [ 'salt' => "foobarfoobarfoobar123", ]);
based on WdmFs
Output for 7.2.0
$2y$10$xJcPW4zZmO9yeBvTrGGJ3e.UMeBLi4WRouvDoVUXAyk/I1fqRALBS $2y$10$mn0nElTlFCncOTrv46YMgeog.RgAk4DW3gWIMyKUvdeCRRuMuD3eu Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/1LQBI on line 6 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 6
Output for 7.1.10
$2y$10$R9O0UXRdCIE4PrEkIXx59uciQOxgeRMAwhLfw1cyp8MfkpyVV.nOS $2y$10$wbzqj41QBL2hy7zvLX3R5uzK7ZDX7SNUDbPhbB5KkM2BrFgczoOGW Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/1LQBI on line 6 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 6
Output for 7.1.7
$2y$10$tCzlsb/bG9b.b6dMHSVKKOGDymJb4bLj3pJM61pM4ifrVw.QofA9S $2y$10$5IGCS5DIK1.XyWfTbGyeMuc2lo5YxjgHr5oF8bnWFy7vjYagoZ9Iu Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/1LQBI on line 6 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 6
Output for 7.1.6
$2y$10$ALqJCEGSVvEXOsvvUdfPeu1dfeaW3GCrsYaUTZ.Al19jMSSh5FDVu $2y$10$SR8B5FQX024tmLpx3X7GIeEvFhMtZhVAvZQ/.U7rDGHG99o3V3rE2 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/1LQBI on line 6 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 6
Output for 7.1.5
$2y$10$zRu..nTr02wew15K5czJ/eTe.2qIiV1YlS9An.XdsEh7RkfbPcOJG $2y$10$e0PV024gGHrR2YW1B6cco.qYfV5l/IQWTVhicUTbGaET.V5jbj4Vy Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/1LQBI on line 6 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 6
Output for 7.1.0
$2y$10$4.2zmB1lDplfDgGyO6HcouvWqvyhaL4m5LCQpVaCDIP/IfoJTCSW6 $2y$10$Zz7UUcz3rEeqU5ow5cO6Yeff5eaLXDC8vTFEAoVOsmFo.7s/WVkcq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/1LQBI on line 6 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 6
Output for 7.0.20
$2y$10$5caU5Q4VVAgsTtGAqkoWVeDvsa0QkWJoMog6/oSH4Nu0s8HqwAKw2 $2y$10$shkQ.FVU1ZNbCS5cSEvO9.CBaI/JprNAHi8reDm4vYIfscDfgpJ.6 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/1LQBI on line 6 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 6
Output for 7.0.6
$2y$10$0V9LyodjP80w5rf/tjaLXOWF7FjHDCp37qC4P89mPFvVfM3XNvTE6 $2y$10$1xMy.u1N2tCDDuXqdU/d5ux6KjGdH3wdH2ZUilR7Yn/Ds.hKaulVW Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/1LQBI on line 6 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 6
Output for 7.0.5
$2y$10$6YW.uMqP/XBnH5fUULXR8.sJm/kr4Gz8UoFAVNdXhiQlCFhgUQ2cy $2y$10$vs18QzTDD4A5XiygJPGdG.BqAqhNXgNQE7YLkabuWbC4vLqP5zJrC Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/1LQBI on line 6 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 6
Output for 7.0.4
$2y$10$XQvuAbENjnu106.sCAzLXua7/P.KtoUAglYPBKWSbvLv6jBvCB1LG $2y$10$z4g.2LVJKBMVmLp0iSToHuDb6Z7/9pKTYOtMhhzkfL7q6iku5FdPS Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/1LQBI on line 6 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 6
Output for 7.0.3
$2y$10$hzVEYpJa3LPlxzJFnk5sv.dur0JGXTid3P5sYODlCJ78j5aarMCm. $2y$10$VbROo/wZZ/K7yQjzeAT91egT5tDn2DR84xHH1LAGPCJos/LC5H3Me Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/1LQBI on line 6 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 6
Output for 7.0.2
$2y$10$Z3XYBoF7Vlbess/ADuoC1.xy7JAiPIgrcGXO7S03.pM9y2IMVwKga $2y$10$8kqd4VwWoad/GVQDcvCEweAq4veb5FRu6JA4rSl.KxrY/CGWsTBsG Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/1LQBI on line 6 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 6
Output for 7.0.1
$2y$10$oPZJ8sdN9KaB3ZNudcN0pe7wUafW4Dbyqtwt.XaYaaxheFkViRa2q $2y$10$p.zezIg0xT.4xpp.cJ8ale8QYviSetByiQO3PJJK0CfzQ9J0GSCJy Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/1LQBI on line 6 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 6
Output for 7.0.0
$2y$10$dgoctC7WRk7dTQrsHQnaWORaH5qx9A5fK4ivONhBA0yvCPQcolL7m $2y$10$LGxNpG4rWkvjbCj9fQUIxOzMh5ruQ3R9eZrwc/aoXPA4eKccGbe3e Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/1LQBI on line 6 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 6
Output for 5.6.28
$2y$10$2NzhRjS6156MDrx.tpPMn.g7B3hHPtpE/Y9iLnDlB.F8auuJUNnA. $2y$10$97Ki/tHlkReu58avudLOU.M5c7r/niSLH8wBo7OKcbJNdF5SBYDS2 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.6.21
$2y$10$G0pm7S2gRVOikYqcYKBvverl5pVg.Nm7QLca3WHskuWMXCx8QIuT2 $2y$10$8wHSHfE.PkfaR/to5T25zeGmp3O7ovmvFCOOsAUGFr2JDqVJDA9Fy Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.6.20
$2y$10$OpFmVYqN/IE/YwBFCKcF4epAzbQcNIw0HGT8GXbqBXIku5/KF.kI2 $2y$10$zOJJsnCby1JdAvi3aizV.uhSadM2IzEOmP3BXjZiTZEzgKnZpGgdO Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.6.19
$2y$10$D87fwS7oYEjya3N0h9B7luHeEp2faRgKC6.uoKe/ukeLRXQwSJu82 $2y$10$uF2ntBDdm7Y6um18rMAr.eIcsXKKv6iyjaoHdEckTVuzHxcgFcixe Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.6.18
$2y$10$PMV8dD9CK2NC47TTPCdu.u2TCjbTHOuk4jHBJErAGtVL6v.jRe.9y $2y$10$d73MH6vYDRK27erKRPo8ZetJbnUJ2l4cIptjrVIaHL.KkEJawZzve Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.6.17
$2y$10$R1tDjhlPSCoJLGsxSjOKgOLWuRDrc2S21mrphLHBVWB0aHnS2Qig2 $2y$10$FaxLL7K0xWKO5CjI.TWN6OGc91Hw6UIffCrp9pBJvM2ffHZaUw37m Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.6.16
$2y$10$WJ8ttvuRTW.311hDgPu43u9vNhfg6aEpzvuIXht2bUAirpKqqcn6e $2y$10$WhdOY/O3VUkkljCG4M4icusL6Mtbw95QIRyEUIhCIi0GDii3mMBbO Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.6.15
$2y$10$9/espb4l5uMKBSoe6Z.X.OMUQiwaWRceMyJaYEUTLNCeKG/Zg2EBK $2y$10$h/1w4IjWOWVayDGPV.rqYe9a1jOx3bS168xY7.AOFeNcbx3gApDXa Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.6.14
$2y$10$F0MOj5o2Ihb728l0sY.XDuNErxaz5ohAHR5iLSbHUg/mXX3wsrLZ. $2y$10$fI5uTJSI0O9/V.Sy4Xy.b.ZqgPdzGVnIHhCYeTb.OegzKA7WWUCBS Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.6.13
$2y$10$fslzCJJArd62IZpaXKO49eEdsZs9NCaDL9Om/9q0jhNJ9q9DmvKxi $2y$10$5fWYcAmdP5xPbWdt6tRY.eZhXtn9nLuQbkvl2UyvZYcFvKdc/E0f. Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.6.12
$2y$10$t0SiCCHMdhslsIJWwW0eq.SA5lL0rUQDTijI6SmieVw9zAzObi3wG $2y$10$GDANilGl1wzcZ0YjtNm9me3ITBT/RltWNZiYmkXsgHNSm3K1ZX1ei Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.6.11
$2y$10$51HhGcuyBVSNAcOASYRzGuevpg8ZBOoUnpL11izY8AJIP43w.X8N6 $2y$10$HqgZnn4HeCtCdSsZNl7GCej0FsM6wxzaoiQKa.gcM8zMjO.dGzxWa Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.6.10
$2y$10$n4jRBHcmSHz1D.YdZn8vVezxW7sLO87X6.1gRkcopBloL9JjQlf/. $2y$10$1A7knkiKEPmPr295Onvgk.U9m590.Ka9iv1RAUzAMEREOyjCDie8y Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.6.9
$2y$10$23Y95CBmr68vLLoGh.5UuOR0y7f/ww5DkRQ92VOo2Vm1ikVadYnKu $2y$10$F/UzGsQgbLZQmHlb3Xl6P.3rlTjhm0sph7cSe8xUJmNRTELrYtAMK Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.6.8
$2y$10$SvCw7LLIrxM2BBvCr9y6We6gBeWePTcK.VUJLUF7UXXZeut2HWm1C $2y$10$Mf3O5RereWAA4VGLgdm9IeCh8uvdLcxj3DYTYtGdPuQ0dL9E9XSSi Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.5.35
$2y$10$SDEnZPHQzaGd4bSXooBdDeZojxhiZc279w/aEmcK1lFqhy/XEVbKe $2y$10$HQssX8po7JSYnuBZ.lYJbelCJFgot8x2y/8eEbiMKeCHowWrmGGNm Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.5.34
$2y$10$NTvX.b97wM7/FliFiidP8e2TXqmXVKThNAEEq4oWp6cvBGR2VKq8. $2y$10$Y1oN84sH7xnL/R8pe5oAxuYhqvpXd18qaDP0ThIBKYa4mjVBuDHHO Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.5.33
$2y$10$lKU9ouexuRQoqlkUGk1DSOLl6MpXqgYhz9ecdbRTqDuXNKOhdcArC $2y$10$I7mMn6kSRtXGuf2AJWZHf.b/SkjWfgD7/HC4WVAkqE7zF2ajntEq2 Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.5.32
$2y$10$JhU/Eq7WQVEqWZz4MGeXC.8wNc.dGJMxVRVvnG0RogwAzvPCI/B9O $2y$10$l3Iy.7aFRoGW9WZSq9W8VOB2Gw6uNj93CUcGn1341EUpjLUcjOhYa Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.5.31
$2y$10$Y6tRAbdJJMWYSs5rBddqTeE1YzbYXwJ60fdRdUgwehn2L0ytFo9BW $2y$10$PO2.graaDlg0w8TC5M1WD.llJ8jHy6QSaM15hggKiXa41M/HJcaKm Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.5.30
$2y$10$QyAysifcUH1Z1M4Yqg55XOwyuD1c6FJuzccv/SYfhR4.96cs6/2cC $2y$10$skeGx4K2LPPB.R534uEQ7OQd2SAnukaPfk5Kf.2a37DwXlAahhT9K Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.5.29
$2y$10$QHmPA2lwX67P.cFdziSWGeY1fn6mumhHF20ZBvA6Stg6i8P1EK1g. $2y$10$.Tn2k5whVMdPeqb4N/x4.OMtXFw8D584fiT0gHaBl2gGGDWJTTzSK Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.5.28
$2y$10$u0SCaqJCpDqmzEzRP652ZOZJayTu2hiy3ATp/xI6FPhskp2Wrm5ea $2y$10$AGB5LYmcgxPpW0WttWa0keBZh01qVIHThSqV7MTn45UFYjDIe8ORi Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.5.27
$2y$10$z4sOT5VEhYd7igcVhTFxxOgjMPxjKvGW/ZrLBfn9LQSrSYsYmjMGa $2y$10$pmFxWpFDjBN5HBvckSXv8OIkPQsmQ.f.78GfThcdA8MVUFO2/KxPK Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.5.26
$2y$10$nJyfKcB8.U1SBmOxV4Yrpu5lGw3s.JKiwzBIYCk8S0aMSwI69t4.e $2y$10$0IQOBkVAPj7MtTF15E4lAuf3GqwONT3RNpz2Mv8VqcbYOwNJ253Du Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.5.25
$2y$10$TGHqMe2/yMcVebF8yJjOB.wMGfL/SwZn2sZYnN3RHi4/CfjWuWWF. $2y$10$z9vu2L2LUbe98PVdlWDroeeyDFCYE7Bt9B1DPnT6qbR./nS269wXa Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.5.24
$2y$10$wNFnUV1NsjK9iYF7A9S55elOO4Y416JwzByvM6CwqTEh9jz.0auxK $2y$10$RrEBZZOnEUJguI4AN/BefuWMwWue5SsTNKwc0wB78jelvg10mBfey Warning: password_hash(): Provided salt is too short: 21 expecting 22 in /in/1LQBI on line 7
Output for 5.4.10 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/1LQBI on line 3
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/1LQBI on line 5
Process exited with code 255.