3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $bcrypt = password_hash('blabla', PASSWORD_DEFAULT); $sha256 = hash_hmac('sha512', $bcrypt, $bcrypt); var_dump($bcrypt, $sha256);
based on 9Fnfp
Output for 7.1.0
string(60) "$2y$10$UkeUqka7/I0yIgJBEbOvxeUuTsYqZ46.gH.su6nCK8A8KBmcw3fyO" string(128) "d7cf770661b82413078b5f9f44ea372a85dc6691a26b97135b2ba5e636eb5ad741309bf0fc1b96ea3db275fc68b557d219b3c574ce03731e68c0b97b99cdc067"
Output for 7.0.14
string(60) "$2y$10$NL1JXnqYXQateQUR0kk.FuUeJWN1t/NEZSXMb5db.oYO2/z6.rhZO" string(128) "60f4e338455a92253112418fd789fdd3b47547389987fc2d6c759452dd3202b6d5e14e50e9151cb90556ba4ae556702a2c7d9b7f0256ce31b9a9fa6b97401729"
Output for 7.0.6
string(60) "$2y$10$XhMQlf29LOa1Zu813tN6L.G8qs7lExR9xyiNtfR9jZVFyVkNHyfd6" string(128) "f1b1ea40c846a82bf00f32eb9c6d83c363714f4ee72bc284dcc7cb014aec2b952d00bf4d9e27ad2b83f5864395c6de300ecf422c5ec0cf8c4bcbfa88fa7adfaf"
Output for 7.0.5
string(60) "$2y$10$Pk5YEZk/QHqcTc/ReKNkzOsy8F5ttZgkk.GABCPFpMBUo6T2qw0p." string(128) "8d00377fcbe39506971199353500af4f622ab95b5f856141c9f6fabb43fc1d41723aca1fce3be15dc814ffd9bcfd52ee547dfeb836b16d1697ada22ac47d425f"
Output for 7.0.4
string(60) "$2y$10$nxWF0DlKYL6F.tQi5C99/OMogyb6wnWSUq8LRsWnwBYkrPG4S03QO" string(128) "48b02e87423040f1142e6633cba831efda366c076b5c4664ded1ab58709108b2716d6603adfb1ed96760e36eda9fea9d5198c6a774a4478a2888b5053fe80e3c"
Output for 7.0.3
string(60) "$2y$10$djdJePAl26yRb6MgU7B4rOfuhUHOGUQXy6WSa6ngXOy/kpusEDv.." string(128) "f90db4aa446b03ba3840f630fdc43fd4f2992fafa725c2af07c132e6f0d8a5a85f4767687da2aa778335bd22024c75e8fde901e4bc4ce57f9144642f4774f9d2"
Output for 7.0.2
string(60) "$2y$10$00E7oTOWaOVpvt2JvJ3PYuN/P/L8a25GQAcABdC6X5ZI9m0ev3Nnm" string(128) "513622bb0503f76fb00fdcd7b8930f435f2a0febe65350fc30f2d5f4898a49fe26a77046325ae44029e1042c40add3b7c46643fa86dfe1328261eeaf9edd218e"
Output for 7.0.1
string(60) "$2y$10$IrhPqO3wyQVSafe3cpe6yeqKj4cqTxku3j3S3NYcQgnjbfcZjT0gG" string(128) "a0a65c733aac4c03e5325e003338728b3ed70607ce39da088795f78e51328540c73baad941ce1090fcbf469db0456e2ffc4ca5c479abd16dc14d64d3b3b42cd9"
Output for 7.0.0
string(60) "$2y$10$i9kmd.54k1mnPz./snw2KOZeIhXgQymTKK.SVl5FpKqGbkIbCSs6S" string(128) "3cdba89f1d3a6d0ecdb7ff7ed06af0779eb533b6807f5bdca2c1606317b55903183ee1488b1fe912c7ea03a0f4f05634d54a3167a336d3fe5ca477b396704be0"
Output for hhvm-3.12.0
string(60) "$2y$10$9T9AhkkSLE.9dzknh0CKtOcsPXBU2TVL.WvCfettALM5dOrj31ozO" string(128) "4de164e486efe53abc82343bb9512de515ea88a7bfb8a128c757d57bd03775ab3637391e92e6592fa30c0637111f8f16e01beb22da2dc65d6c7abb7601070a48"
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
string(60) "$2y$10$OQBB9YtUdS/GMdyImVuD6.P8y7Qdn.7Po8x7cBbM9t/wP8hrxqFaS" string(128) "4b724af670150226a9a7515e1650545701affc10d238ebcaf529212dc66522ad6676aef8f9e5a24a0a0ac7d791d037e481393283b4a4175e1f2dbee5e3779ffa"
Output for 5.6.21
string(60) "$2y$10$i4.CCnlrolnYUr.GN/OpJOLKc8uv36eUzFdh.jca7Et8Mn6Ew6JGW" string(128) "cd3963ba180b078f2540acff5536ccee7856236a0c6080349c0291c8ed9a7134ab9e760f043c8c27740ba1b548a7531a905e096a3f13a5c94b5ae4488999ebdc"
Output for 5.6.20
string(60) "$2y$10$26xWNA/etFyHtS08LyqlOOueiek4LRE0PYF8oCKRrWizgCqTRuVn." string(128) "b4af4049517fc3a109ce46dc32f2da7dd664b0f6efa1b5840430b05a40a87bdfdb8c42b3ea1bf26b5eb6728815ecaf95e21e4465db32a9338d5ea752b02eceae"
Output for 5.6.19
string(60) "$2y$10$4dlkCiDq6MlvLuT3H8kfR.frzRVjwoUFHbbsBDiYYFXOc4ttfUjAa" string(128) "aa6c8184bb937fefe6bff84970f900e1246fc7edc45ac9fa24fdc17f2bb3e79ea790393806029828d1f1b69559b7d25669b6dee755c8d66496f0f90a6434fab2"
Output for 5.6.18
string(60) "$2y$10$kpu08SJKTsOPDWI/KALEkeKWWTkLhs0a7QPB.1womCsYnINijACZy" string(128) "b010e884ae86ef1d81aeec71c487e3977156e00219055f41a4a8078a991163954a6b7e8f10548e6fcacbd47f88bbeb86af9cf50fbb513e5f4d53c8367f550f4f"
Output for 5.6.17
string(60) "$2y$10$dvsZMssPVfosMIDCKB.yBuUQV.jT3GQqVUVs/sGt9AnHSOFYhb1v." string(128) "015193a14240e7f3adeebb60e98fa4f1f5fd459af038cc9f39fa8419ebab33e4d30eb3db2b063d8dd4932c7a446cca0cbaeb53763a2862ba77691cbe79a447b4"
Output for 5.6.16
string(60) "$2y$10$oqKyAkVFIAuU7uaiob1nl.c.zuCm9XT4uZ1tpL8YyBXHJJjUcLsym" string(128) "d0dac800adc8909701b531432542c90fd36327ad73a80b9a4e3ea0687f45babb77ce035126e81b34e5a7bc0e3998b9cf45157aa8bfa9d0cd778b32b564febc7a"
Output for 5.6.15
string(60) "$2y$10$5Sos0IdLExkTVXy7EMTMj.eQ9gCHjj900B7s6cVYmkN3aK6iqDxvC" string(128) "00ae106f8c582806a769c42f84b50410c3968ae302c1e95a75c614be32d9f1016e539b5a0597b9b1dafcb300e2c0f264dd89ecdfb099770612d55d72f12eb628"
Output for 5.6.14
string(60) "$2y$10$O7H5PwomkTpVr535vYWXhematDre7OJZpF8iejEAZWzUDdUk6p3X2" string(128) "085f9d30a948f722013b1f26be9df2c93cfa3f0397d2e165ffef8d4c967187f780bd4a6caebce067de5fc1549eee0bfc22f0f381aa2088a777c39ec1c46ea10f"
Output for 5.6.13
string(60) "$2y$10$sacfQ.VVotbaFHcq/.mDTuutQmmaUJmBYK4VCIfM4PHxULRQxUmeG" string(128) "14084dde5a8a5636d168d4b6f93e13b6cc0af9588a65147ab5f905c541480d7ed2686ee03a87c0ab34d49712072778b99c7ada00e8667579c9a312fe01ed60d8"
Output for 5.6.12
string(60) "$2y$10$Icu7WRTfXr9DpH8XF3UEVek1TTw1AvXFXxywiFE4xgg9yLRiWAIP2" string(128) "da245e99a352dacc8220f3e5ee0918cfbb11ca863efbd179ea190a33d8bde9cab405ec19c261d40f7e8a609e2f0bdc0567f54eb71a6e575fc09dafce09dbc17d"
Output for 5.6.11
string(60) "$2y$10$E8eoPzt0ul4lwA0M/1qn.eqphxVllmO7OkfM930UFsg4WERkMMUo6" string(128) "7d42cd32dc7f217635560b1e4a9289baa0b910a7ec57e424068fe134b1a217ee342afa1754d07a87ccbb15fc5cf41b94df4d87eae2a8e086874e14b485c6a501"
Output for 5.6.10
string(60) "$2y$10$0P4bXIkUf4Wq9C.dAlvynOTKTYSaB1ZCE0gYyimDzaxygciI3NqVS" string(128) "ce30c9dd4cfdcc0c92eb995699daac69627c01468c6c7d9101fbff6507823e4407cf0300275c1dd75ff5e68178baf2b1a047da37fd3a27c9eb286ff6aa6db313"
Output for 5.6.9
string(60) "$2y$10$Q0m/9tJFilwr0r.MLInWr.aOR0RFrM6zfvSd8ng9jy.vb.8X2HGvG" string(128) "a06a94e0a0a2090cc5435f3b68d5d9b91b638820fa18d598fc47a185c065580f502dc793d66946fb46692180b65b51ce9fd9543587f8b5303b68f06024e2af18"
Output for 5.6.8
string(60) "$2y$10$B9JQBRMtPAQVeDqSvYYNCuePVyaUrJ91MXirtxHuJ6WOkENX83SbS" string(128) "f2c5b38ae8fb8e484b7b058d3605feca06c9a89fabc540b47c97a851fed231b4c5b5f2abbe64844810a90f477980400d5e9b493ff9b70032f8b9977b80ec736e"
Output for 5.6.7
string(60) "$2y$10$UzZJCACX3jYa29xlRwjvVeErIsphsZzA8tVRRQsXwR87DpbWmtnHC" string(128) "6a4e81721fc4f873cde43a214a1fff286e921cef34b0be6c888cc49e78d9d03c6f86eb18cf6467362dc6f2fcbdb548b501d83ad606f427d584763fdef11b46a6"
Output for 5.5.35
string(60) "$2y$10$OnHtmGkVKs3VuPP6s.JXeudWa/wtj3kDKOq6dzgoQrtfojCZ7Y47S" string(128) "eee7aaa92c61ffaff0156138c66cdfa1f0440112f5a8cda169f7549b7ac7e7d1d32c39e82c21e43545d8b1d5f11b16ef3f74024cda387f490e5db32c61804b27"
Output for 5.5.34
string(60) "$2y$10$9tcZOfpy5kKvgJU44DWZI.1CINhwp3oCeSwfmrtQf87s1a6rS7x/C" string(128) "3ea44bce94b854e5be76e5a5072db72fd01f807cf9d603f30391f61f231aec7623ebfc64683fc58111761be205b3c3f6171d0c5ff096788c9f387ed22aa527d7"
Output for 5.5.33
string(60) "$2y$10$qPO58cNAIKeyiXGA1v48IeTSqJwe7jVN5cgzHwiMwKJZ3/9Bv7QTe" string(128) "8e80a82557a3b4edd25083f10b2901c427ef169f46df34fd130c54351339c183f7da7fd30d176033088d84d77c1faa9dc2cda25b4d8ee6ecd238ac725f8896fc"
Output for 5.5.32
string(60) "$2y$10$wXuK3YzPRdJiomShn9EQDeA5t6JWNo1OKBHpAVE8SeXyMQw.zkEe2" string(128) "b07ac4c9845859a5d2827e34073ca7641008ced6e42dad3a55f74a722bb5a77fad2c0e622f49bc5803420e0b86228d0e98b97ace000118b1a18294b7a4334f29"
Output for 5.5.31
string(60) "$2y$10$TQRDg304VTF7RgX/Kig78OhOlfhJCddr.mkt233hMPggn4IXyn1k2" string(128) "1a796bad4ffef896c47a0a11aa61b263371b974c574837042892976fa878d2d5a805333bcd143354799df843d7240ad7a4473a0e6ce4fab7eb4851754dc7afa9"
Output for 5.5.30
string(60) "$2y$10$qqnkgj4SkbToPveK.6Qm3.4em1pTrWfdh0UQXIx1Pu5hR/BqlqZmi" string(128) "dcb3b44a406c75560f0d1705f6b8f4f63033f62fce0764e023c9f7dc0ca73d0aad4432eba010d55b79210b4288fd14de20bfc4f03bbf19f01a1f773d2bfd5711"
Output for 5.5.29
string(60) "$2y$10$FIHg4U.m5HicBrN6xguq8O0OSGo8ENyFuhuO18wjyUVqikGALT8tK" string(128) "5665e9dc5212605f04a1df5cd0c762175a601dacccff37a991bba50d6a0011b76e8b28f039456f3a9d6d105c843ef84ae6c624f9985149cd047dbeb8b2aa8a6a"
Output for 5.5.28
string(60) "$2y$10$xF1HpFY6oOzkl63A.EfEAuVNwf7YLHhBOB8gD9ouemSwlpbyiu/lm" string(128) "2fb0da5ccfcde306217a11b024ec657c22c2340c360de99e2a647f7932d43d192af25982dbaf8285ed0c061c7cb4dcb5882504ed4467f65094be7c3bb7691d53"
Output for 5.5.27
string(60) "$2y$10$iUTXaZCtukem8pERLo25J.IoYOxBHfuEucNvZgr9u/ete5mAWWL6u" string(128) "034d1db5804cbd517d4cb84194df95a81be1b40f0d6af2d5326c930b12d1c5c9e81b529fac60072fb483caac494cdc60e7e9400fdfb25bc3338ad58d6cae57c6"
Output for 5.5.26
string(60) "$2y$10$LyAT18wzTnq9YIhSSS52duW1RHOI.pNNFQLtAlsnRXWVpUdOIWNB." string(128) "1009b5ef44af8d90d2e4bb24ef794178a93d8cc506d2f9d0825cfc802b613a92d1e15e720d52a990d89729ee1906b31650fcd3860067262000f5d23552f98a4a"
Output for 5.5.25
string(60) "$2y$10$ErHS2mRf5KFIlaQ3drByXO0LSURMUkZrmEOYQz0AKwDDXjKjVZggW" string(128) "88b342e0bbfe603989f213b62794e627b84e1db1fc37a366ac0c107bb87699ed5d474f0180cfec4370bcec8a260dceaeac7c4e6344552bffe01d0ca46089ad4b"
Output for 5.5.24
string(60) "$2y$10$Fg9lnExKJREv7At5MTM80e5SmxsC05ujFbMfItkQILRvD3jR/rA7m" string(128) "10cbffb69ff48665be6422546ade5a87360b6f49fd31c8fe43f954081b3af5f063c55d17213c771c016225a3ab4decf526abf445d6891c12a7216b486647e6ab"
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/lSlgb 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/lSlgb 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/lSlgb 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/lSlgb on line 3