microtime true while mt_rand mt_rand mt_rand mt_rand mt_rand mt_rand i

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
$t=microtime(true);
while(1) {
$q=mt_rand(0,9);
$w=mt_rand(0,9);
$e=mt_rand(0,9);
$r=mt_rand(0,9);
$t=mt_rand(0,9);
$y=mt_rand(0,9);
if($q+$w+$e==$r+$t+$y) {
echo $q+$w+$e;
echo '=';
echo $r+$t+$y;
break;
} else {
continue;
}
}
printf("<br /> %0.04f", microtime(true) - $t);