What are the potential risks of using md5 encryption for passwords in PHP applications?

Using MD5 encryption for passwords in PHP applications is not recommended as MD5 is considered to be a weak hashing algorithm that can be easily cracked using modern computing power. Instead, it is recommended to use stronger hashing algorithms such as bcrypt or Argon2 for securely storing passwords in PHP applications.

```php
// Example of securely hashing a password using bcrypt
$password = "password123";
$hashed_password = password_hash($password, PASSWORD_BCRYPT);
```

This code snippet demonstrates how to securely hash a password using bcrypt in PHP.