← All docs

microtime()

Returns the current Unix timestamp with microseconds.

microtime()

function microtime(bool $as_float = false): mixed

Returns the current Unix timestamp with microseconds.

Parameters:

  • $as_float (bool), default false, optional

Returns: mixed

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how microtime is implemented in the compiler, see the internals page.