note 130352 added to function.microtime

From: Date: Fri, 06 Jun 2025 07:20:21 +0000
Subject: note 130352 added to function.microtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-222204@lists.php.net to get a copy of this message
The following tests execute with PHP 8.3.20 $start = microtime(true); for ($i = 0; $i < 10000000; $i++) { $temp = 3 ** 1000; } $end = microtime(true); echo "Exec time = " . ($end - $start) . " Second(s)" . PHP_EOL; } >> Exec time = 0.047096014022827 Second(s) === $start = microtime(true); for ($i = 0; $i < 10000000; $i++) { $temp = pow(3, 1000); } $end = microtime(true); echo "Exec time = " . ($end - $start) . " Second(s)" . PHP_EOL; } Exec time = 0.41157102584839 Second(s) ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 210.61.66.43) ---- Manual Page -- https://php.net/manual/en/function.microtime.php Edit -- https://main.php.net/note/edit/130352 Del: integrated -- https://main.php.net/note/delete/130352/integrated Del: useless -- https://main.php.net/note/delete/130352/useless Del: bad code -- https://main.php.net/note/delete/130352/bad+code Del: spam -- https://main.php.net/note/delete/130352/spam Del: non-english -- https://main.php.net/note/delete/130352/non-english Del: in docs -- https://main.php.net/note/delete/130352/in+docs Del: other reasons-- https://main.php.net/note/delete/130352 Reject -- https://main.php.net/note/reject/130352 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#222204) next »