summaryrefslogtreecommitdiff
path: root/ext/standard/tests/time/001.phpt
blob: 004a498baca3af361e8127d892de57124cc06105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
microtime() function
--POST--
--GET--
--FILE--
<?php
$passed = 0;
$failed = 0;
for ($i=1;$i<=100000;$i++)    {
   list($micro,$time)=explode(" ",microtime());
   $add=$micro+$time;
   $add<$last ? $failed++: $passed++;
   $last=$add; }
echo "Passed: ".$passed."\n";
echo "Failed: ".$failed."\n";
?>
--EXPECT--
Passed: 100000
Failed: 0