title: How do I use the Argon2 algorithm with password_hash?
body: <p>So I heard that PHP 7.2 introduced the new <a href="https://wiki.php.net/rfc/argon2_password_hash" rel="noreferrer">Argon2 algorithm</a>. But I'm confused on how I can use it with my existing code. For instance, I have this</p>
  
  <pre><code>$password = password_hash('somepassword', PASSWORD_DEFAULT, ['cost' =&gt; 12]);
  </code></pre>
  
  <p>Does <code>PASSWORD_DEFAULT</code> now use Argon2? What, if anything, do I need to change with <code>password_verify</code>? Is bcrypt considered insecure now?</p>