3v4l.org

run code in 300+ PHP versions simultaneously
<?php $verify = array( "seed" => "9c3dabc67538ac6d725659b8172e0827a2b700f330ec8d443ee597f4ec575c77", "salt" => "05eba7cea3", "round_id" => "215358" ); $win_num = hexdec(substr(hash("sha256",$verify['seed']."-".$verify['salt']."-".$verify['round_id']),0,8)) % 15; echo "Result for game #".$verify['round_id'].": ".$win_num;
Output for 5.5.0 - 5.5.36, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.14, 8.4.1
Result for game #215358: 8

preferences:
85.63 ms | 408 KiB | 5 Q