3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo password_hash('jon', PASSWORD_BCRYPT, ['cost' => 12]);
Output for 7.3.1
$2y$12$m17f7ec9s7LTEzen1j0M5uagySUVDoB6rLrT3Kp2HIft8GUk4zd7u
Output for 7.3.0
$2y$12$kZjU.YYh.Ul47YwnIaKTi.9rAdEvdlwdmauiNQ9S5Mk9u4AK7Sdbe
Output for 7.2.13
$2y$12$BOMCf4k8y/HVr2cSmPp53eEHYlaXOxEBEJSK84waqo1goVd4ZHSQC
Output for 7.2.12
$2y$12$z6MwQCb2VpCHhbI4nk3p/OxzZMDwEkh02iBorR/4GZJg7QBqHr3X.
Output for 7.2.11
$2y$12$jBbyPktfS3wP1P7FNy2FhOq1v2mmwJHja9kx0LsW.fRcpIDFVv41K
Output for 7.2.10
$2y$12$W0Gsokv4IYCc1MktxHslwe7/b.KG/zo.H6DdT8RtCgabKmZi/XUZ6
Output for 7.2.9
$2y$12$1Gq8mMkWwkNTc3U5EOmmEew.Exb33KdTEWZgbrqIITDS3qmb96lGK
Output for 7.2.8
$2y$12$Qjd05JuD9SPq165ezZuTj.KJOSRnpPh7WhF5LNM4aYMlaCkFyQH4a
Output for 7.2.7
$2y$12$HXOn62oBKimbZ8UTOlaO.OoDf7.rDpCXIZ/vrosHqh7FdljWz5QOm
Output for 7.2.6
$2y$12$LA5NouK.UvWlevW98qbkV.IzV31xb7b4chqAhSCtl.X5/Ll9Cf5bi
Output for 7.2.5
$2y$12$vHsz9f09aVZXv3heTOz/zuosonJIez3WmG6SgA3t2uTwc3pCdAZae
Output for 7.2.4
$2y$12$hSQlvnk5DH/jrA72SkNj6OnI.g9v7m/Cw96BK5I4rOOCyetSp.v7m
Output for 7.2.3
$2y$12$XHM4IgYVeDNvaGvhHh1hT.cI0kJWY0IQu/nsN2pAwHGn3j2n9gIlO
Output for 7.2.2
$2y$12$OzSwpDaBxnDGg9mLLFUkH.24oB75ElgY539W46DhdtIWHuVyqwYOK
Output for 7.2.1
$2y$12$KFFmwi8f5MWrL3Rb0Kj6.OZ0wNBTq52bl9EOVvK6v4HBznBL4pF8K
Output for 7.2.0
$2y$12$EN1K60HOzJpcx9vBOWsYO.tMVliH9ZkMGpx3g/jbYs4Ol1IGYu5i2
Output for 7.1.25
$2y$12$/6vLh06C25M1Ah/z.fmJ6u/1UXTlMMyfi1njNHer9bQ2povtqRXTu
Output for 7.1.20
$2y$12$uJ6rIA5q4EqLcWf2k.pDpuUVoxnEFAuLaV9AcuCL6qHoySNNi6RcO
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.