blob: 2f0bd3dc351e991c0ca58d1d900e0a31fee8ba7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
$NI = 0;
#$AArray = new Array();
for ($NI = 0; $NI < 10000; ++$NI)
{
if ($NI % 2 == 0) { $AArray[$NI] = $NI; }
else
{
$NJ = 0;
for ($NJ = 0; $NJ < 100; ++$NJ)
{
$SKey = sprintf("_%d_%d_", $NI, $NJ);
$AArray[$NI][$SKey][10] = $NI;
}
}
}
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$elapsed = ($endtime - $starttime);
print("Time: " . $elapsed . "\n")
?>
|