run code in 300+ PHP versions simultaneously
<?php $serverSeed ="ef2809b1d2b6968a02efaaa3e91e59491326fb0bf4d95c35ace509e96e207033fba4e5f632ebbf4d6035c5bc2bcb081ba8abc1e629c15aea47b3495dbc8aabd2"; $clientSeed ="TWE2SmlF0yOPU5UT"; $nonce ="14"; { $seed=hash_hmac('sha512',$clientSeed .','. $nonce, $serverSeed); $offset=0; do{ $number=substr($seed,$offset,5); $number=hexdec($number); $offset+=5; } while($number > 999999); $luckyNumber = ($number % 10000) / 100; echo $luckyNumber; }
Output for git.master, git.master_jit, rfc.literals, rfc.partials

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

33.98 ms | 458 KiB | 5 Q