3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "02fe2175fc7556b82592f066738d31f5427f4f21b07a1ad8806e35f699eab0f8"; $public_seed = "2405250708"; $round = "5774527"; $hash = hash('sha256', $server_seed . "02fe2175fc7556b82592f066738d31f5427f4f21b07a1ad8806e35f699eab0f8" . $public_seed . "2405250708" . $round); $roll = hexdec(substr($hash, 0, 8)) % 15; if ($roll == 0) $roll_colour = 'bonus'; elseif ($roll >= 1 and $roll <= 7) $roll_colour = 'orange'; elseif ($roll >= 8 and $roll <= 14) $roll_colour = 'black'; echo("Roll: $roll\nColour: $roll_colour");
based on 21er6
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.26, 7.4.0 - 7.4.13, 8.0.0
Roll: 14 Colour: black