3v4l.org

run code in 300+ PHP versions simultaneously
<?php $private_seed_hash = "d5acec5aca03f56c880557776dc4ad1c52efee3b75793214fa9ff7c557f112c2"; $private_seed = "f5fdb275d44df0bd39c2eca3709e6d83"; $public_seed = "1a4dba102d4bc799e1f6a7d18251a2d0d2e42b4a85d126857a5049822870a058"; $round = "81315515"; if (hash('sha256', $private_seed) != $private_seed_hash) { echo "WARNING: Private seed hash does not match private seed!\n"; } $hash = hash('sha256', "$private_seed-$public_seed-$round"); $flip = (hexdec(substr($hash, 0, 8)) % 2) + 1; echo "Result: " . ($flip == 1 ? 'Heads (T)' : 'Tails (CT)');
Output for git.master_jit, git.master
Result: Tails (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:
56.06 ms | 405 KiB | 5 Q