What are the potential pitfalls of using MD5 for hashing in PHP?

Using MD5 for hashing in PHP is not recommended due to its vulnerabilities to collision attacks and its weak encryption strength. It is better to use stronger hashing algorithms such as SHA-256 or bcrypt for better security.

$hashed_password = password_hash($password, PASSWORD_BCRYPT);