3v4l.org

run code in 300+ PHP versions simultaneously
<?php $class = 'UserBundle\Selbstsucht'; $username = 'voadi'; $expires = '1450869565'; $password = '782153'; $hash = hash('sha256', $class.$username.$expires.$password.$this->getKey()); $hashHmac = hash_hmac('sha256', $class.$username.$expires.$password, $this->getKey()); echo $hash; echo $hasHmac;

preferences:
47.44 ms | 402 KiB | 5 Q