A hash-function is a one-way cryptographic algorithm (one-way means that you can't calculate the input from a given output). It takes an input and spits out a pretty long number (often represented in hex format). So when you apply a hash algorithm on a given input (in your case you apply the whirlpool algorithm on "hello") it returns a digest (in your case digest hex string would be 0a25f55d7308eca6b9567a7ed3bd1b46327f0f1ffdc804dd8bb5af40e88d78b88df0d002a89e2fdbd5876c523f1b67bc44e9f87047598e7548298ea1c81cfd73). Obviously "hello" does not equals "0a25f..".
A common scenario for using hash algorithms is to secure passwords persisted in a database or some other kind of identity storage. So when comparing a given password (e.g. submitted by a user) you have to calculate the hash of this given password and compare it to the stored hash.
So instead of comparing "hello" to the previously generated hash, you would like to compare the hash of "hello" to the previously generated hash.
$hash = hash("whirlpool","hello");
if(hash("whirlpool","hello") === $hash){
echo "true";
}
Assuming that you want to check a submitted password, you could write something like this:
$pw_stored = "0a25f..." //(... left out some chars) that's the hash you got from the db
if(hash('whirpool', $_POST['password']) === $pw_stored){ // $_POST['password'] is the password a user has entered in a login form
echo "true";
}