3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Наш перец. Невероятно непредсказуем. Хакеры в панике. $pepper = '.dQUEtby7P35;k"5EhPB<j.;,9hqvs!(<"B]=#dBfhnyaN)v>8Z_bs%YJW/u~{w5:4B!s5F>'; // Наш пользователь - молодец. Пароль чертовски хорош. $password = 'E&z89Usr?R7VF.^'; // Хешируем! $hash = password_hash($pepper . $password, PASSWORD_BCRYPT); var_dump($hash); //string(60) "$2y$10$0V95jRy9I.P3t7YRiMHT3O7JEveN1Gya/LbvNJ.H6K1mVPxPFRsUm" // У Вас будет другой хеш, т.к. соль генерируется автоматически
Output for 7.1.0
string(60) "$2y$10$9G8quiO.D7vmEFSC/vl8UO1w9aZYlfdwvEjiumNIp7133BsI44DC2"
Output for 7.0.14
string(60) "$2y$10$/lcDFYWSrtUnlPmCRADjLuqOHrt798YYJdajVzjL3WPebCQtPgFyK"
Output for 7.0.6
string(60) "$2y$10$rk1w29wPo1GrgBVTyWUgpOMiTeu0qk9K13u/b3LagkulzLt/gPq8e"
Output for 7.0.5
string(60) "$2y$10$KEEmPQbXVkMxWauiI4Xj7eKeBYdHUFyeHcczsGZi2NcVy9XKWhHVq"
Output for 7.0.4
string(60) "$2y$10$hLgX6bDUSEny1OTm7Gbp1OCg76xs1UuS7XJwrVbGO1gbZ9GU4/Vfm"
Output for 7.0.3
string(60) "$2y$10$91XxEZCNBrC8mXxEzdVeeO3HOFSgNBdb.s4ghW8185Hj/k/bN6wJy"
Output for 7.0.2
string(60) "$2y$10$wCt6m2hQayRNbRWyhk0xiuODlyksyBiJbggKckI9FCiR2cJFS6Fqe"
Output for 7.0.1
string(60) "$2y$10$cnieTuLsvuSgm93bBgHYAupLkvadQTatIULSZiVvT6D02zfM4c2rW"
Output for 7.0.0
string(60) "$2y$10$4w6ROh7JRy5OLMEPVY6JrOfA3rvlgsgNh/jqBhiAX79y8GhdG/O8y"
Output for hhvm-3.12.0
string(60) "$2y$10$VMGWd3eee5OCNA5TQWvmTu1BAzxU0dyal.jBSx0dkq..48u7ury7S"
Output for hhvm-3.10.0
string(60) "$2y$10$.HC1s.QrC473VBp4SC.PruuyYlqz2NBiIYL2J3fyvgPAwN2NVABx."
Output for 5.6.28
string(60) "$2y$10$EFYYk8zwZdTQnp89PhSlNOCbGN8nlRw0mYxZ21yILu89vwaVcEGfa"
Output for 5.6.21
string(60) "$2y$10$ar6bSEOb/2ZBRTj73YqhreU8GvtzgoGOzmqfSr1NzFtp.ir5yeSPW"
Output for 5.6.20
string(60) "$2y$10$cerkAranHE.s9E3YZHI.vuwPQwWteDiKEJnScrVhSO8z0G.0HRI6q"
Output for 5.6.19
string(60) "$2y$10$5jTY1.MINqGJv4mjcMfjdOOW87QCaD9365KLYpcTGABvG3XTEWVBa"
Output for 5.6.18
string(60) "$2y$10$3RJ4Rrcf2NGLKlbX6djmtOP.oJFZIZVqfJct5F5UKuibRiPltssSa"
Output for 5.6.17
string(60) "$2y$10$I.QyY0KDLrg90XqtIEhOZeUmoO1c6tsj8e6CSmgkCzsnd045Mcdei"
Output for 5.6.16
string(60) "$2y$10$BccxVfVOjt6p1IQ7/3QLO.tfAMBkxgCIRKreuufOXBtRV89Ukww46"
Output for 5.6.15
string(60) "$2y$10$rTAEC1IS4OWyU0efOIbJrez5Ihmrayp1IUIrUpTIzPyIA1UKxxN1."
Output for 5.6.14
string(60) "$2y$10$HpZolXesqORPfa6pTBSBtupfU/VwKT/0qbx8bbmrx7FfHVHE.yd7K"
Output for 5.6.13
string(60) "$2y$10$ofyfHdBcfNI8s8JJofnd7.0JIs.s9TS2KWxiItaB1zXNdQ7JfsWa6"
Output for 5.6.12
string(60) "$2y$10$jhRNz8FJ3vzlU9i.Aw68MuaOQwrllMuZtsS0YO0Mts2GfiiBq5Ktq"
Output for 5.6.11
string(60) "$2y$10$xk41Dr/e35/8NVZEMRe8pu23VNdSbcR5qfaskIljxT9qpakBDkH7y"
Output for 5.6.10
string(60) "$2y$10$wS/I1OnKka3ukZi2XIwt4usRr1EUV5HIQ5qEMgIcDcV3tbJ7HukNK"
Output for 5.6.9
string(60) "$2y$10$ktHoEpfSyOSS04yMlib34.eP6GHgQi1YlTN4C4ZxK9BVhYihK6E1G"
Output for 5.6.8
string(60) "$2y$10$.dq6baBnACzZ6Sl5gUp2n.kTDOFEgD4dh2F3STBBAAz1vefw.k/SC"
Output for 5.6.7
string(60) "$2y$10$3f1Xi1tIEaNZe8y9rTuqjesOcjV29Z/RRziqU48P5Wv/sxGIgJoAG"
Output for 5.5.35
string(60) "$2y$10$rf3c2wB1zofOR5pcpTw4lehQDpghWcb.eK4ozHTbqiTfPBkBEcg6O"
Output for 5.5.34
string(60) "$2y$10$jQ6dxGxcwjIUXgNSH0VVo.2eLqz5OdMuxW7ni9GTA43fmYaRikShS"
Output for 5.5.33
string(60) "$2y$10$P0fPJD5xP3Cs10bOeGmUf.XPRATzqlWDgGsX8kyjU5sYyb7Wd81ou"
Output for 5.5.32
string(60) "$2y$10$HIkj4Pgpo.v2xZBG.r7Q/etLKEtj8jSN8VCCwjtd5OxrPRCWKbXRi"
Output for 5.5.31
string(60) "$2y$10$CeR8OYHigtmTkztf83CpKe2CKjgiqTT477lFtbGXMt2xtCPG4etji"
Output for 5.5.30
string(60) "$2y$10$T95fIweG977lq.CXdytxsetmnkTk89cXgBhapcG2gUqA29nkGQInC"
Output for 5.5.29
string(60) "$2y$10$vjCdC5mhvrZWzNviGIw0FubMp81LtNiROf4I8MKiAy1.Cx17UlAQ6"
Output for 5.5.28
string(60) "$2y$10$OF6B5b4FSQ7oEr3TOahqRuqlg4LdfOSRwfeuDT6/31XBjn8oN7LHi"
Output for 5.5.27
string(60) "$2y$10$DJKc.8zIr8NxEjD/LDvEDOomF1RP7y6PMHC.Hqg/lwQfVM4Xm6bg2"
Output for 5.5.26
string(60) "$2y$10$hLwgL3S/sOylJbbd8G1Gp..W5O3ghVSOYsf6V2101o9to9u9hlfF."
Output for 5.5.25
string(60) "$2y$10$Q.T3k4/z8YUBmbP1Yb.PM.oYx8.6/F54tACOjIiah6wsa4Wee.Rfa"
Output for 5.5.24
string(60) "$2y$10$6Up67areQRkemchdimYHo.7fqHgu4MojKyDjJjwJcyXEhsGLAZ5f."
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/tj1vU on line 7
Process exited with code 255.
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/tj1vU on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: password_hash() in /in/tj1vU on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: password_hash() in /in/tj1vU on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: password_hash() in /in/tj1vU on line 7