PHP microtime() FunctionLast Updated : 17 Mar 2025 The PHP microtime() function is used to returns the current Unix timestamp with microseconds. Float value is return by this function. SyntaxParameters
ReturnThis function returns a string in the form "msec sec", where sec is the number of seconds, and msec measures microseconds that have elapsed since sec and is also expressed in seconds. Example 1Output: Did nothing in 0.0002589225769043 seconds Example 2Output: Did nothing in 0.0019979476928711 seconds Next TopicPhp-mktime-function |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India