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).
Version | System time (s) | User time (s) | Memory (MiB) |
---|---|---|---|
7.1.6 | 0.057 | 0.010 | 33.62 |
<?php
function random_entropy()
{
$ip = $_SERVER['REMOTE_ADDR'];
$ip_multiplex = multiply_ip($ip);
if(function_exists('openssl_random_pseudo_bytes'))
{
$i = time();
$i = ($i % 32);
$bytes = openssl_random_pseudo_bytes($i, $cstrong);
$hex = bin2hex($bytes);
$openssl_num = hexdec($hex);
}
if(function_exists('random_bytes'))
{
$i = time();
$i = ($i % 8);
$rand_num = random_bytes($i);
$rand_num = bindec($rand_num);
}
if(function_exists('mt_rand'))
{
$i = time();
$i_min = ($i % 4);
$i_max = ($i % 8);
$mt_rand_num = mt_rand($i_min, $i_max);
$mt_rand_num = ($mt_rand_num + $i_max) / $i_min;
}
return $ip_multiplex + $rand_num + $mt_rand_num;
}
function microtime_float()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
function multiply_ip($ip)
{
$ip_array = explode('.', $ip);
$number = 1;
foreach($ip_array as $node)
{
if($node == 0)
{
$node = microtime_float();
}
$number = $number * $node;
}
return round($number);
}
echo random_entropy();
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).
Version | System time (s) | User time (s) | Memory (MiB) |
---|---|---|---|
7.1.6 | 0.057 | 0.010 | 33.62 |