3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(password_hash("bobbob", PASSWORD_BCRYPT, ["cost" => 13]));
based on um0pS
Output for 7.2.0
string(60) "$2y$13$1Vzx6Aymhpcg1mPbeg2njeex/X1jBfc9kL6ynq/41m5fqnh6nhUb."
Output for 7.1.10
string(60) "$2y$13$8yeKdAeDA4fO6YTvTqLSOejPt.WjYnne.QWCCsuh6HBZW1lz24XnG"
Output for 7.1.7
string(60) "$2y$13$sudfTJaYKV4GZZ8PQqHF9eHPYm780D5rFexKbRzDmsbStm8fVNcly"
Output for 7.1.6
string(60) "$2y$13$Iy/yf5BzzRN69PwJS65Gde2IRjsvl7L/wgXa7cIb2s7MTIg9xRkWW"
Output for 7.1.5
string(60) "$2y$13$5QyLsOrBRh045atcyuGiYe99AkQKVL3PH8zKl5IytGrIorb2tCt4W"
Output for 7.1.0
string(60) "$2y$13$WGuGEwvxGsBpaCb7a6K/ZuBUJk5PwYULcu8OFtyhJUNv0x36iZXvO"
Output for 7.0.20
string(60) "$2y$13$LI0ZIO7sZhfm9taZ1iB.wuKwY3jgBNZ/joY3/M5vP5tHlIAgzA04m"
Output for 7.0.6
string(60) "$2y$13$d0eFtgVl9mANRWyHBLDM1.U4NN0868SM6MY5sEuBF./UQUT5q9lHW"
Output for 7.0.5
string(60) "$2y$13$Gn9J3vchgfc3Y5sqr2qIWuigrV8kh11/kbjeEVYpMaE/CnKs/fbXO"
Output for 7.0.4
string(60) "$2y$13$HqFOVRTiWSsHgYIklzDN3up7/nX6vMEqbupBtKV3VUEGy8PkDdn5S"
Output for 7.0.3
string(60) "$2y$13$qs0qk3KP2f6pHz.zJAtst.92P9zlA8rKfH1YcUf.Qg9fyYDz4MWUq"
Output for 7.0.2
string(60) "$2y$13$hpUeZ2l.MNp7/UQSm3y6LuoQDiB8rDN53tToN9YgIRC4wkaNtFWJm"
Output for 7.0.1
string(60) "$2y$13$GRgobfQTeDjOgAkDQDGnU.VxCbgCvoLjUOJ5kyRDbCYtov/1xDwSa"
Output for 7.0.0
string(60) "$2y$13$n69xq.Nog9209Ntc9ku38.FQP55GVWExwMwMy0ZpbJZvNibZtELvC"
Output for 5.6.28
string(60) "$2y$13$ZRDgBFfU2.dqN66hlNJATOf.71/IfTlkOiXyILqJmunTUH7ZxempC"
Output for 5.6.21
string(60) "$2y$13$LB28HCDkKom3gAbTMJnjwuwo2Q7DTsrShklcp768MjboAp02p6OUi"
Output for 5.6.20
string(60) "$2y$13$MIOFDrLdV9bNnvFdCa8Tnek3lOghWXzjrLX4ugZxDULSLgAEAS9yO"
Output for 5.6.19
string(60) "$2y$13$txOMJ/FemvCU2nS/pYuHhOZV8P6EgOKyzRb7QPyJ6qu8qlkHi9pG2"
Output for 5.6.18
string(60) "$2y$13$ImdjGHMtqthpm7oYLZwr0OXmf.3aHX2jb.9gjaad2EsGQx2nIYELe"
Output for 5.6.17
string(60) "$2y$13$Nj1eH2LC1/XAFvd3nF0WsuIRF2so7WX17nN3JbXj34pqrpKcNQrt."
Output for 5.6.16
string(60) "$2y$13$jhNdCjVPJ/Aqw0gWMs/MVO1gGy/6Rb5QglLQZO8KJpmV8oTPqgOd6"
Output for 5.6.15
string(60) "$2y$13$gL7kSJukNBtwE2Kwaec2PuXhoH2vPEpAEculXMEVGCo9yaW/L.qNi"
Output for 5.6.14
string(60) "$2y$13$bS9BgiRGx9MnxffK5Ed8DeosRJ8nhsR2SWmfhU1zSIypbRPGbqLVm"
Output for 5.6.13
string(60) "$2y$13$2TCdHtBWvMmuR6Fw0Sx4ruDUNorF/oxA5wkXs8B8goZn4wRJDWHtm"
Output for 5.6.12
string(60) "$2y$13$0yc2bQgUAXcH0h34DIIVpO2cQj4o.0sezjR38vKmHa3OMvDXDlINi"
Output for 5.6.11
string(60) "$2y$13$7iSmxCxbwmyqT3rEBH8YfeWpdUd.hvf0NvHiGdydVX7ohPH0qnnzq"
Output for 5.6.10
string(60) "$2y$13$OexlgiAgAG11NTcXFi2dzeh4W6vMvcVa29zssp351ypUYgCN1JCTa"
Output for 5.6.9
string(60) "$2y$13$pivuvOPw0eIIrEBLVqFUL.3/OXMAcHGGTFY2x3Y4CPCBZEwtmie9O"
Output for 5.6.8
string(60) "$2y$13$aqPu40IP2VuEpeRBo9nRCeQXOxks/SvGyLnmaEQzRBZU7z1mvbFKG"
Output for 5.6.7
string(60) "$2y$13$vrih/UIylHaW9r0n9pUWVOW5kAaIE9g/W8u5qudgyvgeZjGbxgRge"
Output for 5.5.35
string(60) "$2y$13$3U0ozyQfIvmi6q4TXUYrXuLIjAD1AvXI/4Fui5OFZRIK507cjbtku"
Output for 5.5.34
string(60) "$2y$13$zdmMeLlx/IrWIlWfcspfnOtQeDebYPEf9GQ84u9xtp23KCPDsVsSq"
Output for 5.5.33
string(60) "$2y$13$tvtm3T7kIyMVGL3w6qIDNu3V.JXnWPiImV3seD/wF9YNJ1DAshoZa"
Output for 5.5.32
string(60) "$2y$13$t8A4ysQqk./ysXIhxu2KSuBeKiIBqHEGkpAgn7j3lPKgYB0y8EHWG"
Output for 5.5.31
string(60) "$2y$13$UtzW8WC.FZdvgm7RPMaSvuaKT1SNVwVlUXFcQyAdDkrwXC1QCjrZG"
Output for 5.5.30
string(60) "$2y$13$DXr5vui8OWemrDf6ydwP8.gZjXUqiIM8ojlRpBn24DmkFpM3pJuc2"
Output for 5.5.29
string(60) "$2y$13$eYJuUns.01jWEWO9mMvWn.lqa38NJtPUP2KZY2yrL9C56jD4F5NwS"
Output for 5.5.28
string(60) "$2y$13$mxfTQpU/tdNMi38CiZ9EmOTc4fyyEaZ/VHsx2kkHzeppNYxI.nyqC"
Output for 5.5.27
string(60) "$2y$13$dAurmHH7n8G/edEoeaGVcebxSEdsTy8lDbktxEjs1DPVm6P.Ox026"
Output for 5.5.26
string(60) "$2y$13$zUFb1dAqeYTYxApuRXIrG.8Bv6Wj6r/wC7tkPnJNhNjP.Qrq/mtU."
Output for 5.5.25
string(60) "$2y$13$dOCh952zO./cFS6He0GCEe7X4.k9IgpvmbloMqwtAbMHixlRbV0Uy"
Output for 5.5.24
string(60) "$2y$13$Me57v9JtXjxg9/tYP5OSt.qShvHKqkeg0/ZzYg4M2M.SfcHSjuo1i"
Output for 5.4.2 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/ltXUb on line 3
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/ltXUb on line 3
Process exited with code 255.