3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** * In this case, we want to increase the default cost for BCRYPT to 12. * Note that we also switched to BCRYPT, which will always be 60 characters. */ $options = [ 'cost' => 14, ]; echo password_hash("password", PASSWORD_BCRYPT, $options)."\n"; ?>
Output for 7.1.0
$2y$14$oIbHAq7huDVk8v.Ghg245unOeYyZY0iVAymn9fGhuwjlUshtM.wpC
Output for 7.0.14
$2y$14$q/N9mI/7v1VfrVHXYU3aV.uQ4GbxUwzou1gZtXE6Qo8oCbLQS4zuG
Output for 7.0.6
$2y$14$FBR4wWp0rGVNpz1UuiB.vu/SAsQzc7XilynRATcCtVH0Lrcya/Ywi
Output for 7.0.5
$2y$14$BzhTooD5Hx7iirUtYqh0gOM4PjZHAOppeMW3TTWnuMcCgXbprUeAK
Output for 7.0.4
$2y$14$V4POvsqw.GYae1IJPY5Tg.O4IYUoKPn9i1xL9ianwM9ZHWYtamf22
Output for 7.0.3
$2y$14$3Ii/QZd0h4dSADdcMzhnGOFE5UP1yaUmfOfj1cPLIr1u8yKsjtqvG
Output for 7.0.2
$2y$14$VB/zyG36m4s5owiX7NU7EOdr.OuUmdvM7vsnpbo.s/cWf89hvysQO
Output for 7.0.1
$2y$14$cY8rO/DE7VVz.Vfr2OU1h.Agra899E/ZjpW9LucJ/DfKxiuvfHeEO
Output for 7.0.0
$2y$14$QGGjCxAMvzd5P0PWmfuM/.9IFmGpr.WKAt4xiv0oDvEvoOhGOjSc6
Output for 5.6.28
$2y$14$Fw83l2UV1bTJhi1hvMAQXejMoQfX46NZ2nTJtjykQ/vfSjtnkQuey
Output for 5.6.21
$2y$14$YWV/z/EKtmj8whGD1fbHSOyHfSStxD/ewUOsebhCut6SQGTaw.fLO
Output for 5.6.20
$2y$14$kT0ws.QDfmCFZ2QbTK2xROZrgaltV.BN0k1y/nrJ0i2JaHZxcquae
Output for 5.6.19
$2y$14$/M18VQfyKPirMPR66Bgt6uiOiOZdB77ik8w5JPbcuOnjj1C2EVHNG
Output for 5.6.18
$2y$14$AovR9y2OQnDMdzB.NwVhn.8sDWgyJzjQbOJDYdN.n6zK4VpW6bAxm
Output for 5.6.17
$2y$14$riarqCzCEl08rdcAZHDRzedYC6ROpOK8i8pJn/OhqPQ2/ANDIh4GC
Output for 5.6.16
$2y$14$.AD59G5jvsq.ffTNSZ0m4u3kFmv7zlAK0qEI8fS/C6HwlgEPVFu2S
Output for 5.6.15
$2y$14$bKRMJzU7PonOBI4FbJWznOXfz7G.x6VrRj3ls5IUr5XtciSQvSidS
Output for 5.6.14
$2y$14$VWSpgwDftNepaH2iQmeR1eI/Mtb8laAV5sUf/gI8hVIoFgF8Xap2K
Output for 5.6.13
$2y$14$5aMXStPu6Zp1Get4fA0HmuwQSYz02F3PI1dj/IBjQugdMwKj/sdOG
Output for 5.6.12
$2y$14$cGNiUhGHPnT82y3gOkmJ/O/eyxTZdThl.BtIawNRNOy.bmUfTJZre
Output for 5.6.11
$2y$14$W34t4rr/au.B25C2ovXSd.8w9fWH9/Yhyoyh1isxbkMRlXOaFEf6y
Output for 5.6.10
$2y$14$p6wwUY6tS9/5pGiOS.m3HOiqVevPYP2Sh6k8HW227CE/Muf/5dYem
Output for 5.6.9
$2y$14$iGYzqey35QoX.MLnwT3i7.jt5ZLiRTJLLHFf3t1pvCsG/38WcGbne
Output for 5.6.8
$2y$14$DtjmSu8/LyGRerVVVEbPmu/EGOyQZVFE4z3XEMBpPewGRt5vmkEcy
Output for 5.5.35
$2y$14$Qb4Q52fcjiSJC7VLkOBeMecbcwl4b72yhObFpMk/T11NoXpBQ0VYO
Output for 5.5.34
$2y$14$.M98B9cnQ.aTPsD8w78XZ.k6bUlaj1xkl7UZjBsIK29OWOL5wQLb6
Output for 5.5.33
$2y$14$vIhQaAMWcVUyFs6bOrwhAuXOB2NiMppJLtYxFmm0FRAPTHM9e36l.
Output for 5.5.32
$2y$14$lzGU.3tHSN49rYC7yA0iL.54v2eyfciHXm1r1pyeWcbRgUzQQDMdO
Output for 5.5.31
$2y$14$FcKuZxD8lOIpMFoD9/zaRub5XXMn9.7CZipeWEUIKZqWXM5UPZfrq
Output for 5.5.30
$2y$14$w7YbjD1sxRQCvfb66OvnrOgpwN74TUCXftYdEUIr.bwM1sAEQkPT.
Output for 5.5.29
$2y$14$/q4J.dpTIMqLq9ZLsspHG.A0Z57iBWV2hke3nWUAlWR82CZFCqp8S
Output for 5.5.28
$2y$14$5Nk2quG1xAwHJ46.q1DYX.lWwDv757dfx1MBKqWM2iPRVn1nO2LzG
Output for 5.5.27
$2y$14$4uqDUPNjqhRqy1TjXkab8uS1vMB2sgIs2n/LRxRN3gouitzpywmqO
Output for 5.5.26
$2y$14$umIu3bL6hRTRNuCWQGB.Tetu3ZIks.7to3T/VlEn2s4PAoXh.lIXq
Output for 5.5.25
$2y$14$aM3y9tmjMcAMyuTzU4w7O.8Y85yPaPpqqmQId8w6KScZFg6iWR8mW
Output for 5.5.24
$2y$14$qRYouM./momzN6LyPSk.HOgydQncFQbILX3DDToTi7WaJfT0GHSGy
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/CBZAr on line 9
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/CBZAr on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/CBZAr on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/CBZAr on line 6
Process exited with code 255.