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 . "\r\n"; # $2y$10$PwbhVaqzuUSl5wSdi.iCK.RBz5pQp/a.6lRdSRttY8s2qs7dn5hTq $verified = password_verify($password, $hash); var_dump($verified);
Output for 7.1.0
$2y$12$Jy/RWhB3DYld3VdU8ycKxOG6nGkJLg3J0VujIXve9IGcgxYaUvh.m bool(true)
Output for 7.0.14
$2y$12$fmWAjDeLpVo1Av5dZHG.jurgjlxPERkY6XNOeFzrvNHCnGqXs/EMu bool(true)
Output for 7.0.6
$2y$12$BS5w1Yf1xylGTrf.rEr4v.OXdNsVloX2qabLG11ed8xXMlubwWEaq bool(true)
Output for 7.0.5
$2y$12$LDjV70uUBkBT/MSVTgpI1OwMNTRIObr5IF6XxoHZDTX29MsRJQHR. bool(true)
Output for 7.0.4
$2y$12$bvuxgekO5XWieJgHgnnoauq4tP07s1b1Y3DgFVoebZrozaUs.Q6Qq bool(true)
Output for 7.0.3
$2y$12$5UF1D/v/m0mvxZq0S5gTAuHQfvaFX9CDM1DeV8uKwek3Z4jOGJl3G bool(true)
Output for 7.0.2
$2y$12$pTwZE/E0XsC8ZbT5QxrOMOMaVF.VM44St7jHpM7TSr1vSwcYmgu2G bool(true)
Output for 7.0.1
$2y$12$4//W4K66ZAmOQ1rNnWDwEOKsQExrybny0xlcQ3QPkBzOBN/Y1y41q bool(true)
Output for 7.0.0
$2y$12$KSiv1e.PcPvdUQOR1i68weSYWV/rXGX6KR1PZA5ZG719Y/7uM45/y bool(true)
Output for hhvm-3.12.0
$2y$12$9QtEjOzpXYdyaq6jV7MMqeRGRZJESyNCIocfnP2TChnuREHbfKQGi bool(true)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
$2y$12$nWMmNQUa0Fqh7PJdd8waJ.Q6eL9tiCEk1A19oXy/HpdT/Yx3kT9dC bool(true)
Output for 5.6.21
$2y$12$Pd4XUMeRsRekXQt8MeHWM.VyHVNppnMQpi1S7H6vNYbhSBnfhSnda bool(true)
Output for 5.6.20
$2y$12$NWjPVnHduYZb69TherafKOjzKYmyR9tSiM.XFTun8JnaWqHe9yjo. bool(true)
Output for 5.6.19
$2y$12$C0J5vkKuE8JhMFVL6UQPau6rsDanpKFcfCs.ldmmasfatfzXVSNIS bool(true)
Output for 5.6.18
$2y$12$Vo7bAszRlSaeGwxVnzUMQuRRmBNcMzFZYraqHcwJFG69GMbIeMeqq bool(true)
Output for 5.6.17
$2y$12$6OViaWiSAV6dFkMOh1gFuOoC7MwVEXByD4ok/UKFPBXH1WDaifW42 bool(true)
Output for 5.6.16
$2y$12$.0emRBcJZ/uG7IW0A7tvKOz9YOkTDzJJTDiV/AVEc8dfkdKfth20i bool(true)
Output for 5.6.15
$2y$12$e7sjip7lgo61loAj0h.ECO6Ebgv4cyAqmQFhq97X3WsVAIuyIgima bool(true)
Output for 5.6.14
$2y$12$8A4e5JLVksGA5iieY.d3VuyK8dMZc4VtZWVwtF0byhanoiBEXgy2. bool(true)
Output for 5.6.13
$2y$12$uBhSqqvSTaAx0pLK6m8Plew.kj//LXKBgDXQQKKLv/YXkA1m9bDJ6 bool(true)
Output for 5.6.12
$2y$12$MS8Y7witNE53ImxjS6kL.e7j3/NcXt9l0U4AchXQdd5YNwbhelPkq bool(true)
Output for 5.6.11
$2y$12$vWf3wr8EU7L9qHXO3suQROquVf7vLB03P8SypMiKsvH8ce9vNEKVC bool(true)
Output for 5.6.10
$2y$12$5IniT7TGsxfim7WcCJcXwO/TZWXAnm9dExoCwvSx0tF.wMOEzGv2K bool(true)
Output for 5.6.9
$2y$12$SgyJOJiH2Da9NtE2z9RXxeKWFn.tBx8.htckDIa0Sc1Nh83oA9qhC bool(true)
Output for 5.6.8
$2y$12$HHNVvd38eg.6eHZKzCxsduNO3SVp5SsVuvdDGPuvKmqF/61.xL8Ge bool(true)
Output for 5.5.35
$2y$12$01yssQpSocokv8UBGdNTEeFuMcZHxMzd9SwERcfXJ9DWfVXLUuyu6 bool(true)
Output for 5.5.34
$2y$12$zCKw0akkXlR72M9wxzgSrefKgx754uC1VTttqlh7aO1nJQbIix1iG bool(true)
Output for 5.5.33
$2y$12$6k07bJCa0xoY5UaodMooeegBTiY12SEmF/nloBvqfBWOtJQaFlB7O bool(true)
Output for 5.5.32
$2y$12$bbGAjI.RB5lAGQ1pDQ.yBO/gsLnI7CCRmsDDNuW2zSwvH39zY3sZO bool(true)
Output for 5.5.31
$2y$12$UDG69r4/uhMd/JMED20XLuTKoucFCzluNPc11OAmLfq25xsCQlkWG bool(true)
Output for 5.5.30
$2y$12$Wjhqp7xXzilokazgrePXQe0cvmq/gwk6qgOTrFm2FfYYEIyTYJtcK bool(true)
Output for 5.5.29
$2y$12$x87hxlbqoMGHm4cmidJ7NOMrG5BiRPAdho.KMCSRMW5KSSdTBtnp. bool(true)
Output for 5.5.28
$2y$12$FqhBZePvitxcWHb2IOvXtus6RwhAp0u1g99fWGqIBEkuPT66I7Vie bool(true)
Output for 5.5.27
$2y$12$9qUTIwmiYXKk.ZFpANgWNO.rA6Uc9OeaVx4Qv0R5v5ZbV2T30Rt02 bool(true)
Output for 5.5.26
$2y$12$Ruj8P91UXhgUqNSl3qSJs.5U0KnWT5E1XCSt9E91jbnRm6dbCB7TK bool(true)
Output for 5.5.25
$2y$12$eLYGhEY.g0w20J5FC.7Mq.o4XwTfi8ZMy5pg1Or/HFaKDVPAzm2gu bool(true)
Output for 5.5.24
$2y$12$3jtkyFrlEiwaGNghcgts.OOFmOUs2s0NIFycnBotTUNjI9PXgZY.a bool(true)
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/dM26M 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/dM26M 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/dM26M 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/dM26M on line 3