3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $password = 'teste'; $hash = password_hash($password, PASSWORD_BCRYPT, array('cost' => 12)); echo $hash . '<br />'; # $2y$10$PwbhVaqzuUSl5wSdi.iCK.RBz5pQp/a.6lRdSRttY8s2qs7dn5hTq $verified = password_verify($password, $hash); var_dump($verified);
Output for 7.1.0
$2y$12$o8WZU9F2YR9aO4iLzs2VCOLIKm3PcuNv9DVBOmlQmdbK5nuRicdu2<br />bool(true)
Output for 7.0.14
$2y$12$DKwBiNkB0fJWrUAGznlqOOu0AxZDsPJgSdnI3eJMIFecXCzAYTIde<br />bool(true)
Output for 7.0.6
$2y$12$qGkZ4jEoR9G/gEfVXouooOO.XrYJwaNn9ntyFvuOTQflSuqv4fyAm<br />bool(true)
Output for 7.0.5
$2y$12$LUQxw2xrq3bkWkrR3EoyyejKSm37DDpbZgwPsq3.OeD9NkbKTJ9SS<br />bool(true)
Output for 7.0.4
$2y$12$C6PORMXTZG8MY3qP1bYLp.vWjLL7TK6mfcA5z7xwGJFLS8j7uImHO<br />bool(true)
Output for 7.0.3
$2y$12$osirF8wOXE926grmfw827uVCnv8LsmdcaBaYN/f/LVImWQP9GrhFS<br />bool(true)
Output for 7.0.2
$2y$12$vxFbMD2WlNhCP2DQ0wxtTeAab0zZKvblI.gT1AQ/zNWWGPPVGe/qq<br />bool(true)
Output for 7.0.1
$2y$12$/l3qkBCrSXB08EEYv02zLOBQCSusPYHJFJBtFySiBA2W25rS.R3dS<br />bool(true)
Output for 7.0.0
$2y$12$sNbu0SsocqFxA2sVbjdw9O5fdzr1xgNxyZ/kNcH3BgqUSrocqP.Me<br />bool(true)
Output for hhvm-3.12.0
$2y$12$1JGgnJ6.7FN1D45uX101OeAVwZaytcZGBaWPWnREbCZVg/c.hq5ra<br />bool(true)
Output for hhvm-3.10.0
$2y$12$pnYxz7e5p6pU0LByuro1aO9pfXXXCYL.GQcCohDAg30wTsw9AxWq6<br />bool(true)
Output for 5.6.28
$2y$12$rTT.kQ/5jkz3F8DHUHz84.WFGpmdQVIvYl7ykKppsPp2PhhQ5ddxy<br />bool(true)
Output for 5.6.21
$2y$12$qjkMF0Q/lBw2PacvZuZjoOKG.6/J18jpJPBKyQgLwQoSK4SxKon/G<br />bool(true)
Output for 5.6.20
$2y$12$uQhjpA6m3t.dsaJocX5BguWVblyAdNepD1ThiPyFKTBJf8z.a8yu6<br />bool(true)
Output for 5.6.19
$2y$12$3Puf4y480t7ZoT365MenN.zT7Q/BE9yslnjqgpGybIfVwh7dfYa66<br />bool(true)
Output for 5.6.18
$2y$12$zE2YP56C/5bay.kTc7XvsO8ByiLvYhJ8y1sykRXKkeAojAHlich8y<br />bool(true)
Output for 5.6.17
$2y$12$Wybfgefz65MBjciY555umuGi2Lx008PQCdMX3hnULeguUsYoCTDWq<br />bool(true)
Output for 5.6.16
$2y$12$/x6dZsePK8WTK77BAeKI1Oykyixz4ArnzepMtwhYIts0OpehcIsaq<br />bool(true)
Output for 5.6.15
$2y$12$IHzVePe1p39LuzIFtqCoaehBSu4zoITREuWXa7wCqHEBaTB53QOF.<br />bool(true)
Output for 5.6.14
$2y$12$vZlqa3jDibnXAXUDuOu9IOF8K6sJuQoZIq.9UsmC5uXhvgYgCUX4i<br />bool(true)
Output for 5.6.13
$2y$12$LsDH30hixYvBu8ZfCLpP5uLK1kFYbUQgEkXvzkej/Ar0S.2O37Q.2<br />bool(true)
Output for 5.6.12
$2y$12$hgEFnzBAINNTIoX3h0jGueApKFAVZFwS8Y4F4vWkGlNivTn9q8wQK<br />bool(true)
Output for 5.6.11
$2y$12$dXalMWRG9K8fVRt4.ZG3E.oqVgrR3pATVqVMY9NK/.Ou1BZJvT0Km<br />bool(true)
Output for 5.6.10
$2y$12$Zd1m/X8uea0RFa4T6Vc9muX1xv2natC7E07GYYzh/hAhYvesuzsL6<br />bool(true)
Output for 5.6.9
$2y$12$SjKO3jy7uzyRdeTeec3np.aXSdv2uVYvwVH1396FkJZnifeV4S29S<br />bool(true)
Output for 5.6.8
$2y$12$0aZmFsc2YAd7oAFxjilH2.mqFQypdjP2YYrG57nm1N/SEi63UP5O2<br />bool(true)
Output for 5.6.7
$2y$12$O.6PeGdFlk1HWPQ67QU5benXQTaDtf9uin5EZxflmvUbdCZqeTPua<br />bool(true)
Output for 5.5.35
$2y$12$Y9O8JHU3EQAuHI.odkpFrOV/wTotLSOHpX3CeUmUdN67jvZpoTaK2<br />bool(true)
Output for 5.5.34
$2y$12$spzU2m8UVnjS45qD47OJ7.xfyEyaAcSdg1pkhHhMbVGeYgMoeVyNq<br />bool(true)
Output for 5.5.33
$2y$12$9A5R7/0qHLHt5Q57sbdWOO67OILfib31UT7ItOwgdCuVXc4sUBkOS<br />bool(true)
Output for 5.5.32
$2y$12$oACvlFETnPo1EslylpbFhukcHm6iSw4juJ4R2ESva6C1ZftptcJJm<br />bool(true)
Output for 5.5.31
$2y$12$1mXp5JHKRj0.WzAQY4JLDOzPW19OQE9RZw42oRAVGvoyV.N1Aza/m<br />bool(true)
Output for 5.5.30
$2y$12$Jq4Xn4qOWDFdWTo7U.r79OKZaB4RxLXCR5r9mHfJzTOkYWN06pAEy<br />bool(true)
Output for 5.5.29
$2y$12$emnXnEVdY3h2uJ.XVG0DW.56fjmB6bNVqJ/R8WFATZaD1n4JdE5Z6<br />bool(true)
Output for 5.5.28
$2y$12$Y/3Swulxj0pA4NZzfm04cuRrylROXuvnVulHpAt6xQ3gClu6F/uTS<br />bool(true)
Output for 5.5.27
$2y$12$OaAePRr8sl3w7gIfzyk11.tyZjJBEGHBTywzWpYMJW4DH2PsF8lNa<br />bool(true)
Output for 5.5.26
$2y$12$L.67G0Tm/r3uUsusckUKK.dnCb9.1boFHtg.skb/HJkJimZoyIt7e<br />bool(true)
Output for 5.5.25
$2y$12$FkZyaMStfJPlQfwaRwYH/eFMasb57/JpkwmE7xLRSXtl7ZyEC/m2C<br />bool(true)
Output for 5.5.24
$2y$12$UzOTRwv05BQsXUjNunyJr.MNYAIp5RpuHJ/O9uicrAUueyNtlKCIW<br />bool(true)
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/KPsDB 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/KPsDB 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/KPsDB 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/KPsDB on line 3