What are the potential security risks associated with using md5 for password hashing in PHP scripts?

Using md5 for password hashing in PHP scripts is not secure because it is considered a weak hashing algorithm that can be easily cracked using modern computing power. It is recommended to use stronger algorithms like bcrypt or Argon2 for password hashing to ensure better security for user passwords.

// Using bcrypt for password hashing
$password = "password123";
$hashed_password = password_hash($password, PASSWORD_BCRYPT);