3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = ""; $lotto = "1016171938"; $round_id = "11897"; $hash = hash("sha256",$server_seed."-".$lotto."-".$round_id); $roll = hexdec(substr($hash,0,8)) % 15; // Print værdien af $hash print("\$hash = $hash</br>"); // Prifdec(856672a7) = ".(String)hexdec(substr($hash,0,8))."</br>"); // Print værdien af 856672a7 % 15 print("2238083751 % 15 = ".(2238083751 % 15)."</br>"); // Print værdien af roll print("\$roll = $roll"); ?>
Output for git.master, git.master_jit, rfc.property-hooks
$hash = 810edb496719a898b12900c99349f2056a2023e29a78d667f9c32945a4a7aa03</br>2238083751 % 15 = 6</br>$roll = 0

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
59.11 ms | 401 KiB | 8 Q