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"; $options = [ 'cost' => 7, 'salt' => '1234567890123456789012', ]; echo password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options)."\n"; ?>
Output for 7.1.0
$2y$10$J8fgIU31ZxGR7jcJP2/tCe.X9lf8FpzWDjj33VltH2oYeRyUU5hCi Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 14 $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 7.0.14
$2y$10$rtZ7uIJGSIHXAbII5SWA9ObxeIjoTEQL9qdqvtXkZFz8xxZvWbNsy Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 14 $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 7.0.6
$2y$10$9WpSVMSULa5dureMx0fxu.vQLIpI2tx5GC6VQYthKdpSGsxq1SMhu Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 14 $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 7.0.5
$2y$10$5xviAHvE69.fKN8Vneh2q.YUjvEmFQzNY/5GDnxW3DYUx81x2reEi Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 14 $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 7.0.4
$2y$10$vGDtTVOBms.46aLs6acabO8iuLfEXG7Q4jyanim7crfqUTNj3YjF. Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 14 $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 7.0.3
$2y$10$4XV96i5EVPqOG89yik/SpuHx155n16986pkFJ7A8ySh6KbqZpZg7S Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 14 $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 7.0.2
$2y$10$XodgFWSB4lP09YHUK98G8O.8Qz4qzObWv3cdclzCiKxPMJfpmc31m Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 14 $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 7.0.1
$2y$10$aVqqT/58a0h980ykPYhzP.LflI.fJfR3jzoHAYx9gPHmXKHNJVj6i Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 14 $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 7.0.0
$2y$10$8AUfw9eNfd6Uhuj2aJHOAeQPNc2FbyF/dIDdYy/yb/meoh0bddvKy Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 8 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq Deprecated: password_hash(): Use of the 'salt' option to password_hash is deprecated in /in/GBGX5 on line 14 $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for hhvm-3.12.0
$2y$10$5.EqrHz1MJTSmz6kwj1lGeF/VKPMqvrEccg5FLUSibKLJwNiBtCM. $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
$2y$10$caIGOPZkEmTGXyLwz.cefOBy1bmUNVuIfeH8Llyu7CngHY5jbKisG $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.6.21
$2y$10$VuYDMn13ORkAdyUKPrGLU.wGl9jWBMr3JS2afMv0bFCzZwkGPtZza $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.6.20
$2y$10$rM.grVYUkSsHxGUDXWQ/Kul/xAkUTQI3V4SeK4Uh.5E9Kfn.DxQ2S $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.6.19
$2y$10$JK/h2bbTFsHfIKLm67UhoO2OT.gaj1xZs5E.4fE4Nkmj66XLo2Lia $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.6.18
$2y$10$XR99c27VPrbI41bNwkhie.3trvVmToD7yvxSwPCGfCL4YWZ5Ihi/m $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.6.17
$2y$10$bZsXf7BUDDC25zTONwW2FukiDbD7m0COe2qfEGUngux/NVSZGAU0y $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.6.16
$2y$10$9PyYDmEORJU4zhyw/cZeiOu2N7WnqaE.ku3NG04l3PNnYPlMvVXu6 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.6.15
$2y$10$4fDB8oVefiQRB7gwDNLVP.OW1ckq7uESbr2ABTBVGtQwam1o0ozLu $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.6.14
$2y$10$3/02sXIyL2HsT4Ch0IPErevdigbGEkA0993.vtJGtO36DSd0rbNFm $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.6.13
$2y$10$8YVPCuu9koAyPO5m.sN2JeGrftD0kdNdZunFYPt/c.jnldumgB72G $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.6.12
$2y$10$AFxU3ykoxIZdSbMoSdioF.gmU6lti1rGYpOODJIhBZtbDZ19gWJLK $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.6.11
$2y$10$pwzw1TU9Phx4fGcYfcbaiOPPr7yyHXDA/tLLXAyCAmxNih5OloDfa $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.6.10
$2y$10$acsBqnSxq3kozQ/qtDCh9e7T8I11JrsXLFsXVsUkHvUXdu78JGphe $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.6.9
$2y$10$9fhGM8NadU2jYKDyjYm.relre2nhxsm4hsVIA5eimmPhLOuQb35Lm $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.6.8
$2y$10$pK8K07QaHB72tt97.jcPcO0LEglW0Q0pEdMZiXTBZBowSQRWw5C3i $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.5.35
$2y$10$6jfq/6japLD7.wPgXCWvUuTd7CmlFuAAgmBb56UUolChFWdtsFcqy $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.5.34
$2y$10$96cQyIxMak18fO4Pn0s5YOXuG3rNHdHlJHrorbrHCnwKSHYQ9fykO $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.5.33
$2y$10$3QaMZRuSRCaGpKEy1RMEQe3XLtvGIXECom.pg8QLRLl6pnLU/Srba $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.5.32
$2y$10$aL39XDD6jyVLsjj1c.B/0e0/s1bm/yRkDi1/oXkV7X6Ys1vjfC5nG $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.5.31
$2y$10$3oITFT8uJZT8IaLf7JBGfu6/7JPNWjwKYiXNQhjm.CDEuaKHPwYhK $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.5.30
$2y$10$C.1kU4owh3riYMtMiiA.PeEHx/4YFxhHdafohVEM3tuk95btmg7We $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.5.29
$2y$10$.PkTw5y5U/BNo.xmdYDauec8J1NcGaTEbqw1kuIqQ5dQ3/LFIZzQu $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.5.28
$2y$10$w0ZYz/FM8d0w71UdnBT0NeHIo7xooYSBNvuvT1l0SnMjJkLAW1d3a $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.5.27
$2y$10$kS2QIVGAcJb7uIUvpHBHLOrB8FnqV4Or.scAOmmpuyHighrdlDJr2 $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.5.26
$2y$10$Yv6I7haTxN7T6mYYmIy2juK94Ex/5iCKz.qdRMszh99cX51jc2X7K $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.5.25
$2y$10$HDrY4/9TAU.IoTPIPpUUP.YdaiDHeNZJkTyHVkkYq.6Gs3QmQ7uAq $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.5.24
$2y$10$ToKA.Jz6KxWU7Kbk8p.88.bPKXeJSlsjK6hovZcKz/m1TMkbJZ0dO $2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq $2y$07$123456789012345678901urvSc6fIfMkJYJ1SIyKlq8EGSbFcAgR.
Output for 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/GBGX5 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/GBGX5 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/GBGX5 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/GBGX5 on line 4
Process exited with code 255.