$hash_password = crypt('your_password');
echo $hash_password . "<br />";
$user_input = "your_password";
$hash_user_input = crypt($user_input, $hash_password);
echo $hash_user_input . "<br />";
if ($hash_password == $hash_user_input)
echo "Password verified";
/*
run:
$1$3R/.Ou/.$PrRbSsidby6qp9k.A/Aeh0
$1$3R/.Ou/.$PrRbSsidby6qp9k.A/Aeh0
Password verified
*/