3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo password_hash("somepassword", PASSWORD_DEFAULT); $hash = '$2y$10$f.iC/tadtwSws25fW2zRg./.xlY.mRK82Ys9M4acbPU/b614vA1vy'; // copy-pasted the hash if (password_verify('somepassword', $hash)) { echo 'The password is valid!'; } else { echo 'The password is not valid'; }
based on b0hn3
Output for 7.4.0
$2y$10$ZC3J0HK9SBWLe8D7HtXxV.Ar98OB658TrRFVMUOIHF/LLN/jAEnMiThe password is valid!
Output for 7.3.12
$2y$10$d1vMuyD9hDDf8bIzqO.rZukrSNsfwd.HS7yWJatErCfBLkOhO1fFqThe password is valid!
Output for 7.3.11
$2y$10$OYab/c6bzBftqnL/YhS48OTN.CJVpXLCZOuUJRWZ3HHFnGP9L88riThe password is valid!
Output for 7.3.10
$2y$10$FQFe1Y5RfPHGKrApf4/AQetITLvIc3KuRaxVxugDOJdSE1xIW.Xd.The password is valid!
Output for 7.3.9
$2y$10$0sGLROFLHmO8m8KZMkAgse90DllhalyzN5FTxzTEBHHwWa2rA7IpqThe password is valid!
Output for 7.3.8
$2y$10$FSxBVvNJyWg8U8PsXmCSrOri5xVIruHP0AonbgSTtWFCHOoyzoXceThe password is valid!
Output for 7.3.7
$2y$10$DFRUFy11Dd3O8oHfYbejd.vO6Sh/LeovWEci5RTl4nMFHmZWMQP5SThe password is valid!
Output for 7.3.6
$2y$10$8PBsbJCWgHmi5geQleA7d.5l6eGdWkNo1ABvqFRQb3FBJU.LCrEVOThe password is valid!
Output for 7.3.5
$2y$10$HqugLuQdH4uMqVxR3Tbf3ePqXscP3kJt.iVUn.YjOnX2/8xP5JVFiThe password is valid!
Output for 7.3.4
$2y$10$MKBF2XcmXKaMttiI7DW0k.uZgcWgXmRNHwHIaFaLum08ghsRVALPqThe password is valid!
Output for 7.3.3
$2y$10$HOon7ScQB7KRdq50a0qniO58Onja1WrZy77E9ppMi5oPrAOqBgJHCThe password is valid!
Output for 7.3.2
$2y$10$tpEQjKf0kVyA.GtzwNnZnOJTu7k014xQ.1Jek0czaSG//S9o.hPbmThe password is valid!
Output for 7.3.1
$2y$10$EBzRCSNG2S4KCs8szPtpBuAB.g41sjlXKQYjf9S8eQzFD0pLYbYgKThe password is valid!
Output for 7.3.0
$2y$10$49df.yI.EyU8XnlFRgGjAu7HyY5ptOIFq5ASGTXXg/1TRi.LwTNbSThe password is valid!
Output for 7.2.25
$2y$10$1n78kJ32u430iieA/xknXuRG/M9ton8h47s/1Zkt3Rm4542fXwR86The password is valid!
Output for 7.2.24
$2y$10$crYiTPDmG/jYyAnYL4T5TuKQ0i1WpXZMIy0D0d4nC79NdQi2fhgZOThe password is valid!
Output for 7.2.23
$2y$10$2/0DWmWyxEqUMpG3hJUcKOCcWNYoDuGId7kzP.tAwCSCv6aQ/KmHeThe password is valid!
Output for 7.2.22
$2y$10$IdqRiiJx8wloV5v5o3DZ5u0cEqp23p57qDGGBCd/xFnNcEtIcG0tCThe password is valid!
Output for 7.2.21
$2y$10$cShixmpSnYQyEq6MIMyUVep9SyBJaTfrcjkNyFjcYvSJq0.hxVHb6The password is valid!
Output for 7.2.20
$2y$10$Fq9PXTP.0It.qvaCNE0NQeZbxBrwUIj1Bf4OIcWT.ufvKoPdnQrRyThe password is valid!
Output for 7.2.19
$2y$10$OfQChbrGNmYy9oPsK4v0auqITugLNSxmN81p7yl3xP7vfjzruYjP2The password is valid!
Output for 7.2.18
$2y$10$1XwEr6V7BRypNMZs0Bpb7e7OQ52DjQ8/gmBikoUPbia/a0xY9HGQWThe password is valid!
Output for 7.2.17
$2y$10$pYDosDqM8bgLFyv6KwpfQeDzAajZvGKMgunHb8i/2He5YxWwQcd6iThe password is valid!
Output for 7.1.33
$2y$10$eqRF.PycMIKiKaoVnlk.cOdTYjxw68dDEZYNR8nTEbbaQZXYwGDpKThe password is valid!
Output for 7.1.32
$2y$10$VXvSktDbXACAFpgbHTR/Z.vi.YOW.SHvQ.V5oxygjvQzTizrlmDliThe password is valid!
Output for 7.1.31
$2y$10$OzY7QtmACHe2JNnRe4hucOe3z7RkMiymWlRknvoZYjQOpGSbCfUT6The password is valid!
Output for 7.1.30
$2y$10$iRUIVcwqQ.aOR9yNo5qlye6aPN8HxrsRxR3qhpBaMa3xOBK64RPSmThe password is valid!
Output for 7.1.29
$2y$10$tv9sMm0girPgWrfPrMPmWuGFtxLuRuNtVUTKC2J7qXhBG//3r8zHCThe password is valid!
Output for 7.1.28
$2y$10$vTwxAZAz2IPf8eKzMPduFunn8vGt8IModzvMkTlvU.oGFXN0ATEWSThe password is valid!
Output for 7.1.27
$2y$10$f634zgZyG.JxSRU9KUFSneSa29HX3a0SmhN5SQXicxzoIn5SRnucmThe password is valid!
Output for 7.1.26
$2y$10$Za9L2GaI7SxWyJpL5IRX5eN02hVmPYF2mwYmBGKYeXzOkyp4feotCThe password is valid!