3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "wD1Npmkxz0pTsHXNLojXIoG9DMTxiACRyuHQVkiJCt2wbTR9r8QBfKo1fh8SwhFn"; $public_seed = "676406627421"; $round = "2257"; $hash = hash('sha256', $server_seed . "-" . $public_seed . "-" . $round); $roll = hexdec(substr($hash, 0, 8)) % 29; if ($roll >= 15) $roll = $roll - 10; if ($roll >= 15) $roll = $roll - 10; if ($roll == 0) $roll_colour = 'gold'; elseif ($roll % 2 === 1) $roll_colour = 'black'; elseif ($roll % 2 === 0) $roll_colour = 'red'; echo("Roll: $roll\nColour: $roll_colour");
Output for git.master, git.master_jit, rfc.property-hooks
Roll: 12 Colour: red

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:
28.12 ms | 405 KiB | 5 Q