Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Return current Unix timestamp with microseconds
<?php microtime(bool $as_float = false): string|float
<?php     private function logStart(SymfonyStyle $io, string $requestId): float

    {

        $io->writeln("START RequestId: $requestId Version: \$LATEST");

        return microtime(true);

    }



    private function logEnd(float $startTime, SymfonyStyle $io, string $requestId): void
<?php     private function logEnd(float $startTime, SymfonyStyle $io, string $requestId): void

    {

        $duration = ceil((microtime(true) - $startTime) * 1000);

        $memoryUsed = ceil(memory_get_usage() / 1024 / 1024);



        $io->writeln([
<?php     public function getRemainingTimeInMillis(): int

    {

        return $this->deadlineMs - intval(microtime(true) * 1000);

    }
<?php             'SERVER_PROTOCOL' => $event->getProtocolVersion(),

            'REQUEST_METHOD' => $event->getMethod(),

            'REQUEST_TIME' => time(),

            'REQUEST_TIME_FLOAT' => microtime(true),

            'QUERY_STRING' => $event->getQueryString(),

            'DOCUMENT_ROOT' => getcwd(),

            'REQUEST_URI' => $event->getUri(),
<?php         self::assertNotEmpty($response['$_SERVER']['HOME']);

        unset($response['$_SERVER']['HOME']);

        self::assertEqualsWithDelta(microtime(true), $response['$_SERVER']['REQUEST_TIME_FLOAT'], 5, '');

        unset($response['$_SERVER']['REQUEST_TIME_FLOAT']);

        self::assertEqualsWithDelta(time(), $response['$_SERVER']['REQUEST_TIME'], 5, '');

        unset($response['$_SERVER']['REQUEST_TIME']);