3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server_seed = "2697cc68ec98b327f6f945e6153d9ebd02f675e88f09998fd6149467e334dcad"; $public_seed = "9316595"; $round = "9316597"; $hash = hash('sha256', $server_seed . "-" . $public_seed . "-" . $round); $roll = hexdec(substr($hash, 0, 8)) % 15; if ($roll == 0) $roll_colour = 'bonus'; elseif ($roll >= 1 and $roll <= 7) $roll_colour = 'T'; elseif ($roll >= 8 and $roll <= 14) $roll_colour = 'CT'; echo("Roll: $roll\nColour: $roll_colour");
Output for git.master, git.master_jit, rfc.property-hooks
Roll: 11 Colour: CT

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