3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo password_hash('jon', PASSWORD_BCRYPT, ['cost' => 12]);
Output for 7.2.0
$2y$12$4rnwfBtzR8SxDy4/koadVelVcX7jdeAIRAkd3SBNqRPMdbjHdoKre
Output for 7.1.10
$2y$12$bJ1XI437scw/rfOhsr1m5eoDQuHyd2Ks12/cLB2XwTni3Jb.kZufW
Output for 7.1.7
$2y$12$7aMvadlwId3qgEtnhlh6k.4M5lsws2SLrLbDzxcs/kPtKYkRlvzz.
Output for 7.1.6
$2y$12$eVaS5ZE/SNoj7r3aCYaBn.ieG7/bYauuhXJrIgMwBPD7ytHzzDO.S
Output for 7.1.5
$2y$12$6FOvsMT/oHeBh2n2lXBQWujnjAvQgSBt5r/MfhyF9GYAHb0SfLou.
Output for 7.1.0
$2y$12$9XjbiATewxifDLSuEQLerOwMKKrp/EGnITx3Fozh8tD/7ju0VsIgC
Output for 7.0.20
$2y$12$Nk/A8PbUQAEIF//YzeSx3e7IbbNaI.nZoUswDeHmjLLFiMbJumxoi
Output for 7.0.6
$2y$12$aq6zSG2Ckc7mDSPyXO53wO4MG5Sfip9QUc6DCpkTt9GkbOkEEydjO
Output for 7.0.5
$2y$12$134GXxTivAiJj6F.Dt7/P.k1QfJh5VM3CF8nUf69MwRGtNT5d0tc2
Output for 7.0.4
$2y$12$ZFRJ.rJWHoBgVxNyFiDkPOyPDcu7AcGRQSMw6RMbSauNWUt1x8I4u
Output for 7.0.3
$2y$12$JwoduVSXQqNzt2WqwSynLOZA8CExaWAVxyLdM2YjplBsLlspZu2vm
Output for 7.0.2
$2y$12$iicR7ZQ/NrSc8bX/eMc0dufI/ybIqHC6Al1F2Yi6B9P5C54zNOmaa
Output for 7.0.1
$2y$12$bREYJMtjmV9/xtLz3YjHLuWjzYEbSRjUk4f.JcZjrGYSh3dQYsZB6
Output for 7.0.0
$2y$12$OkVghnYwQGHU/Ei/b9RKdehcBJ/x.AJ6FMwRja/4k9G7dcb3ew6Bq
Output for 5.6.28
$2y$12$EJ8JFqTUMRv3SUeGAEzG/O7o/zj790QHqMawTxLjFciksLCZeuSOe
Output for 5.6.21
$2y$12$hJ7UvbEIaZGd63RXkKUp5OrRtzZfN3NTcTLLi8P8yD4iaA./yDQve
Output for 5.6.20
$2y$12$7O.BVlysmLGf9QXm6vqx3OfRmSAd8vKIJxpfGerooXzhsGZmf9lyW
Output for 5.6.19
$2y$12$Be9aGbxP2yDv091tJ5QlP.ACqLQh5FbXAOGvZYTXmv.v2og0yai2C
Output for 5.6.18
$2y$12$cTNf5RyIgYC1L2y9lF2.ZOxF5z.p1RzzoBAuyKcn/f65zwCFeR4re
Output for 5.6.17
$2y$12$JsGco0ui56vQVwPf45FoGeODTq8ciWXGXU6wvcO/uQnX1QS9DoFqm
Output for 5.6.16
$2y$12$wmBfLWGb9H2G8EH3pwWmG.dDURpL8NczHezE8yJnHJbdZRU3dip92
Output for 5.6.15
$2y$12$3kzFGwBP5Sio5BxNMEavMu/ptldh4etJExH5WmWgNYD8lkCQVuE16
Output for 5.6.14
$2y$12$SFwN12zR.YIadxj.zl5SuuTaK0vdwO1MPJb36VXmvymCNlZCzQ/x2
Output for 5.6.13
$2y$12$U.sy5RpplpclH8ky5gF5B.z9I9g8gD9NXW2M2SBP47nOIMlol9pbi
Output for 5.6.12
$2y$12$9bri9d1C8/4D3dZL62cx/Oa3gVe2l27GYsqBd6WDorzSGx0NLu/7.
Output for 5.6.11
$2y$12$7x/317IpqdLAsCcxA5CE..Zmr8O09mbBMG/A8AKtmsKH.RZesZfa6
Output for 5.6.10
$2y$12$LMETtkdj3w6OQ/wh38KNJendWUkker1OrhDRLctCaf15F1iA3Jcj.
Output for 5.6.9
$2y$12$uDvPLuI5OrysIcoUZIzxbeJhvyQT1BMyXe/NBkG0.bCcVlGnE1oti
Output for 5.6.8
$2y$12$Ohnkg6.8pVF8p06rn6j70.u5XTeIqrrzxOGQwEDVfgv9iI4ganmf2
Output for 5.5.35
$2y$12$29NW.le3gaYR3XxWnx81l.TXikh50TcCrSd0b51S.NgqILmWnnjOC
Output for 5.5.34
$2y$12$y3b.qPA6UzeRza4GK6I4zOOZlceu8M45FNsGeNEkcB3LtZm6nWmFC
Output for 5.5.33
$2y$12$iSDC5WQCiG6ZWhvJfnt4ju2VA4vm5v3oqZJ4tMlDizqFq/N656c5C
Output for 5.5.32
$2y$12$eXbfMuBUKb/deIvkgb2FSenaJ.yT3LW533sSkx7msZJHSXTndcoEK
Output for 5.5.31
$2y$12$doIYCvtPPMDAcZYOT.8pKuY1bShVwWCBR2F8jCGqVCpczYhWj9t9u
Output for 5.5.30
$2y$12$10/rxLcB.vNOqWo1SyqR/OZMyalKmtyPfqrKS8ESlr09/NgmZjE7a
Output for 5.5.29
$2y$12$wboWjez50m9DZZ.c6VmKseVqe0usyoN9RndbauAntWi3spWICTuVm
Output for 5.5.28
$2y$12$FrXrJ5QIUFMUDlqD.7ECOey9Jptluz3wKkcgYO/TZErsbVW/8Nxd6
Output for 5.5.27
$2y$12$DlLOlohIAfbC9TVjV58TQOydrf.1//r.BfjeeLGIIpEfnlYiA0iGe
Output for 5.5.26
$2y$12$SMju9i20tLp3z6yuFBw0Nej30MxlxHU5JGjnMLJpA3DRjAOea7NAO
Output for 5.5.25
$2y$12$CVzyxxBrYMMyD.5o0wBNJe5JTVMtkLKm9L6.AfDbEfArIco5iziX.
Output for 5.5.24
$2y$12$IhPv373WGA3TJtihDt7YMuviSqrhk/NAWvrpKZtQNZarKSE9v3iM.
Output for 5.4.10 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/37Yv5 on line 3
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/37Yv5 on line 3
Process exited with code 255.