mirror of
https://github.com/php/php-src.git
synced 2024-10-14 04:52:33 +00:00
19 lines
343 B
Plaintext
19 lines
343 B
Plaintext
|
--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
|