3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $result_seed = 0; $result_number=0; $lucky_number=0; $client_seed = '5293.74758167'; $server_seed = '92aeb6d87ec67eef825b63862001863c920b7e13929ee5ca089027badee2aecc'; $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 to5J1
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
58