3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $options = array('cost' => 10); $salt = 'OaZZhZgCp/VAldZFX2o6leedzq6wLT.'; echo password_hash($salt, PASSWORD_BCRYPT, $options)."\n"; echo crypt('test123', '$2a$10$' . $salt);
based on Gbq7V
Output for 7.2.0
$2y$10$XrR/GPdoF5CecEmEY2KLB.8locP4UEB0wX//ZmjfrcTla5hYB.3I. $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 7.1.10
$2y$10$5QufuvN.PpeSFnKlc5Mlcue98OHXpTzADhbpcdLNgsmGt/R/0tQbe $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 7.1.7
$2y$10$7fLH8OvA.5b9KTRqodCpz.BqEeF4UVqHeDJFZm0Ek/ki3kBuAC4mW $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 7.1.6
$2y$10$RuJb.7xC.0dSrXgyVG0.i.0fU5VEIPRkv1vwhpNmelsYDun.PQOeW $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 7.1.5
$2y$10$4MM1Emovaw4GG9yjknwUy.dtGK79xzdsnSw7Ucg.sPJhMkqN4FXlW $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 7.1.0
$2y$10$7zWt2iwgSLsv3zJmePVlse9q.AyC8nUh8w.2sUmQfQEOugaQHbcny $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 7.0.20
$2y$10$KwMWeYJLqtPl4SLH4tirGe6Ojy1S8tTJQuvXi5KurZhxUOjWlHd2m $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 7.0.6
$2y$10$QgMy4g7x7RQP54sAevLzr.CO4zkiSeBykltykuNrW8/dn.fP0gUaG $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 7.0.5
$2y$10$JK9sMto26s2lrhm3LsLdTOMEFS39nUsc52Qc3qDMyJC9X865D3sAW $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 7.0.4
$2y$10$1y4PbkcuFO678KftHfcsouUG18TZa89tlLE.9BQIV5fwumIhRw9wq $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 7.0.3
$2y$10$h8xeL1ljf.IYJwhRW5/15uGCYqf.Eqs0/Vd2EKofq5TN8ZdrxpLgC $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 7.0.2
$2y$10$GvyFoVj5BXmcYoojZzaPEeVr6Sns7rNzLMxWSMr5g51nx3yndiVoi $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 7.0.1
$2y$10$tkv18CDXRsQ83qx/OraAJ.eLlWNvG1JDUGdXK0rtJpYbKvLJHTEW6 $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 7.0.0
$2y$10$/iUNYYuvlMJVlzWDQsjBzuJn6eYwnw2sTRLUC0jDGGQ8jZzcK5Maq $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.28
$2y$10$z9tdTb1i7rlBUomtMyI5uO5wt7yiNWhWX4Dtav0dkqf3tkx2.8E96 $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.21
$2y$10$Eki6xZua/h5z5bN8fPXk5OLL8PbYf8mHOj5MvdwQ7iVaVl4azDAn2 $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.20
$2y$10$SKtJC9i6Ob7rtlOPCyNjA.eEEXroUTD3EHkUtTCICLclPeub38L5S $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.19
$2y$10$8ymGzUnR8n.5xjjRKchV/OmGv61SPRxACK3cNKHrBhSYlAxfAS7Fy $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.18
$2y$10$2YgwFrZELGbszVITFuFGbOTtAYnbHhNLLc260t3e2hbgAbb2Oi.o. $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.17
$2y$10$OzUf8z4gID8I69DO200zL.0yHwdO8kumnrSzAyFR5CI4qfutOIprW $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.16
$2y$10$95HmhN8ztte6.DjXEk16TO.Tob70eUAx7Ro2CtBCcooXPHXvF3MqW $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.15
$2y$10$SiS3UVMTcIZPIES57voJaeHrVg.3JHlfdDMyytCTz1TpQiVuM5hl6 $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.14
$2y$10$nISX73qUI76/vXeqNX1M2.y.HKTHbUkd4JMMr7hCqJKmVI2SHWKb2 $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.13
$2y$10$xhESxOL0SylT9FRqrA.M..jii8pNwlMAIZkh7Nw9vBE4BQWN5MMmC $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.12
$2y$10$9Ifb8rtsa.kxgZVqhWpwHOdSqN6OAn50GO6kyaQhP8Dm2HNCNgNYy $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.11
$2y$10$.QnQqU74bvrjxq12o3SVXO9oiShXUJ956gRZwjTj1Q9Arcuo5bqE. $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.10
$2y$10$cd4KCTesLsx80TVHZ4Iy6.b8u2ra028vPCPe2cgWUTpCRCcbXgt7q $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.9
$2y$10$jwDZcZfUiAbld8PNQBPufeDujUy6e9WflrUFGvQX/MPl9D4rioyBm $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.6.8
$2y$10$dn8kU0fW/rvb4hJ.sfClouWjzc/vnzS7j1A2rI4AEJQwiCDfZOrjW $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.5.35
$2y$10$l6YHp5K1uuBj9FVvPI8D..Ato3R/.TJzsLa3YNrKmTfW58N8V8OQy $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.5.34
$2y$10$ouBff4UKbc5CxpOxwyM8DO.5iD6zwhLeo6y4W7FSILql8u9a8owUa $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.5.33
$2y$10$C0ht4qmYuRx1.N2aC/WFEuNE6XIU9SVHlGpt7p7aJQ0EnjC3zefCe $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.5.32
$2y$10$Q7toM.Fj4RllTjYJ3msSr.xN2FbxeyKhhQCZqJ5UHNUoRJTTtXdOG $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.5.31
$2y$10$zwpMhA2Lcj4y2AL/L/5U2O7/pgSy/pDa2jEzbqoejzZarSjePXd0i $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.5.30
$2y$10$Pc45darWOMY95wbL3lQi/ON1017qw3uP9WFzrjNvMGYDFEArSUX1O $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.5.29
$2y$10$6BYkETr7DCt5UO7b/smCGOqAtAyT1p6z6qjVAK0msxH4XJ8lOre1. $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.5.28
$2y$10$WBmr8qw6wkmtdF5zDjo5QOluMI6/PgyedDmNM8/RhAW.sMDlE8qcC $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.5.27
$2y$10$kfUG/U8VcBB.0Y3B5pWlnePNNJST3g0G36E6rq2B6oJX0YS5SHLNu $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.5.26
$2y$10$coleZ30yHQIAoI68uyF0rulm24jxXWBYALnilT1b1Rg66edFrMo7O $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.5.25
$2y$10$meTQx5AhLl3Tu6VW/mJQcukGGInwBIPkj.W20GTlx0tEwKqxhiW8a $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.5.24
$2y$10$NZ7toavomfx3UMuwv2L1y.gdtYGO5F8ncDlp7HQGQih.9jqPHQJVW $2a$10$OaZZhZgCp/VAldZFX2o6leedzq6wLT.S770.Hf1UkemwYsSRceUAi
Output for 5.3.20 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/7g2F7 on line 5
Process exited with code 255.