3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cost = 12; $hash = password_hash('miauw woef boe schrik', PASSWORD_BCRYPT, array('cost' => $cost /* 12 */)); echo $hash, PHP_EOL; echo strlen($hash);
Output for 7.1.0
$2y$12$vNW6O3q5KL1q8Pn5cB.1juZa8LeJGG0y.KjlKKYClgOCrqQwMIOfq 60
Output for 7.0.14
$2y$12$gn3BmpDJvCNeszPJ2z.X/OJi578LX69jljTK4siiDifeRQVxp3ax2 60
Output for 7.0.6
$2y$12$vFhPIRyqSSDoeEsA5bZareo7HQcIwlS2U9TCYTiGsD0ZEaOXvEld. 60
Output for 7.0.5
$2y$12$zVvAwWdPG7pB7pYLHAfgsOXfQS1c7COOw5aUfmKjep9zxFOxoN4cC 60
Output for 7.0.4
$2y$12$0Nnq7B/..aubgmTBHKZcZeahWeBaGc6OkwQrIlwcuLEIqdKjF2gCG 60
Output for 7.0.3
$2y$12$MMG3QBdL36SL7oIRtEQXFe2.j9MsPKRNhsgMOI0suxqxcm3HvciX6 60
Output for 7.0.2
$2y$12$s/0usIqzsn3nr4TG5wxD0.LAI96G/Yit1/42FcqfVGFaMZnKmgSe. 60
Output for 7.0.1
$2y$12$XAv7mvlduqXYGpuASFBsxu2VA4ZpT.qXptqWGjvfTEgBuXk4ZTnPm 60
Output for 7.0.0
$2y$12$pzYoVvXS3D7jglCAT3937.GH9Xf9fgTtPQjmvT0otjuimX.kzS31. 60
Output for hhvm-3.12.0
$2y$12$.0UBTzkh5FXKyMuH6/gSj..ySLuXHbSS4sjUSimCgMa/5nCos7TGq 60
Output for hhvm-3.10.0
$2y$12$Hfi3wTNSCroK0ivXPJd40OGTyMZDR/WVa0tVVEFbn07CEyv3gvpVm 60
Output for 5.6.28
$2y$12$tDoL3ntJZnx47Ll6XPQAKu4kQOY2HSs7sDqONNr.5RNR.xz1OOLlq 60
Output for 5.6.21
$2y$12$mzLyM2M2AOj9Ysfvm1X0R.lVlW5YSRcRnIIbX4Xa9zWgvK.dBJK76 60
Output for 5.6.20
$2y$12$2H845TtCzpx07l68wtxBvu3hR3mpLIA4YJRrPlafRMjKvefdC.9NO 60
Output for 5.6.19
$2y$12$mzivDGEhu7n9oPeneeDjd.GomdUP4JSUeQZpiMCldMguAXlX1VyLy 60
Output for 5.6.18
$2y$12$QAMUyS0w0HD.G5kOS0BjV.k0huag8NuRchBoDBiWRbsQu26aUPxay 60
Output for 5.6.17
$2y$12$wl7U3dnZmVvwOJzvh79Xn.8X7vKxbcR/bmFGGmgKi7SnJ8X8IOngm 60
Output for 5.6.16
$2y$12$pmRTwlTsy2aY.RBIgHjzceHz.4PXBPsAkiB83jTWzGVJGvCMX40Fa 60
Output for 5.6.15
$2y$12$pfcJ2.HhA1iC9RCgGO540uKq.Cj9IIOG52v4pLUzdNSt7oB5pA5se 60
Output for 5.6.14
$2y$12$H2jSmfNa06aVwaiIewAK1.w9GKMl6K.H17jkHF/SJ3IoIa5iC.Tqq 60
Output for 5.6.13
$2y$12$F1Afa5FIlTJgoktaAIFV6uSJcNeGyLs61w.aiJ9LSt88g812ujkvC 60
Output for 5.6.12
$2y$12$o3Dzg1sXjvAsY0r/puMhv.noaNkKxykSbTKZfLiAIPxCle/TsdP7S 60
Output for 5.6.11
$2y$12$99p/XbG3jlt.sNBeFViRyOfVOChgfjTQiyrISgwqocymEss7urf/u 60
Output for 5.6.10
$2y$12$SKBpW.uSDMXLB4Diwr9Zxu3YvrezGMnYa7Ujf1HFwfaj0V5VhPUYO 60
Output for 5.6.9
$2y$12$3t60a5VOh.L.L9U1eu1tHe7MXi45aOSdnJf6Abvv/aIPfKUMKDJme 60
Output for 5.6.8
$2y$12$JhLFrzgfqWyol/yZyQNkKOXS78s20XS0udzyDg33yd8jOdPjWBLne 60
Output for 5.6.7
$2y$12$6Vi7l8j8zmYh/GiiOC6tv.2Qd0IjjGOG5asoWR.CmGQcGxvteSwji 60
Output for 5.6.6
$2y$12$XOmq2.tNmM0UA3wiu9E7DeWpDYMcovZIM5ItL4xjD9DiV9GnqSO0e 60
Output for 5.6.5
$2y$12$K9cKYiKREt2xnvsqtAL5IONgPzWlMTP7guIEozsaR8re/YDk0bnd2 60
Output for 5.6.4
$2y$12$bcUs1PlS/mHiTg4ET/sOuuJKGOe7dAQoMzF9Tg726tvN.tv8BNHc6 60
Output for 5.6.3
$2y$12$3cJBfjnvpb/fEB4sijhX1eWy/KYU8/NbGJmX.xHsaogp6KnkV6sm. 60
Output for 5.6.2
$2y$12$YVr2CrPjrGTQwvbBjvnu4uEXcVrDc3xzr5U5mU5iveA.FXzh0pV5O 60
Output for 5.6.1
$2y$12$FzigwThE74.Xtch.0MO1QucEAfmBtCqXVaKQk8NIb95R8KbOPiv92 60
Output for 5.6.0
$2y$12$shR77rAKf0cJkR1zhjDyR.4bo0SDKsEzdKSY2TJrRvUuxGZq5CYLu 60
Output for 5.5.35
$2y$12$McRMDqPcW784QRCQgkakI.j29AZtcdSaqHtYnGjlF4iBuR9uqPwIq 60
Output for 5.5.34
$2y$12$b5tLUaNxkta36jsItDGcreB570u.L9dxgvAelrywQ5vrLKXCkXFsu 60
Output for 5.5.33
$2y$12$EHwYFnnFXnRpqT5SLaDWbOwCUqJE.1A0Bubm37VJ5f/Y0Km.iKDee 60
Output for 5.5.32
$2y$12$H.T9O.obdizuRXja2QkDbudcJ0a5WAUBFg5Cb0W7eAN.5wk9ZCmZm 60
Output for 5.5.31
$2y$12$QJx2SM0gNoRPaSDzjp4SqOfOE8P8wedDjLzueVOeRz89OQx2VonOW 60
Output for 5.5.30
$2y$12$Iz0Ug7S28vde5HfoolJ8M.hfkGBJU.SSZGNGPNsoWjt0HfL8k1plK 60
Output for 5.5.29
$2y$12$d3PlG7OmjGsx3WaKh.aVP.JAISaWdRUab6r/fHQdCh7a5QOtMb6Ry 60
Output for 5.5.28
$2y$12$PtsIUIMdemUHf0ZEMSzeD.wD0uY24FRlq0TZjdsxUD/6MEJyu9rOu 60
Output for 5.5.27
$2y$12$sLHbF/qDR0bp7ROk/XPdReyWWw5q5KT09jDiHA9H229UgY3abcNZq 60
Output for 5.5.26
$2y$12$uME7tRiydfV8wpdiMTPTWeKB5V/K0cYEt9f4R/ApeECXdDawll3SG 60
Output for 5.5.25
$2y$12$L.Rc8T..Mri5tJuIpi4Abui1ApbbhQNrszgrHooDSh3DFElIei2.S 60
Output for 5.5.24
$2y$12$2aZXpeJLuLHSykkF/YRsw.kIngYPN5Hf9sVzlv9ZadDjSQXlHZMEm 60
Output for 5.5.23
$2y$12$gpsHZ1psQ2X6b6GxCo17hOmJW.kqt6PrlvHVI2gjqbf.JstuB8Osi 60
Output for 5.5.22
$2y$12$C8EF6WAGckIW4VgGKvODQ./1JfgURQBB9NxHtBubAW0oE7KqxYzTq 60
Output for 5.5.21
$2y$12$z2MO2LvoipEaJHjBGemNl.K94gy3lCRT7kd6ogCVuMRZB8E.xwkIq 60
Output for 5.5.20
$2y$12$IEAHnmS/hSoHMdFGrej1p.TWq9NrYtKYd74IgmUK6ih/3EQvHLtj. 60
Output for 5.5.19
$2y$12$5uzQmvkZwQS9GsZdAoRL6ueNyFrAYxjhXJtx96nRAip9DxGgBjUiW 60
Output for 5.5.18
$2y$12$W32o7wHCDThhZ9CUA2VeHOS/CNO5LLwJzWlqwzw.NV2BWyNBUPzWy 60
Output for 5.5.16
$2y$12$dxBx2QSXCkY3XZzmBPNIGuaZmIhMWwqQAw4bDAEEuM2gJ1Ij30at6 60
Output for 5.5.15
$2y$12$xWdSCKGfCBP88eJ/t6go9ut7NfEnxygB2ROecg9MHZRR3.9xiNDhS 60
Output for 5.5.14
$2y$12$28SmeaPrluaSo0jVkWppTu8QyJX9wuKiF19u/UC6.rRREWFzBrIa. 60
Output for 5.5.13
$2y$12$SKR8g.PHXXR933vtCKkSXus7k8ct9yJc8bRu6O1GfW0v4ZZzIIj4G 60
Output for 5.5.12
$2y$12$7nmAjGtv0IkGsjQB5DKFveCbeLmyhIUXVE4sFXuCc2763AbFJ8t.i 60
Output for 5.5.11
$2y$12$gWZlBNhMXVrlCWhlBrksaO0RuEKcvhsO1BwwcxWM8tDCZSUZyIn1S 60
Output for 5.5.10
$2y$12$NChTHgydUo6Wj4IK0ZZbI.SvDayjg9fW8zz/BV9Dw1Ja3gPCGauxO 60
Output for 5.5.9
$2y$12$51kE22L4k2HO6sZIrOomPOjk/oQu/ej71x1VeAhslTPU11WnSgcwu 60
Output for 5.5.8
$2y$12$9nSoPEhTGh.P9C8T0HXlW.HlfF7mJKHqNQu8RSBccu5QKHHyIkRnS 60
Output for 5.5.7
$2y$12$TlOVYHlRlQogT.oTspv9MOtKpDTfwju68SxggSpQScsTTsK19SxVK 60
Output for 5.5.6
$2y$12$hx5NKOfDqftpCOAMsR42ReqFhfy/T5YZgBrusr5ERDIAz53HBMZFK 60
Output for 5.5.5
$2y$12$3r.A9o90eVCPStR9LF4BruKiVjHk6Q59Hz/vTMa7fj9mD07PFcP9i 60
Output for 5.5.4
$2y$12$qX75mKKEgAbE/Jsx0q6p.e7IeLynTep3h//fLjK98ijWbCTrpKnWq 60
Output for 5.5.3
$2y$12$Q2ivRcu3YC4pFXbKZdQ9kOjd1oNSvmuZw1QWoMXHGjJ95TsIyPP7y 60
Output for 5.5.2
$2y$12$l.74LRj1Vzw4X7YK9WES4u.rKBaz1zxwIpoOkl.9P6sYSnlvCxUAO 60
Output for 5.5.1
$2y$12$ZDdjWisnWGR0wkKr8K8.hO4/RCZPlaE3ZGGDidhvzRQP35dBcGHdO 60
Output for 5.5.0
$2y$12$BwfGogKgSU7M.7ffXY1Ncuw8sfdr8FVcn4cmsmAlBllF9tBwFyW0. 60
Output for 5.2.3 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/dMigk on line 5
Process exited with code 255.
Output for 5.0.0 - 5.2.2
<br /> <b>Fatal error</b>: Call to undefined function password_hash() in <b>/in/dMigk</b> on line <b>5</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: password_hash() in <b>/in/dMigk</b> on line <b>5</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: password_hash() in <b>/in/dMigk</b> on line <b>5</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: password_hash() in <b>/in/dMigk</b> on line <b>5</b><br />