3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pass='test'; $hash = password_hash($pass, PASSWORD_DEFAULT); echo $hash; $hash = crypt ($pass); echo $hash; echo password_needs_rehash($hash, PASSWORD_DEFAULT); echo password_verify($pass, $hash);
based on mQS6K
Output for 7.2.0
$2y$10$1o3WDMh8f5qmF6YOZlsuauwjE75/uJMWA1XmXNj6wkESqqFkfPY1C Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$OEkY6LbS$kXYfi5rxeS0qdN6kfIgRf.11
Output for 7.1.10
$2y$10$4yiX8gX1RQHrNlABT3U6FefgS2EGYYqxHd4W5.KS1lovgxTxgrXZS Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$PLD7EViy$kqq1UMzoZmfXXLLS9NEyD011
Output for 7.1.7
$2y$10$rALzfMVC.VFwTU8/yfYNWu5tHapvl.73c5Fqe0/WK1NTHdBlKBYKm Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$K8RsfWsn$cEDadFKMrJTR5vItM75pw/11
Output for 7.1.6
$2y$10$tRMDyk5siNdTm7ma25Of8efJcJ.QPu0vyt2wdMPRHSFavgWU//mx6 Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$S43PCSRM$4UmRoTJTAOLc/ZDyot8.J011
Output for 7.1.5
$2y$10$IHRele.z1SFnUq4Prxr13u/Ba68N.JwnZHEn71R2.zLX/n1La4NJu Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$1RSgH3K4$MITaOCkIXwkPHRUqGZOB6.11
Output for 7.1.0
$2y$10$ZGByPf4WzwQ2pkDFYmAoduAFUwgZRuo3cJIzoYA3/.tVb2yYHS06. Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$PSvS0xYL$LwB543W5jwFZySYWv3SMC111
Output for 7.0.20
$2y$10$LlNOr56UD6X09j0c47CtcOMAEFbLaSmJIsM7zXxFDQhgakssYo2A. Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$2M8DO43D$ccGckgCPYxv6hDLFEN427011
Output for 7.0.6
$2y$10$.YzWZ8Vd1ZGJxNA0iWkhNORxxx80H2jxAY7NwhQKX6VmePUoneCDW Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$vu7LjhQo$vrg0F.hdlSYkZE7T8qyq6111
Output for 7.0.5
$2y$10$Xm.1HY5g1qD6F.6dcExaDuVY1Oj7IQAa9l5xmABQC0UTuv1tn2cJW Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$Xd6ilOmI$grnWKTmHhKpYQISrfrxh2011
Output for 7.0.4
$2y$10$GjoEuQWTogB7w59ySBUCy.SxJP3VPXvSLo/puFYYe1.NBh9QdrSkS Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$/PUy8JE7$fLxZKpkaRHUjLxhkcv9JU/11
Output for 7.0.3
$2y$10$2xXzDS4jgXg5lIfzqYCbDOSleV1xTJaCYyaJF/OojRyA2C1NnCVCy Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$LzbGDe.H$RzpOkFXdLgf2YPFHc13ib/11
Output for 7.0.2
$2y$10$G3UZIgLVzSbuC8ZCuZrLxuYhw.H1WK237yARztnDXuTLT6Aai5x.K Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$yHTwmgXu$WlWgFr6yUIAMtzFGlqj11.11
Output for 7.0.1
$2y$10$PzuwpetymJuskwQ55D40kOVa2X3mWUNIh0d28Tf6nNgftN1gIMh3W Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$Lzgt.UJf$MHyIzBlGaN53lCG6ssDJd/11
Output for 7.0.0
$2y$10$IlMqjTuiV6ejF4IKkY4TQuloQaI0uhdJbqD2Pk.Jc9RQXllCgOTF2 Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$K8rEXyT3$wnUEN2TjK2o1S4wt.H5Ze111
Output for 5.6.28
$2y$10$540Oa6VVGv0OYOqVst/fy.LKnM28fKnT8misUxkwdvsCidzkEQ24m Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$MqlUPnL9$XiBJFe1N5vr.zZS7Dp4dy/11
Output for 5.6.21
$2y$10$Mwcqrm0Z1hzRET9qmExrQ.5ZtMnhalQGUH.vRAXIJPbd1H0GbJxQK Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$2oo3CJss$o9rUWFlZkzA4X0AiJ18A7.11
Output for 5.6.20
$2y$10$zDbelF9SgWDJvj2/yAGvf.xBCRv015mCr3jpzbUE1GR6u/1V8fCAq Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$6h/09wIY$gQ.6sU2AzSQ1kGKqpdJ9a111
Output for 5.6.19
$2y$10$kMs9tTDGVFuey0bAND50vePVw4i.hT0kWELuIAdF/w4jD8uxb.Sy2 Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$0o6XA2kI$yCJBSmLb5GYe.eDOFgXXe011
Output for 5.6.18
$2y$10$V5eZm/e880UdFMAbdcSnMulkEXGRRNuJGiurPfm2IDLT01aUgu4he Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$K4qAraA0$GDCuRkaJRZpNw0OdI.XO3.11
Output for 5.6.17
$2y$10$asmUBQW7w/etsLA9QTjliOwPLktgwhh0Vw9PVBIF0ej/7tMahLXqi Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$pzonqqki$mZbmZHuAlqQfvsmbdd7bJ.11
Output for 5.6.16
$2y$10$hjKL0hzaC/CfRkqNdJw5LO5Q6JSxY1r3Md/yT8gmBlvQAC7UTIv1e Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$3fksDqGn$VIurPg411pH2fTnn7TvmD011
Output for 5.6.15
$2y$10$zMg2tzMYiEX8eCc64cYOTezBJ5.8fQzM5xO8sPHsV7BjZJlTIVwxO Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$Hz2eT0Sw$nDBO/vGSFAstvXjXIK/8I/11
Output for 5.6.14
$2y$10$bwKAUj/SyfuuWlJejwh1..Qb8dIXvEY7A2zQd4i1lg7to1uhFp1sC Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$bU0Ojbt.$foWkJTBmyItUrArgB7S5m.11
Output for 5.6.13
$2y$10$hwY2DwvHcy/Z4cL/vTA4BeLg3/kDl/Dp4F/KUsL//wglQvuRoXBAe Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$ImeTcmZQ$vOHO5e2VMOR4OwQYNXVQ/011
Output for 5.6.12
$2y$10$8Gup8kBhfQ4RJDXtvnJ2KOeoDn1ks0bV23/hZuWtXtlmy0sRhmPGa Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$Zl3F0JSC$e5stgcLcL4KnDOjpGBWx0111
Output for 5.6.11
$2y$10$Pl.4PU5bY7xQp.vPaVl/IOzPorV6dlmDylVB5g3s0aREIbC3kBx6K Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$ws4TF/Rr$hEqh9QWyZoJuB.QXSPDFr011
Output for 5.6.10
$2y$10$I93KsCFpNr81iV.zDuLaSORDskg5hmoHbBn.ccz3xS/Nsa4Rjmc26 Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$8D3FnxN3$tAE98m0wA7djNA/Iey4vw.11
Output for 5.6.9
$2y$10$3xOoR8QdbXHadY6TnBrZcem2MnCoBUbOcRpWDWBRz3hdTSzRu/iIe Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$Q1PuCxoy$A/EooYcj.ZUblcqm4E1p..11
Output for 5.6.8
$2y$10$8SUgPMtLGwvyKIZPez/cLOQNNcG.b0FDq0tZMrNPx0T6eLZqionei Notice: crypt(): No salt parameter was specified. You must use a randomly generated salt and a strong hash function to produce a secure hash. in /in/47mqf on line 5 $1$4KbEJXC9$/AwkqJZwmRJzoZjMupnat.11
Output for 5.5.35
$2y$10$X5eJIpk69hA3XLedzzCWjOUFeevTe1USpBxIGckeDmdYkyRkjRJle$1$yN7burRp$S5.MvWK5tyxvEwN2GJ9/A.11
Output for 5.5.34
$2y$10$c1vybSM39z/pfUR0x5y0zeQhOHvTmNgpnCv6LMs/zGgvw6.L/YWJq$1$4huAqHzi$6cuDXvOj1gxMqpcr7Linx/11
Output for 5.5.33
$2y$10$Jg4c2nxoBPVbXtdxUK8fH.lqXotHFWFSpvUhkBM4vozqMipbrkBMa$1$EZoSqYDL$BiQciEqTdyqAvEBeRZr1x/11
Output for 5.5.32
$2y$10$wY/jjE7FspZqNnxtbkUR0OuynvWX/IryodQ3RJrV9FAEhJUUDxgPu$1$UvXdOreS$l4pZWbA8Ioz6CLs7ON4A9.11
Output for 5.5.31
$2y$10$YhTfG3fn067DCrotr9xvj.x9YcAllgSOyEgPZWITQz3Nk9nihHonO$1$4NAN//zi$WuxbaLs6QAAU/yBMJyAM/011
Output for 5.5.30
$2y$10$6ntQ3bdUmSA1urQ/6Blw6OcBGnV1Bdx45lHSJQMKAvb5nzNTVA9c2$1$Fd0XLmK2$r3/cLZtzjP0QznPiV8sEn/11
Output for 5.5.29
$2y$10$IZEYN/mdndf5cPsYiHmAcO/7UEc29N9HaBy3Cd7hU.7sTySeQ6DBe$1$QKFzhzZY$GdYHnVGWVulnHlXcFqDoR/11
Output for 5.5.28
$2y$10$5UTyftdn5VrTieD/ijpEX.n1nH.RcY5jpsabBdZN16me3gWarxulO$1$vkdm169j$kbCV.Xg9qKXeo.vuH93.o111
Output for 5.5.27
$2y$10$9MPZPOiaaHx6cve0m53rUOb.hQ.v/M2ZyOUuqjusflppgAEaDNSMe$1$Y1t8PvuL$aeie3fxeh9f4nnpKRPja1/11
Output for 5.5.26
$2y$10$LHbywv2c8BAjlOuPpoMsfeyZmMIrbpxvGbhtu9pcU8drzpwVNeXdK$1$Lf0QohCE$xz1.Kwzb.Xn5iFIDiB.af011
Output for 5.5.25
$2y$10$9sSm3N.ORSPpEQn4tNKDneWWF66NIQT9UQ1dLurhcd0N30l01w/Em$1$QyNrgafW$66GIbz4jGrWbZN3OoKCy7.11
Output for 5.5.24
$2y$10$p2meUUYbLJD72I4EL2N5keNhSzvBig222Ljm7bQLAuhRLg676a48q$1$VHGq7DC2$EPGOpyLkhJuyL4jzfdfpe/11
Output for 5.3.19 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/47mqf on line 3
Process exited with code 255.