3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo password_hash('testpassword', PASSWORD_BCRYPT, ['cost' => 12]);
Output for 7.2.0
$2y$12$CHFtL6JcTIsifExjvm4KTusSrImOVON5vhpYhHFQgpeHcYAVwNq.C
Output for 7.1.10
$2y$12$YZ/jbW58jMGql/MUVUWzAOU35nqv1CxNhS/YXYl/N6SGzPTXynPRq
Output for 7.1.7
$2y$12$2TA2gz7GH6zgV3UKmKS0zeWCpKDJwXT7LBJPmnIgRu1E55W9hO0/e
Output for 7.1.6
$2y$12$O1Qx2lRpP/9kTP2BLegIJ.fsArtA71xYDjGi3p/g/ro6Z.CHcY0bu
Output for 7.1.5
$2y$12$DHSzDYXGsANjyFAiRi/b2.5h1zxmHbdAml3/yshK3wWnSuS6jfp7O
Output for 7.1.0
$2y$12$fvnKpJqM.Gf4gS2TZioAceC3jbdQy3fPp63r8e/4Mtvh5zZqtvqvm
Output for 7.0.20
$2y$12$tpNLRhYcSmFw2hpqLOIijOUYO.52P2sKCEQqqh70bAxEpBAiBZnsa
Output for 7.0.6
$2y$12$QcnEHcW4yfd4MfP98ebQEOZmfExf5T/7TwmZb/qzMSPIRPiQYquY2
Output for 7.0.5
$2y$12$6RTBZPjeLMAjvTM9b4s30uOfmPLh3WcML6FkFsxR0EjIyjEFM2jHW
Output for 7.0.4
$2y$12$4kbdXgygWDBuc1bgwhe2AuOmO26GbNh6DPCCKC8XP0Wbe2O3O62FC
Output for 7.0.3
$2y$12$ShfB.ppTnctXV6Z4I.rUSufAF7HLERCvF0QSWyJ7ChqWjyeaLsATy
Output for 7.0.2
$2y$12$UeiP16oBEk2c/KNPjEYyeezz.gGKfO2BV87KVqfIvemEDt0d4pdWm
Output for 7.0.1
$2y$12$mb.ZCAe60Z9sMLlLi6nCTONdAvAG.DUY4SAb/8gksAOPUiy7voO3K
Output for 7.0.0
$2y$12$/C3h8Ak7mGM32BpRb1YKH.L9S2xBtd/buP8yBTktuDtwnxatUZSvG
Output for 5.6.28
$2y$12$jD3RZJjim1RVrz3Shk57GORN3FoY2XKgVUkn3U1B2DgVruP.hpnm6
Output for 5.6.21
$2y$12$c7oquZ013pyrfS6zaelat.wSGBGpurP4/ccpzDLeoDqhsL2FV0.ja
Output for 5.6.20
$2y$12$UvFttNXfLpzjVn4goFO.auLZw6pxN5yG0W.kkXEFBS0xCh4E0Km2e
Output for 5.6.19
$2y$12$zZKAD2AF9xjemLa5ILBoUuoFVmujjH4YNjhZCyQBBrv8RYJ266BoG
Output for 5.6.18
$2y$12$1ZchoQbI2uzE2mzgopTvg.7nG5mWM1ZYNRpBZ/QuiDHbjg2VxfoZu
Output for 5.6.17
$2y$12$smWPfL0Y7X4sWBRX2m4nSuY0xqXjYhO5lpC9ADWeyfg0g2yYGgrh.
Output for 5.6.16
$2y$12$mhsHVyw2P1.Q9HIe1bPbO.M044SfBMxrrLHkQybC0o7u8MYpGDAVe
Output for 5.6.15
$2y$12$Ap.E4vXThD9HrbzUtD4voepgsW1COznRCqUFASRhHDJKJOQMOMW5i
Output for 5.6.14
$2y$12$YKCcl6NczzVlKnr7g10foOgDcE3MRDHKM.uj6QB5mLWTJin2k9.s2
Output for 5.6.13
$2y$12$3roZm.VkC9V94CGilwg7IuWQdlsOV8apMJSt.Uxcw8cH.azDSzkAe
Output for 5.6.12
$2y$12$CzxxCxM7y.gnV4vw3rCYb.bNOWSF5kkzUnhm7w0lw5TlrmI0os3I6
Output for 5.6.11
$2y$12$hKFPYm2/rpYj55UjI3Ky2ubmRDIbiz8wiGSRwCMPJztXftriyKeW.
Output for 5.6.10
$2y$12$SxV4R.kzG27/ozxPMw.m8usPvprAdaAMrjkjUhbppdibaUIHc7W.e
Output for 5.6.9
$2y$12$ozVdNsYZXjt55gmtOyMYSOOXDvxNz2s6a.VeZmN3c4N9jAJAMGePm
Output for 5.6.8
$2y$12$XcEdMvk472KY716XWgF9CuLLfZAy7ChWkPsgntvSjMizOaXgMd.UG
Output for 5.5.35
$2y$12$By5R1nEJxAekmfq8Rau6Z.wq2GjQ9OC0xw/gIvJCswEodgQqh9H/q
Output for 5.5.34
$2y$12$T0In/baSJ239LGMne5kf4.rbLqsHhoYKdVhQB7ELD.MX5lFfrFcNu
Output for 5.5.33
$2y$12$3ZHqYzhlHHskzR64xvdyXeBrgf7o1HOSl5bsZIVk5d7kGTk7xYedi
Output for 5.5.32
$2y$12$xfpQkl7M9gukWz4rTDbXW.HYNZsj9qdJzbGX3wvguc/chr0FN7gU.
Output for 5.5.31
$2y$12$X1.Rvdze5AFCoJf36rOx/egf3HlOsRQYiau.4vaFFaR03s1R79ilO
Output for 5.5.30
$2y$12$MEIb8Frq/dGLhA5/jYX8jeCZy1CD7st/rnUGsff2mGunuNl6MKOii
Output for 5.5.29
$2y$12$sGNdd5XTMpUE56mMLnTMTOxXpT8nN5rA13r0s7XoHi72rI5dPuWgq
Output for 5.5.28
$2y$12$6JXVoyYriWPc3v84bV1NduP/BRnPH2GKrlPpHZ3wEvYPKRfVjnNPK
Output for 5.5.27
$2y$12$C6DpZfh2o4Ubnljv7kTeNOd0Ozwy.6VfEHSYCQ2cnRd3wRKTdjqui
Output for 5.5.26
$2y$12$U0BoeidcTZH6kQ7gCYXMPu6RnaDejNIY.sOmxEcq2vF.Bpz3aPsgO
Output for 5.5.25
$2y$12$tZfM5zBqCUqn9QDnu3rbH.Hl.srCc2Oa1FGvi1VO8jG7pXzXkU93y
Output for 5.5.24
$2y$12$37OSPcqdF0iYV9Ge5pXV7u5c7FMXxv6s3XT.tsDSvMTbmYXgyKpNi
Output for 5.4.9 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/Nu8LC on line 3
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/Nu8LC on line 3
Process exited with code 255.