3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $password = password_hash('miroslaw', PASSWORD_DEFAULT); $input = 'miroslaw'; echo $password. PHP_EOL; echo password_verify('miroslaw', $password) ? 'Good' : 'Bad';
Output for 7.2.0
$2y$10$n6VIGD.A4mtIMXH4z/oieebFmNovSqJfuV3gIUAaMGvhektsb8pYK Good
Output for 7.1.10
$2y$10$RILWkut0WfGgcG4pNOPX0eZkIxjk1d4t41pV1p1vfpVQJZE2MsfM2 Good
Output for 7.1.7
$2y$10$ToLb1zDm64nP8nx8MZ2wf.PJCdc0WrM8udY8AYbDrZpM0ncxuT.T6 Good
Output for 7.1.6
$2y$10$4gGKODraX1WW51W5vbVIMeFih5BCNBoOF9yOqtkxqz7VTBs8Qfw4O Good
Output for 7.1.5
$2y$10$gbZSQkBjllxfhSbQHXLVxeXvje0OxUPtfz2F5dbFUfS3jRij99yEW Good
Output for 7.1.0
$2y$10$P5zaFoju3Jfr2cdRYzM9eur6x9z5a5mTCL/LxCzUi2/ETf9ZVe11. Good
Output for 7.0.20
$2y$10$g4G.VzUeIxB94Th0ZRsue.Y1oid6DZtd32chPwLD5PYnzmSCVII1W Good
Output for 7.0.6
$2y$10$L9y4gTNl4PP8XQkJ0wiqdu0D714zDo/eoaIxQrvscBU5A8Vx8Dr8i Good
Output for 7.0.5
$2y$10$8ZoHDYsY9p2CuVSU80FDROX74.WUWI6G5c4bZHexs1nejH31gnSSu Good
Output for 7.0.4
$2y$10$j/CCcDJdjb7sAFnpNzjooOJN4w79Y/SfwMFtiRpOYRpV77yZdvugm Good
Output for 7.0.3
$2y$10$K3DBdYKTlthXegy5g9RZo.h//8lZNH/rC914I0IgJZXsvHJbSDsN6 Good
Output for 7.0.2
$2y$10$a.crhy6UFNSq.7UEknO8pOV.aaYxyR2sijsnpcthRTtVpebe3ZrH. Good
Output for 7.0.1
$2y$10$K6LzWu5DQPZFvW3ah77PZuJg17P/vq8/c.zT0UiShKZ/3kxdXe8/m Good
Output for 7.0.0
$2y$10$xyX0ZYwF3I0htixCIfVOT.5VOTYSGelDlovBh3SOoQxTq3.FK3oMy Good
Output for 5.6.28
$2y$10$hSycxBDxsrC4vATTEaY4XOmdRHQYzGFW9c61sqbsZhDpjuZwmykxG Good
Output for 5.6.21
$2y$10$pDvuJ/8h2t7r1ys0rJCrF.uuAO//W8jV1.ZYnwRCwKTXKWPrw.HNi Good
Output for 5.6.20
$2y$10$DTt/0ye88wP6zNAiYwjZPegZqOJ02nUQjdxrodbzD66.yjHhNzCWW Good
Output for 5.6.19
$2y$10$lExsU87vTXGYpVV5VJI9x.okPvLyaEZIV6uRRT5FYm.uHR9C5CcLy Good
Output for 5.6.18
$2y$10$XfOpvRAatGJahn7joG5a6eQKe0VKlPNAR1vtUQnKr7Lxd/un.4Ecu Good
Output for 5.6.17
$2y$10$D0NFr4msf/r9HDv84HpnI.yoUX3HNlrmcdV/BanLRMR/07L9w7aYq Good
Output for 5.6.16
$2y$10$pRa1O3P1tHN0JhOmpVv0iuG6jUuZvOHkou/nyXTpO1yssops4yIxS Good
Output for 5.6.15
$2y$10$TXhVzEyfoF1EbYjBZLTwVe/27PD2gV2/uUsZZJxa.a5NO4s1lO1wO Good
Output for 5.6.14
$2y$10$6FG/C4YofrrPIjvat0zCoOYFE1S9sZ7jXIfLGotGj.4Px91WgOcXS Good
Output for 5.6.13
$2y$10$qXoM/lYLDnLLZtNxpqtwheqPZSNpbX4sx9BQ6jTtVpuLwW/QbTDKa Good
Output for 5.6.12
$2y$10$.iTio5uoPhfTjBvLAEWcPOH4WGNnhz6HMEriN0FH4MFik/eVVCkDe Good
Output for 5.6.11
$2y$10$sxufj2YrBE1p1njeCTHOP.bBotW4gLktu6vUFb8Ple0ecCmB47svu Good
Output for 5.6.10
$2y$10$Mbv.jtw6A460ji3UwHO0cehcLiWXHf/e7u9rtr06aBeDwfK5ZDnB2 Good
Output for 5.6.9
$2y$10$dFt0CLzWR/by7nn7cKMsWur8XQHt92ZM/BXofpGMvyvX.p8y85hba Good
Output for 5.6.8
$2y$10$JSMzGZJwC70S8wZYBPJmhOxu2EKBO0swqNW9BF02XhVjy/zr6bony Good
Output for 5.5.35
$2y$10$9h876njxRDX6qcOBM6PDLu3aeAOC9H4PDYsjOdRzD3WeYVCDN6AQ. Good
Output for 5.5.34
$2y$10$INlKb.p3hbgkZmIm3Yb7hOdIE0ec/HQ/SYtS2hbIvNtWJsCAk/3ui Good
Output for 5.5.33
$2y$10$GFPaLqkgk.KVs0sXX.zBR.RSFmAxClJq7pb0KB8x8Det5ZRBd.QJ. Good
Output for 5.5.32
$2y$10$ogQzF/opVS1.4bW5mGCDp.KPrrSVq9RIrc4ck9pDybbhL2QIv5ugy Good
Output for 5.5.31
$2y$10$Id2lMAXrHyQi0JnKxCK92uABNbrUmK7zt5rG6hzfJTVAz.i43Ezhm Good
Output for 5.5.30
$2y$10$Tr79DFsDroeIU4k8oOBIleE4jYMnnWL7m7CQbGxmA6BC9C/ZaN8wG Good
Output for 5.5.29
$2y$10$hAe3ND65FFb/WlHDlEm66OJknUl2DHwwQpG5dPithqWIa6LkFtn4K Good
Output for 5.5.28
$2y$10$M568QXpUuQuzwcZQZTrNYeaUHfrkrlVL.v3XsqsXz5C4gtOhGaCfK Good
Output for 5.5.27
$2y$10$LzjUm51lycMu6PWNNfKJRu/De/GksJ3zGmHmLxKR9dyDWL/vE5cDG Good
Output for 5.5.26
$2y$10$GSjz9xb5Vebgu7P5FdaH3OvZuG3YHzA.D1koV.rU6sBKxTlS4srx2 Good
Output for 5.5.25
$2y$10$GOP2O2rhwJJHZZzSVDwv3uKq6MDxWVzUZjXXQieS80aevNr8Hzz6K Good
Output for 5.5.24
$2y$10$3pL8fg/qFwSNbM1TWuXMpuKVZvC95zDE7tMBrf79Vn4Qpgd.sOhbu Good
Output for 5.3.22 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/euBqE on line 3
Process exited with code 255.