fork(10) download
  1. <?php
  2.  
  3. $senha = "151201";
  4.  
  5. $hash = password_hash($senha, PASSWORD_DEFAULT);
  6.  
  7. if (password_verify($senha, $hash)) {
  8. $teste = "Senha correta";
  9. echo $teste;
  10. } else {
  11. $teste = "Senha incorreta";
  12. echo $teste;
  13. }
Success #stdin #stdout 0.12s 82880KB
stdin
Standard input is empty
stdout
Senha correta