3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo password_hash('test', PASSWORD_BCRYPT); $hash = '$2y$10$H33fVQHjp5jIq4HBMNSsue177HLy5Tz6mEOPSpdC9f.CYPVZ2cJ0e'; if (password_verify('test', $hash)) { echo 'Password is valid!'; } else { echo 'Invalid password.'; } ?>
based on qHBjD
Output for 7.2.0
$2y$10$WIQbBBauOq0xvPu6Nh5aIuQpLoWq7X1iwET7s3GgJ/4roO0.KsvCSInvalid password.
Output for 7.1.10
$2y$10$3CEsyrtWgGsHgUjA0qoLN.l4ULkpN/e48subvdOoPxkBP6ONKSjJWInvalid password.
Output for 7.1.7
$2y$10$Y5DAa4RhyoT.DOHfCjC81eiA9oOpwBjBEJ0ipo/jwRJpfrtNmKH7KInvalid password.
Output for 7.1.6
$2y$10$Al1Wv/oW6LvGw4x3.e3hbeYBpLqlJ9JzCsgF6OXoLf7/rntPvjaiOInvalid password.
Output for 7.1.5
$2y$10$gutgMmS/EZ3Ss5peg0K7U.kcGcSNZ/zvs4WhDijysh0ZHBE7INfAyInvalid password.
Output for 7.1.0
$2y$10$2ykhjt25RDTW98QmoSWvSeG9h0rDTRaGV/uQoRnmQXmtyFez6V92iInvalid password.
Output for 7.0.20
$2y$10$3gbKJYdEoBcyL4IKfZPEnOl6kNZ/mqGbkPgxYg3Hq7wkzUOXvg6LCInvalid password.
Output for 7.0.6
$2y$10$LnU9xgaXNjBUgj5OgtXey.khH3OZl3ma6yJ/bJCyUE/iTMy7OEoY6Invalid password.
Output for 7.0.5
$2y$10$6HzSD2PMZvf5KR0J1Fwe1eH1u5BzrbGbnqJ85DJ6cO38kzL4en80uInvalid password.
Output for 7.0.4
$2y$10$gL4YtpN.1LkwXWWdGXzm.u/2xpRZb3OKcRFIhdyuwX3yoEqUuTFk.Invalid password.
Output for 7.0.3
$2y$10$/RhELYsas6TninAnPBNHC.DHEoV4g1.9lksyWC1mf5NX2KsAFIcS6Invalid password.
Output for 7.0.2
$2y$10$HZ7E4Tdyk7yyuuSsj5bgzOclrjVmrPj76Rm4Nmc00gRqRITFwPdYeInvalid password.
Output for 7.0.1
$2y$10$GY3Qah6lRCOJdSeyRL945.72VYSDVBaVgqJEVySXPzQvsPox7n1GuInvalid password.
Output for 7.0.0
$2y$10$0Kw.5tGXvwOsqmeVPz2vsu4Kap97Q0miUBXKFd3K7SPFlO/nPholOInvalid password.
Output for 5.6.28
$2y$10$92I4LhGBj8n/oKZMSFRq.uO5ns1yx1kIqdhZqfUjw6x8b3uGPqbC6Invalid password.
Output for 5.6.21
$2y$10$9TpuTM47ThZLfjirzClT1uoKXDRRTW6VbI9TGPOaHtaiv/QCfJG/mInvalid password.
Output for 5.6.20
$2y$10$NNw8HjllUdI7cejgb5WEQuIKfIww5Jz.2IArX4QqEnUK4U6PMpTiyInvalid password.
Output for 5.6.19
$2y$10$4D7ADclRypyZ2vwWM4zTx.1q9cqJ0wSee1ctINlH8SUSaX23nOc0OInvalid password.
Output for 5.6.18
$2y$10$R/LQOLbXyQjxXjS20l6cHeqXBdb35tlJhdYJankIBatmDG1dx9oCiInvalid password.
Output for 5.6.17
$2y$10$vGxrA9A/8fv4k/P9sTqJ7OsDwXKV36.W8/Bwp2QQ.xPx4xd/w6Wo.Invalid password.
Output for 5.6.16
$2y$10$vJ2MJjiL8db1dR.mMSPZ8.2nsb.6DLYNlsGlO66h14bjNeMQ7vqO6Invalid password.
Output for 5.6.15
$2y$10$tnzRpL2TiyWeeotMpuLmd.ut2onayviJ8aIRX5lQUFBWiSS3qKxUaInvalid password.
Output for 5.6.14
$2y$10$ayffD6l2QOn.jCbAGJBYKufalYPT/RnAHqkSqrZWtl9FFCWg4WHMuInvalid password.
Output for 5.6.13
$2y$10$xa0vnxVm2Qkx6IESQNNJN.5t.K/wY.rj6OLMBiuC2qXIble0hwIlqInvalid password.
Output for 5.6.12
$2y$10$XZiTpj9/TI1/aV362l0bcOhb1iECdS0ia93.sGMskbI5ykVrTKma6Invalid password.
Output for 5.6.11
$2y$10$VLIUTpeYUasBp9JHsbaUiOXjui35kc7yQDuv0tybyntorbTHRG3d6Invalid password.
Output for 5.6.10
$2y$10$V9eHLFWyw.vtahx8LBYvBecSt3aZXnvtGFvaTTtRdDnSARCWVWe4eInvalid password.
Output for 5.6.9
$2y$10$qu.bUIVmMY5d8DAHgMWLzuIAezM481c4NhVI1VVPQb//sSWI1oOVWInvalid password.
Output for 5.6.8
$2y$10$pqELJGXlI48D8YYT6irGBOoFi6GV8qnp9THWDUdAceqgT2l/5fh0uInvalid password.
Output for 5.5.35
$2y$10$rq30FpSYhbGfDxcYafKK7.zVcfxJY210UELmxuK3dk2EeHXfLPeaqInvalid password.
Output for 5.5.34
$2y$10$l.N2d8.E5K3KPVgtIC318O8f.cxZKqpcWs.boJ0AD4epLCHTWsYjKInvalid password.
Output for 5.5.33
$2y$10$PgyEd9MeFYNAKpAgaRvw7.yqRncdDN6DocTaav2gEONtP1dWycaaiInvalid password.
Output for 5.5.32
$2y$10$CnYXivo8OQZm2Jb5gVMLM.krVUde7SUl0egDbbpUpi/S3r5hNKh2GInvalid password.
Output for 5.5.31
$2y$10$d.cDDTb2sReP/R7Zceze7uoK0T5ogTZe4/Kf5irsRVhEYZL70zPaOInvalid password.
Output for 5.5.30
$2y$10$nfr.8UfB0kN8TqIj51jN7uCyhgupBNjzkrwIsyCIsq2Bhx2opRg3.Invalid password.
Output for 5.5.29
$2y$10$mjHtRvIuHq8ADzYRw26k4OtDD5LlUc1xOQS.qzDnM.leNVXF14EeGInvalid password.
Output for 5.5.28
$2y$10$T/Bh6gNEVkmGbDf1sLxqWui6RYQ.1MgOECrj94BSkqi9rP3sNKKuOInvalid password.
Output for 5.5.27
$2y$10$vgHS60WRYEmN6sXst6o5KewdXZSccw4mTwajKeH.paPh9XeFWTro2Invalid password.
Output for 5.5.26
$2y$10$2GnQhOkt6McM7MSScbIOiuamr7WNW558GO7C7/JT4xbtoD3WqszjGInvalid password.
Output for 5.5.25
$2y$10$gzYX7cRSlmEttcimwFmnX.9TxGte2/aX7nQX5f5/IBZ64Hv0YWKfGInvalid password.
Output for 5.5.24
$2y$10$rEO4gqaYV0TWH75/Rl9gNOovtfuIRancJf3wF../ujENWmWwiTzt6Invalid password.
Output for 5.3.19 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/6RkSO on line 2
Process exited with code 255.