Is it possible to encrypt a 5-digit password with MD5 and then encrypt the MD5 hash again?

It is possible to encrypt a 5-digit password with MD5 and then encrypt the MD5 hash again. This process is known as double hashing and can provide an additional layer of security to the password. By hashing the already hashed password, it makes it more difficult for attackers to crack the password.

$password = "12345";
$hashed_password = md5($password);
$double_hashed_password = md5($hashed_password);

echo $double_hashed_password;