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" => $hash2, "verify" => $verif2 ]; print_r($bs);
based on 5hoDi
Output for 7.2.0
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$MFmYnH8Dpq8od7/M5BNIEe3zB1OHklgdRbhwfxyPqmNrkZOA7koye [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$7d04ZRkwgvEHAxat7DRUG.2SU0qkiRs7EylAWeUDC8ak0sT37975m [verify] => ) )
Output for 7.1.10
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$yVvkaMuZac.2NR62gPUZreB6l5DYTsq.R.HTZJOj3ZwfIrIySSGBC [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$7JG.WRyC7HkkU7bgPA2UQOAD./UgttnGlwNOEKdBBQfnzbkW6xo56 [verify] => ) )
Output for 7.1.7
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$M4nVZo.PK/.jqF4GPORYIeRiFwWM4qwGgKCVDyhUMobr9S6zJQJTu [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$Q6UlbML5hl4IGCch3W/irOkHJGntz2/Y/xKDh5QUVFdW3pFuVLZPy [verify] => ) )
Output for 7.1.6
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$DPgUbD6DEb/8B9J5S2Gqs.eNNFnZBWt9bFkiTAlDyoUQTzy6xhzh2 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$9Myx6/uU4D68mq8av32DkO7iH3mAifDQl99/hknZYi.NEvBFNFlhC [verify] => ) )
Output for 7.1.5
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$EXsdBLn6WGBrjwVCCWOLeOmfaf3BORSJeh62nr2B1YQ3yu9QZWKju [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$jCDQZ0bHLnG./8gF5BspEe4rXHp7rJFs57Sl5DPTEV5q.0b7ngdMO [verify] => ) )
Output for 7.1.0
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$4xCowd0Uou4/l63W5WPP7eQ2HsawotHT5MNW9RkLAdpiucDCxTGZ6 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$fuK2sJ6vR/LPTfw4y1RT.uu6YfhJRPcz.4zvYJeMd9Ept1nTb09sa [verify] => ) )
Output for 7.0.20
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$gKQ.Y9pQrobSCkY.eW4LUunzxcRX2cvyah577Rbf8nP331f7/.j22 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$nlc6CJ8NDZegfxLzJ.1nKuOoBZ06lI38621K.0xT55BByyCGuL21G [verify] => ) )
Output for 7.0.6
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$Ie9JFvAZmYFZbPNWiFHKLeAXbwkZgJ2hGaVbW5gP9viLP1Fyw9epa [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$nvE9xt/dT5wu.KBzYkHfU.4tYwZh3PF8vXwFSD9l/7pGZzdunfgEK [verify] => ) )
Output for 7.0.5
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$BXYFwB/Q/SdjYQqPPo5h6.p7iDGVVl2BiQYgQP6WdPbuqubgYuxP2 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$OsyH7EPpvsiebl2vcAXgV.wO23nM5Z1.luEFVEqXPZx7lvSnRkhKG [verify] => ) )
Output for 7.0.4
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$ErtcpCJhtnQZrdPjIhKJSubMCoj33lbLsOyD9wmd4xY5Kxg/l37VG [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$wWOIWyMM1C/SahfPunHyie4Mhryb5290ZkYK3ldLDfNM7S4XtOIbe [verify] => ) )
Output for 7.0.3
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$I1BWNeOrD1x1Y3ocL/glxOQbNYLnG1XHQR39WlZAH8gS9U72cF6Ga [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$mQGxBTjN8dCIvCwPRfW9n.q0ZF3YwQ8fnlJZibq9m.i42CHQg5byO [verify] => ) )
Output for 7.0.2
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$J6SeYY04N.o03M7iSlBchOWbW2BukkIVE2dxdaGJsD6JViet.RXZu [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$e7.cQExCYo36KWibiizeFOX1S0KHtZZA0h1oqWYExL7fI9b.b5wDS [verify] => ) )
Output for 7.0.1
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$jR0qebZbDKFWlujilPzHT.p7NJNEs0QbrTeXEFM6yn3bkedd3QP0G [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$xa1QQgantqxviTIfhx7Kj.KNHv57vh7AKCQIQ05.pzRj3ywWoDTbC [verify] => ) )
Output for 7.0.0
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$UxybXIUp.GWux8kCBZ228uYhsJJ2tbDFgbZvJBLFKi5bQg3NAH.GC [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$IQtAv3N8XCX/0vLjwRM9cuqK.8ZXD0kJXIDOgkSxquQd.zITX77DO [verify] => ) )
Output for 5.6.28
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$/0aVopi2oTyjk8hNEY.XiuSllFMw8UxCJsyVUjyyUxLOtmUex/g/2 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$deyivoGtRbkS4s84oATzMebt4P.qDpzaGt32FSdAP5HHxgWzwXZx. [verify] => ) )
Output for 5.6.21
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$2RDtzfo6artxD2SnWEarLeHGEibyiheSWniHQM/IsguXJfaKRPrme [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$oiD6MJkOTW979wZi4NQWV.bnPFrzyzC2t71FuEy0Z5QMdsC2xw.Wq [verify] => ) )
Output for 5.6.20
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$Xb6w1PGvzqJBcDxnyRK.xOBfvjCsRvimk0DY78P8LZTwshe21qIGO [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$9qK46IIZRlOxqmkYy9abeOuvfppnJeNQTe32aIDv9UMQC4cdbBXFa [verify] => ) )
Output for 5.6.19
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$gQwVkwVPq1eN4lLI.WYmhO1mR9QezKrmwa9VdShUPMBZXXjbqF.7e [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$K9ehgGBcFY9YZhi4cWW4QelQ7gMeMl8vMTPuVi3MYNPiApMcnL6Cq [verify] => ) )
Output for 5.6.18
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$BuzjT4u9wJlQoTk3FrdXWOCpGjiK.OgaT2HSZeURLDEUQKaWc6zN6 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$z4V0W3RI4lrHEvo21YHxLuaCyvNdAAFsjKlicupBOmFAqUEXIA67i [verify] => ) )
Output for 5.6.17
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$XpQWNgQMDmk3veSnG2JfielVyFRsWDPQgJXfdJSgtxx5joGQNGC2W [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$prRmodZH5G3yioSuVuR5reB3GZ/NRAez71vyzZk4Yq3uf1JeU.UU2 [verify] => ) )
Output for 5.6.16
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$laaE33K0m5BsBH7DsDTp6eTyGq831N60eiy9TrUka8IRMzDUrTHu6 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$0A7L28fnASct.vYWSmt3GuxWU2TSet./o2EzB4EfAyW80SoCjuCrO [verify] => ) )
Output for 5.6.15
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$E1jICaSy5w1Jod2qfX0UOucLhZ4NT7eoYCbziK.Sm.eig.lEArQbu [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$MyRfqjPAR3l4f3KpOSET/.pvWr7uaLG8HRfn9Ra.x5SS0Y52xUbXy [verify] => ) )
Output for 5.6.14
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$eFMa2yyiy5sygbozvEcVku5ozdTdO63CnMMJeWk6QxCuT42Mcatvy [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$4bnyV87o.xYix1K6t5UX0Oo05DhOpeF3E1TFjaiNk7W7ZgTXE0XwS [verify] => ) )
Output for 5.6.13
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$IlHL6zSz/wfMcXdoaOPSDeEqH1exuvRVjgfMGEimpVXao.SPjHwRS [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$y8MvDx9/g37OBRGTZcLYZueyJKL8KEIR4XnS0fzCHx.mMaZkWdVki [verify] => ) )
Output for 5.6.12
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$hpzXZuEmvzIaPo/zTyvU9.pOX6n4.FaGfxU8F8ictUiJep3T86iaW [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$kO3h4U0bgO1vnkBPWiivLOVT1FUlhXfILrEq5XP/RDi1BVVrW3jLO [verify] => ) )
Output for 5.6.11
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$gfjO9pQwuGw9ca42i.ZOteKAMesr83BepFwjVOsjZg2VbfmQyTWgu [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$qDtUAX4WpWg9h0rFrwoHeuIFk81eGJg3g8lhStOoVFOdfQQuDq7bu [verify] => ) )
Output for 5.6.10
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$kyzBr6UQLJtj1P/mT4aoZOPgpRPnO.rxM7/FggVRdsUsMkAfsqGE2 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$EvAgVJWxg4puuarbqr6.9uRaul3SKCChwRN227yh0jSEj6f1nF9Nm [verify] => ) )
Output for 5.6.9
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$IfsgQu7gfZB.3ftcKC4lE.gFo47GCChkjHTqXeIjKLa/SdH9Cr./. [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$kCzHdJ0mR00vctsKcq2bbeeOFtGA9R/BI7pSYDSH3Y1uAlmWaMfbW [verify] => ) )
Output for 5.6.8
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$MUWCFwH0/g5Xj7VPrAYVoOhNO./G4b6HRGAYqu/5rNocr9E73Dypy [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$Degp5sMkzPSsBHwl14uWqulkHifJJDF4qfyKWT.LijXHeyrxiA82K [verify] => ) )
Output for 5.6.7
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$mE7PX/ElkS9kJc32eWPxqO7B8yKVyjOGxXU4ZCSrS6031aRSsEJq2 [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$rIbgZfr/CO4U/iJseP2jBOBBvrJbAXMQxJjOBpiUrH94B.RMenhxy [verify] => ) )
Output for 5.5.35
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$VHu/9NY6U0wS3ubap0ZxP.3Ox1Bx6LruMmfWHf9nLPaORdCTDy4dK [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$Pn2.ze28SIno67vrnSXzK.y8cPJ53RyRm7N1tKUkaPR5rJj0RU066 [verify] => ) )
Output for 5.5.34
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$F7bjYOaFtpkaQqjhFowcx.vRagZAhUPmxc.DlP67yVZOKYcafx5aK [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$Pu1zi3oe8a7xKczpwD/c4.F1p9Iqk3/GV6H0PP8oz/3JLZgGNcCYe [verify] => ) )
Output for 5.5.33
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$MZB1RY6xE4JKONwAqfWkS.GBWsE5V/gsYOEmVcJWRwqzziPZw61m. [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$7Chd/4w4iRCHn3oxmwni2.eeBCVWRwbQPNu.tpzt1Bv9veawrEK0m [verify] => ) )
Output for 5.5.32
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$QyAc2zUD4iHoODZ3ebl/tuNh9TawE.ZAHhfB0p31NsEgBGsTS0Iea [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$bBiHdZmI/T88DujsHnjUYOp5fmvR7OBIqYACq/w/DWV08LHGTEYLq [verify] => ) )
Output for 5.5.31
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$OYdr3GWZu3WPf9gQOfVadeFsxuTY4MLRt1LeQYvKXVmeAaMhh8BWi [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$61SxswusM6.fPf8dHNejauviGlwBcELEieaCFUM580Q3ynh4b0ufu [verify] => ) )
Output for 5.5.30
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$5d5ufwR7k0Kw.4idRODsjeEt0n4wVanQZnSARgAPXae20HxoIjNeW [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$FX0YzwAggaVX4EHZCTptPum/JWWrc9RoFzFNC37w/kCYE/oTe74qO [verify] => ) )
Output for 5.5.29
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$AXKF9QjrlrxrUSjv6YDciOFW9FdXAG8cWuvrd5k0PvgHY.RjgDvxS [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$3iRr2FqDjCc1nFWvPFQ5EeXNDQSXVSatq7kAe8QYjkxQD.VsokvB6 [verify] => ) )
Output for 5.5.28
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$l7K5BfhfaS3u0Lsl0anjWOfl04RJvxd8OddM2JYVwzX5w3xjUpH8O [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$9Jl65U3fI.34LUZTnYK.TuftKYaeiOG8FO.NGT8eWmjAKJzJ4uBBq [verify] => ) )
Output for 5.5.27
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$5tx8.VAdtpvXWBN2ESJmq.f5JcqmViNCn1cx7kwHfr4.nOum/pxEq [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$RZ4Bcnk7tHWmfvarcb2zSeXZAHKqQFoz2BNwLAJhFCpxaYyYpmSPS [verify] => ) )
Output for 5.5.26
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$tuYCyvpICfsIzm1dCWLfUuRaAZ4OxoQEl3hB8rcjda6LUV3lVeFeS [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$s9/grNTiJbaJdnG.lZbljev40R1Udg7BF3zdjTXXaBq.meGpvLScS [verify] => ) )
Output for 5.5.25
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$Wu9d3GHY3nVEgaoh8BlBweGxRsZQgkfUc6nwmS0kamyLj5s2Zom6S [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$muxpkbf/1fBNtvedw9/6jOebXgOXHglnZKSQgQn15Wtm0j63/QOI2 [verify] => ) )
Output for 5.5.24
Array ( [0] => Array ( [haslo] => Badass [hash] => $2y$10$GFAgOQp0c/JXE4LxleZ4Qelx2a/ITqIaA2cp4v1rqupTZDU/EVXua [verify] => 1 ) [1] => Array ( [haslo] => Badas [hash] => $2y$10$4xW/LNN5Fsq7HKULNZR3oO8IvbPj4bl9hKkIx76lA6QPu.NT9mOiS [verify] => ) )
Output for 5.4.2 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/RlbcH on line 10
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/RlbcH on line 8
Process exited with code 255.