3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?PHP $client_seed = '914504a25e42c9bbfc388305cec7b0aa'; $server_seed = '7f53da7c6ee33561522f66fbdf1c10e844445a5997ebf0d5166c294f8c96ad9c'; $result_seed = hash_hmac('sha512', $server_seed, $client_seed); $result_number = hexdec(substr($result_seed,0,10)); $lucky_number = abs($result_number % 100); echo $lucky_number;
based on kCJIK
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
22