eval.in

Paste #60288

PHP — PHP 5.5.1, pasted 5 months ago

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
<?php
$time = microtime(true);
for($i=0;$i<10000000;$i++)
  rand();
var_dump(microtime(true)-$time);

$time = microtime(true);
for($i=0;$i<10000000;$i++)
  mt_rand();
var_dump(microtime(true)-$time);
?>

Program Output

float(0.69960689544678)
float(0.64139199256897)

Time limit exceeded

Fork