3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serverSeed = '4aac3d2c5f1a0750abdd8b3b26aec3018877da8acdfe46523baa53e9586023d0ffafcddfb1463c17341e3e3f9d9eba73a4952ab61f572e328afa024ea01d311d'; $clientSeed = 'TWE2SmlF0yOPU5UT'; $nonce = '1'; { $seed1= $serverSeed.','.$clientSeed.','.$nonce; $seed=hash("sha512",$seed1); $offset=0; do{ $number=substr($seed,$offset,5); $number=hexdec($number); $offset+=5; } while($number > 999999); $luckyNumber = ($number % 10000) / 100; echo $luckyNumber; echo nl2br ("\n"); }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
vld0.0080.01216.69
git.master0.0080.00816.85
git.master_jit0.0070.01216.93
rfc.partials0.0100.00616.87
rfc.literals0.0090.01016.99

preferences:
122.56 ms | 454 KiB | 5 Q