3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /** * Created by PhpStorm. * User: efik * Date: 30.06.15 * Time: 12:04 */ $bs = []; $haslo = "Badass"; $hash = password_hash($haslo, PASSWORD_BCRYPT); $verify = password_verify($haslo, $hash); // zle haslo ale ten sam hash $haslo2 = "Badas"; $hash2 = password_hash($haslo2, PASSWORD_BCRYPT); $verif2 = password_verify($haslo2, $hash); $bs[0] = [ "haslo" => $haslo, "hash" => $hash, "verify" => $verify ]; $bs[1] = [ "haslo" => $haslo2, "hash" => $hash, "verify" => $verif2 ]; print_r($bs);
based on CNg5T
Output for 7.2.0
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$/H/rvtSnYkYO0oOhQDesoOp5w0d1NKsNsqdDiybdcAP59V78ff4WS [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$/H/rvtSnYkYO0oOhQDesoOp5w0d1NKsNsqdDiybdcAP59V78ff4WS [verify] => ) )
Output for 7.1.10
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$S6tIK5BQvXSYLgl1PDj1oOmTNwXdrgSynA8b/olPl.VjsYZuB9X8m [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$S6tIK5BQvXSYLgl1PDj1oOmTNwXdrgSynA8b/olPl.VjsYZuB9X8m [verify] => ) )
Output for 7.1.7
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$/0HnkySwF0ruRU9j3sMMA.zurCUGyIWQuKspkRgFOIlSXXDXDuL92 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$/0HnkySwF0ruRU9j3sMMA.zurCUGyIWQuKspkRgFOIlSXXDXDuL92 [verify] => ) )
Output for 7.1.6
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$C..cfL4fR.shQ4alsFNTxegdgfxjExOI/Jty3DVWkVPR0jb90O2x2 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$C..cfL4fR.shQ4alsFNTxegdgfxjExOI/Jty3DVWkVPR0jb90O2x2 [verify] => ) )
Output for 7.1.5
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$5AQZ37lTilHhOyTWz10UwuYbfqTpdcXvendMds/psoNxUfUPsv/w2 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$5AQZ37lTilHhOyTWz10UwuYbfqTpdcXvendMds/psoNxUfUPsv/w2 [verify] => ) )
Output for 7.1.0
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$uM8jfT9SH3Apj0IUPOQ04eCBlFBzqarXhtfphK8tbABshrlsNmF5i [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$uM8jfT9SH3Apj0IUPOQ04eCBlFBzqarXhtfphK8tbABshrlsNmF5i [verify] => ) )
Output for 7.0.20
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$KRaiUn7Bvph.q2JejOjeoeVzk7J1A8zEc4vkE1WYZSN/3QFXg/O8e [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$KRaiUn7Bvph.q2JejOjeoeVzk7J1A8zEc4vkE1WYZSN/3QFXg/O8e [verify] => ) )
Output for 7.0.6
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$y1rxsRZfUT/g7AYE.hfny.hPuEgH5Mnicbdo0Ry7/nj196.UeVYIG [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$y1rxsRZfUT/g7AYE.hfny.hPuEgH5Mnicbdo0Ry7/nj196.UeVYIG [verify] => ) )
Output for 7.0.5
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$rpZRKYZOWA2IigbTXNZKme2NuzRyCbVO3Zi4yYkQh/M.goCjxpPOS [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$rpZRKYZOWA2IigbTXNZKme2NuzRyCbVO3Zi4yYkQh/M.goCjxpPOS [verify] => ) )
Output for 7.0.4
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$HxUvKCdH8x0w/IZ4V09i0u2Yp9wD/QjGnYBmq4lQMY.TIwFc5xAaW [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$HxUvKCdH8x0w/IZ4V09i0u2Yp9wD/QjGnYBmq4lQMY.TIwFc5xAaW [verify] => ) )
Output for 7.0.3
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$n1Ea8t5uCwoZzHbysG2vbuMWwOSx.lUaFXsB5XDZg7AhcW3dpTopa [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$n1Ea8t5uCwoZzHbysG2vbuMWwOSx.lUaFXsB5XDZg7AhcW3dpTopa [verify] => ) )
Output for 7.0.2
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$hctmr7qeP3j/uGFX7C.FNulqb/qWfECdXcpiL..uv8Rq/VjFRgurO [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$hctmr7qeP3j/uGFX7C.FNulqb/qWfECdXcpiL..uv8Rq/VjFRgurO [verify] => ) )
Output for 7.0.1
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$2ICXDQDT.vWWx4P7RIygiOY/QRSsJPO3b.7Qhecpv3RN/IaZvHLHy [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$2ICXDQDT.vWWx4P7RIygiOY/QRSsJPO3b.7Qhecpv3RN/IaZvHLHy [verify] => ) )
Output for 7.0.0
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$87dLq2xHTyf1hbcSs3wkOOPcEGfdAgAQ37LXJIzQqhhURqJy9wNuK [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$87dLq2xHTyf1hbcSs3wkOOPcEGfdAgAQ37LXJIzQqhhURqJy9wNuK [verify] => ) )
Output for 5.6.28
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$6j3.W6wd01vjKLsBcm6QQ.rzfHSV/Uj55xRf4YAKZGOktsYjqyTF. [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$6j3.W6wd01vjKLsBcm6QQ.rzfHSV/Uj55xRf4YAKZGOktsYjqyTF. [verify] => ) )
Output for 5.6.21
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$.N9RVWjalzGYXqy24C3.8uADYG3XD.tUHpXUkbaSXVBPd/Iy4.rai [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$.N9RVWjalzGYXqy24C3.8uADYG3XD.tUHpXUkbaSXVBPd/Iy4.rai [verify] => ) )
Output for 5.6.20
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$jxpSY5e9hxLjPF3Gx62rOOH5w.5LLpL5DDtSrFtIhFaQI221VVvWW [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$jxpSY5e9hxLjPF3Gx62rOOH5w.5LLpL5DDtSrFtIhFaQI221VVvWW [verify] => ) )
Output for 5.6.19
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$ojwif6wAjUVacc12WRQwj.zh2YIGaTGXtbyF4p7czDU/7xu8.NJoi [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$ojwif6wAjUVacc12WRQwj.zh2YIGaTGXtbyF4p7czDU/7xu8.NJoi [verify] => ) )
Output for 5.6.18
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$uY1.wazhoUbzM3vBV4DdOeLh6DKc1kuG1ar5yBYmeE0ryKEFQj6A2 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$uY1.wazhoUbzM3vBV4DdOeLh6DKc1kuG1ar5yBYmeE0ryKEFQj6A2 [verify] => ) )
Output for 5.6.17
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$Bt6KuP3.ncp34DdyPkSmweefM/Y8rniXE5nsBzbvedbmV3bmHr/KS [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$Bt6KuP3.ncp34DdyPkSmweefM/Y8rniXE5nsBzbvedbmV3bmHr/KS [verify] => ) )
Output for 5.6.16
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$ClJl62URbeb.t9AuYh2Wx.ZrR.FudA.tWIbQypLSxk9LSaJtmPHBa [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$ClJl62URbeb.t9AuYh2Wx.ZrR.FudA.tWIbQypLSxk9LSaJtmPHBa [verify] => ) )
Output for 5.6.15
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$EXIVpwLTTpjBlqUApIm.YulkQSGAXNlDChdWwzjutQJLOxEupqjKW [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$EXIVpwLTTpjBlqUApIm.YulkQSGAXNlDChdWwzjutQJLOxEupqjKW [verify] => ) )
Output for 5.6.14
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$VYrEvlcUwIiOaByFmDH/f.9.S.K5eLjIb.gaAIj5gTx0PMPA8cGLq [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$VYrEvlcUwIiOaByFmDH/f.9.S.K5eLjIb.gaAIj5gTx0PMPA8cGLq [verify] => ) )
Output for 5.6.13
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$O7/0dUiPpVwwcGXKC4X33O.gjaEoOL/t.iSsUi2JRAA49SvOg9W2m [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$O7/0dUiPpVwwcGXKC4X33O.gjaEoOL/t.iSsUi2JRAA49SvOg9W2m [verify] => ) )
Output for 5.6.12
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$CKvv2j14U9.KxnmYLNQJgOJT2Yk03kaq8n9piPw4almNeUeMW34fG [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$CKvv2j14U9.KxnmYLNQJgOJT2Yk03kaq8n9piPw4almNeUeMW34fG [verify] => ) )
Output for 5.6.11
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$uNEHYLQ7O/CnagJB98oA/eOUSnHol4/J24aCFsODsG8WQSMZoumQe [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$uNEHYLQ7O/CnagJB98oA/eOUSnHol4/J24aCFsODsG8WQSMZoumQe [verify] => ) )
Output for 5.6.10
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$BdAESzvQRgK7pIMoAKQWoOuce4DDl.ktd.aPuWosEmanMdWhSuV5S [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$BdAESzvQRgK7pIMoAKQWoOuce4DDl.ktd.aPuWosEmanMdWhSuV5S [verify] => ) )
Output for 5.6.9
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$yec1.ykmnYO3.6QKypnxA.4tZ5r3Tx/O8.wvznNHgaASlKE1es8Um [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$yec1.ykmnYO3.6QKypnxA.4tZ5r3Tx/O8.wvznNHgaASlKE1es8Um [verify] => ) )
Output for 5.6.8
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$pAoo9oDb3DESxBSc2sI5I.r4/euK9aBwonQ878OFRSAHhBQU/.f9G [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$pAoo9oDb3DESxBSc2sI5I.r4/euK9aBwonQ878OFRSAHhBQU/.f9G [verify] => ) )
Output for 5.5.35
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$Pwfq0RyzIbl5/aYkBVmS/.v5oZuRFX66.x3h0je.ndmbgZIxqH3Ky [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$Pwfq0RyzIbl5/aYkBVmS/.v5oZuRFX66.x3h0je.ndmbgZIxqH3Ky [verify] => ) )
Output for 5.5.34
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$C.XuaW66jfu8jlseTyjAieW6UHORZk5Lw58gZeGI1lhWh6WY7FnYO [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$C.XuaW66jfu8jlseTyjAieW6UHORZk5Lw58gZeGI1lhWh6WY7FnYO [verify] => ) )
Output for 5.5.33
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$e8zIMsTwAyCRnDDWSFy/C.RG9MmcEcbRTF9RDF9lBIMf2NQHDleG2 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$e8zIMsTwAyCRnDDWSFy/C.RG9MmcEcbRTF9RDF9lBIMf2NQHDleG2 [verify] => ) )
Output for 5.5.32
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$K2X7AY0AOE1P534mmrUHn.VDpZSU1yU0NTnXaN7Ry/SyuTGTIp332 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$K2X7AY0AOE1P534mmrUHn.VDpZSU1yU0NTnXaN7Ry/SyuTGTIp332 [verify] => ) )
Output for 5.5.31
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$JJGxw8ZpBoKMcwP.UnA40.d3nVWoL.lVfWptxs7EfGodOHJ8DzZ5C [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$JJGxw8ZpBoKMcwP.UnA40.d3nVWoL.lVfWptxs7EfGodOHJ8DzZ5C [verify] => ) )
Output for 5.5.30
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$sy4.RNgwG5XtI7AGI1ug6eh9DgdXJtbIorN.RnYNTdv3RXiggoA/y [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$sy4.RNgwG5XtI7AGI1ug6eh9DgdXJtbIorN.RnYNTdv3RXiggoA/y [verify] => ) )
Output for 5.5.29
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$Z8HIk/3T5WAXUCOe0k4Cf.tNlpn98ZFSijLv0nRjg/yhTexn.9Rs. [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$Z8HIk/3T5WAXUCOe0k4Cf.tNlpn98ZFSijLv0nRjg/yhTexn.9Rs. [verify] => ) )
Output for 5.5.28
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$2ZyEO5o.rpd36LKjJWgmGOjcEctDz7qKR.whhPYFBoOxw//9gqFju [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$2ZyEO5o.rpd36LKjJWgmGOjcEctDz7qKR.whhPYFBoOxw//9gqFju [verify] => ) )
Output for 5.5.27
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$6jeRZfBc4hOQFKtRbJtpeufdm53tUfYHU5nDNTbjAmr56KM5o4Au. [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$6jeRZfBc4hOQFKtRbJtpeufdm53tUfYHU5nDNTbjAmr56KM5o4Au. [verify] => ) )
Output for 5.5.26
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$eiMh7aalCyUglQKyFqoV6ecoDYD1Obl2axd8phD6myWliXtWCVag. [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$eiMh7aalCyUglQKyFqoV6ecoDYD1Obl2axd8phD6myWliXtWCVag. [verify] => ) )
Output for 5.5.25
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$nAwa2nBPpOKO/jhRSi8fsungLpKdDPrMsMSuhv41.tsuGMV0NfXMy [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$nAwa2nBPpOKO/jhRSi8fsungLpKdDPrMsMSuhv41.tsuGMV0NfXMy [verify] => ) )
Output for 5.5.24
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$QpW967Y0b02y9m8./vk/W.NH0Y5h.LNPoJ3hdnZlxO.lNeuN5GQI. [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$QpW967Y0b02y9m8./vk/W.NH0Y5h.LNPoJ3hdnZlxO.lNeuN5GQI. [verify] => ) )
Output for 5.4.2 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/5hoDi on line 10
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/5hoDi on line 8
Process exited with code 255.