3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $pass = 'password'; $crypt = password_hash($pass, PASSWORD_BCRYPT, ['cost' => 11]); echo $crypt;
based on 5aYqH
Output for 7.2.0
$2y$11$ODQI6/6ssNJdQaUl6aIwZeUjc7MOxeYc8M/CDbmZMWU7PiIGm1Fbi
Output for 7.1.10
$2y$11$rW/W0O3NfaEthTJ2ci3sf.XHwVynNf525U1LIAHW4bE4wrLJ0Vj.K
Output for 7.1.7
$2y$11$T2J7LrAruMdpam47Wxt6JO41K..ujNJorKVeUvB/0x9COo2lFPd/6
Output for 7.1.6
$2y$11$.d72w2a9tT8nxW/BpLS7xuoHWgLpn09ga5DzC82XKgrL5Cf8MDUCS
Output for 7.1.5
$2y$11$eD0NnizCExHFSZBfIvX0L.zfP2zsVtquqqpyA5kxIZCUmVp2syDSW
Output for 7.1.0
$2y$11$YcAyzt8liGfoLV8n/B40v.nDidh5kCRMyg7FBmZi0QAviLUB2wDyW
Output for 7.0.20
$2y$11$6X0Pt7xiQ2DDFqLw0oRqK..I2wIdhTFCJ5kVxKkL0LjHmt6E8sNhm
Output for 7.0.6
$2y$11$SMfoBx1QkMERg0SUwRFMDezOEzraHkIAzK9UDz2GlgnfOGZwYnQ7G
Output for 7.0.5
$2y$11$ql1XRt9a4tJI.E9GwzxFd.J3ch/.kvX/iVv9j9ALNDXQBYzswto2u
Output for 7.0.4
$2y$11$Ql5n4E85bS5bBxhyVwFk8u2z6ttEbpWjqVe25k3EP3IqXOFQyhfhK
Output for 7.0.3
$2y$11$OCRNKJYUtb8UHurD/I3ZXuch7x3s6RhGSYB5TYQoULc3ThG/V2Zry
Output for 7.0.2
$2y$11$0rQEEVvno0Ko5zEnKboWF.rHgFOYCTC3YZh3PEp/1yux/ZUtPOkIq
Output for 7.0.1
$2y$11$QQsPB4WMB9v2/nshOoMzuOjHz3jz9glx4W/6i4zfNE7UXKJfICawC
Output for 7.0.0
$2y$11$Ki5iKwS2R8tjJy6/oCkl/uhHU2A/JLUMhHlgvZian3gbWomCwMphO
Output for 5.6.28
$2y$11$pmLnm4mF9v33NYxXgVJN.uFLhoegoxg8E/RnrhOj4vDUl.roY7MQO
Output for 5.6.21
$2y$11$pXAk.jHEzzP9i7CzPG7DIueFmxexOozNFHTVelj2vO55EM4OKFwUW
Output for 5.6.20
$2y$11$n5GkqMdbFAXanGv7gn0une1Xk5AmD9UHA6r2X8JfgP011r/6ELRgq
Output for 5.6.19
$2y$11$C4oV51.ah5zqYoPaIpxesekN9Ox8iCRvjDH53x7nau.nqfIZIgcz6
Output for 5.6.18
$2y$11$mjXDtyg.dfPl8HSfwkKmduZ5Qtjs5s3hulwiQ1ne9F98RHz1LMd72
Output for 5.6.17
$2y$11$9vOdGjQDPnJfiHxJwSYvzuWDy9QMXxRE5h1j9hXczEcZ5wOFxi2RG
Output for 5.6.16
$2y$11$LFo/xY06Kv7J/tGCVhgn5.bltuNSxq7oj.wXcxu89Ki/dJhA9ZgK2
Output for 5.6.15
$2y$11$.jTlIpqMqPY/XTSOzNkVgO2Fl4nQX0UN1mFKuQTHRpNKt6RGNUwoa
Output for 5.6.14
$2y$11$L2woUWa0sSC.8T3mjdUlNunxoeBZg6lDxLToDq/sVZCe.hXo/oex.
Output for 5.6.13
$2y$11$YDIsv0ucz57K9LEquGbe9.OiT2z1WmX0FBlEO7s7XKDr94rqddZK2
Output for 5.6.12
$2y$11$xqfiOEsXHNwdH7qK.SRHS.PQGXlc.xo9QE03KtOqYIes2rM5.q1di
Output for 5.6.11
$2y$11$QauxRGDPDydUJWV3uW3V9e5qirjU8WXvFTHZaGJal4huihg1qRJ8y
Output for 5.6.10
$2y$11$6bLWvhaOvZc/6CEojhDvXe7CA2Ml7QmjUpex/jvTS/kIlY3d2LkJa
Output for 5.6.9
$2y$11$DLRBmBMDEBPyD9PYAHO6iO9cGZc1FYcb.8figKn8ufoqzyiPFN9Fu
Output for 5.6.8
$2y$11$5QW/SBHvjgY2HK389FGdh.G1gF9xOQtMMtSUW.rjJoqKzUkuOxyUe
Output for 5.5.35
$2y$11$3w8n9jqls1MxX164vnu8Pu01uzQWqtpVNe6xKDJlR6Tbv4GFQS07G
Output for 5.5.34
$2y$11$0cVgCzQU9tt8DzaFgqBEre.w1Wii8.HK.K5dE0xQHJNwF/hga3FY6
Output for 5.5.33
$2y$11$EJQ0NJ9MgikYjobYfS2AiuVxDuT9LENqD0iAHcOOJwkfJDYtN04vC
Output for 5.5.32
$2y$11$z3KvPSJCRtFDkSd8Zl1JGO2ct7a764UYv83j.dd5Utka3cM58pY/W
Output for 5.5.31
$2y$11$jaMfENyuZuEX4ikDWX6uI.eGmHvwkdSWq.u2xVGkbnFKPDPWfVwr6
Output for 5.5.30
$2y$11$L2fhE2ahYGy044GQ2TRrzeDr76N9QzY.erkciTHO9MSBGHxBw7WH2
Output for 5.5.29
$2y$11$lqhGX5aSW4KtldSdmeAz0.AVNhwm11au8LWmxakQGbNscfS6ObOH6
Output for 5.5.28
$2y$11$0IUILwiye02yK7gdiJMIUuRsk00oGs2tPbqFlFt3FzrunO5Xwuh0m
Output for 5.5.27
$2y$11$Znp.lrkaMmqvWYFq4SP5GeO7Uo1/9Vq9kcL3H9DMPunZXW9OqYv1m
Output for 5.5.26
$2y$11$3VMnRYntoSJutQ4eCUlDkOSwz65YAbkEkIyQ8GKPk4d3Y9h7nA73i
Output for 5.5.25
$2y$11$nKSPoXUrsXdRS74T6UzZkOB8iEHZk6G9k/CwqWsjJCIxEtXBrueqa
Output for 5.5.24
$2y$11$.34eBxoMJPldQ4KlIj2ZEeQt.kJKg1zGSPHdcHzrTd7IGWvqA49nK
Output for 5.4.10 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/3P4qB on line 5
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/3P4qB on line 5
Process exited with code 255.