3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo password_hash("rasmuslerdorf", PASSWORD_DEFAULT)."\n"; $options = [ 'cost' => 7, 'salt' => 'BCryptRequires22Chrcts', ]; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."\n"; ?>
Output for 7.1.0
$2y$10$LX6rxEUhhVlLhM2EwTole.q0i7weaS8bhKCA4pPqBerI4bimm2Koq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/lPn94 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 7.0.14
$2y$10$cZ5IeMMQ3AYRomeGOAW0H.xIUaq4wEY5w6P8oMv2dXdkIUKI3jjcG Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/lPn94 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 7.0.12
$2y$10$5Sn2nXyLLFN/TGR2VbrgkOT3LQkXAc2VJdiPCrXjZ6iAyKMP8h8Fu Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/lPn94 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 7.0.6
$2y$10$d9n1fjQ/XM/fz8STzt83YO7q/SS9QGavD8OOJ2edPty7S442hqAO6 Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/lPn94 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 7.0.5
$2y$10$krW..zFBoacbjOd2kfdNkeU0xT430ehV6Lqx2eEhT3bsp6RgnjBPu Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/lPn94 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 7.0.4
$2y$10$6uM/HQ.rZe7INeO99qGRj.jBhu3J9zFwxdiN19nCY4XegHWVuPiLC Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/lPn94 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 7.0.3
$2y$10$R8H7hd/JOvw.68RTZ2WILu/zJF8lFQ5E2pZmUgOMkqtqq0UOKcIAG Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/lPn94 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 7.0.2
$2y$10$E85hY0Y2yr5sL0pV9x.bduqZ2nXckEzbOz01hHxPMdBuyJ7X63iqu Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/lPn94 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 7.0.1
$2y$10$O.g/6qgpMi3Z3aTH0dNIeO6CD3SIAq0DNvC3GOGWcWWUIiw35xTCm Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/lPn94 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 7.0.0
$2y$10$nMhZqFdadJAytB4M2TInkeekCQaMa.ZriI8CY3wMZKbQPhIFoSZdy Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/lPn94 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for hhvm-3.12.0
$2y$10$kXdmy2l9QMrI1RY3sJ7zUOr6EgnN1S6OZ5LZSFJSNvLYyuuUfLs7W $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for hhvm-3.10.0
$2y$10$IcIGZz3V92XtaH0JHLLdYe3mq9JhKYttCpLOyRUWa/kg/1JLHC0Je $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.28
$2y$10$AU5JqtnrPzR859EN9shKcug9z2isr/l61vD7dxyhZ//6gCFsSemwW $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.21
$2y$10$627oRdd8h3qe.oIOiUxP5.Y34nmOsjrMIHpfWlon4xdQ6kmXbsTc6 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.20
$2y$10$.ZxqajzA33XDfI0y6OgKTO8KWq5QVvTJIadWXlqPkL2n9bdA8tQ96 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.19
$2y$10$tCennqSEK6.99/oRG40vUemrle8UHmu14urHXH.rt20uxZvImOVKi $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.18
$2y$10$0TTyo0aQqYv1Hut34fEWE.2PEkEdAZW5DZbqGwDonPePH6eX1QH/W $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.17
$2y$10$6lhybtUZyJcSw.gRLXIo0.8ezVLCIUCJXyZCr7q.rRM8bS69dxKki $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.16
$2y$10$YZSRPotMaBolns13UgEY3.g42Zmc8YtRVbUqXJq6SngCoMHKZbNKm $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.15
$2y$10$yitglYW8L0nJM.bBgaK15.u8w2SbrAGaBPVk1NH5Nvy1UxgJKSgPC $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.14
$2y$10$8W7jmqZ6FxxewbElvEgqwuZ64//OnWNYQ1Z4LItq57GpgvNIKI.dW $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.13
$2y$10$lbLspneQRqPLfWg7v2UMm.6HvCttbVofWDoEdmN0FzL5/Af0YZ3C2 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.12
$2y$10$oGWoxBZ0PU.k5SB98qHsf.xXkrGaB91hvrAKk3s0hr1j2JiEBEK0C $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.11
$2y$10$mOCgG2X7MU8v60FfOxGJ7uLvAqXHlIGo3BFinhq37EAExx0gw5hq. $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.10
$2y$10$SNlof/Xv4uvmi58ybpxUd.3UJnSB3VZ72I5s8h8uCX5G3FG5PY.Le $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.9
$2y$10$HjYopR7p0pKELbj5DAK4s.jO5sj2lfdGpQe3PyriF8z03Tl8OOJ5S $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.6.8
$2y$10$oJG4eYir9IXg9Cal82qHlul5Q/q2WrBWhB9AZvGpEaBYyZ.y84Wdy $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.5.35
$2y$10$HSRoSVsYQ4kcV2FQ/1q4V.ONbBqWQzW2fxVsWX1Rh3TWs4Epbkc96 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.5.34
$2y$10$N1BTe3MTRy1QK6nmxDFbLOp.9SLv4VQplmRyIoXELox9qcfd7/.jW $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.5.33
$2y$10$vsVV3BqLqCxdZlUbE/FAru59j2ErKWZ3pEIXzGjMuKwiYthxH5/ZO $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.5.32
$2y$10$CznfVoVFDF5uATDSOmdmGupqEfgkelsLjaeQ6Wm0dQPpqFzj1cOvS $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.5.31
$2y$10$.ycV6mn4d6cEdSCIEu/IUOK9ty0XT8Vzn2JNvqxYE4WsAITf8H5Kq $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.5.30
$2y$10$BF9blKMxuiHdGNFrFa87BuNGlx/pVGf.X0g/CBUwIjhLKwGHg6.ya $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.5.29
$2y$10$.qfmsovtRkVVn2woyj9CU.xdAbn49PAjo4.Ikzhh0scyzsqAyS6t. $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.5.28
$2y$10$hR02s1mfyEW6Q5pKHxz6SOz4Oi0J4m1jEPq6jOrZ8KYnttvf3vb.y $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.5.27
$2y$10$0Mp8Wqq3aqeHI9Kj8moDieCjpYsNQeiCrdN5r/N/qyfIHa43UZs3q $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.5.26
$2y$10$fpdrOBQRPT84Aqf4C0KYeO7XWv/BmI0JmHGi4QdbPJ/7eJ3/v19Le $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.5.25
$2y$10$sYx7lwjtziFT1NE0suXmpOFmjZMuLOIikb5uaCO7CHnUvi/./Govi $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.5.24
$2y$10$kAPrPdzXK1tngGEefIgOMu2TleUSD28VMoZo17KMcZ0BwK0pJ1Hha $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/lPn94 on line 2
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/lPn94 on line 4
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/lPn94 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/lPn94 on line 4
Process exited with code 255.