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         on('mount', function ($component, $params, $key, $parent) {

            $start = null;

            if ($parent && config('app.debug')) $start = microtime(true);



            static::setParametersToMatchingProperties($component, $params);
<?php             return function ($html) use ($component, $key, $parent, $start) {

                if ($parent) {

                    if (config('app.debug')) trigger('profile', 'child:'.$component->getId(), $parent->getId(), [$start, microtime(true)]);



                    preg_match('/<([a-zA-Z0-9\-]*)/', $html, $matches, PREG_OFFSET_CAPTURE);

                    $tag = $matches[1][0];
<?php         $context = new ComponentContext($component, mounting: true);



        if (config('app.debug')) $start = microtime(true);

        $finish = trigger('mount', $component, $params, $key, $parent);

        if (config('app.debug')) trigger('profile', 'mount', $component->getId(), [$start, microtime(true)]);
<?php         if (config('app.debug')) $start = microtime(true);

        $finish = trigger('mount', $component, $params, $key, $parent);

        if (config('app.debug')) trigger('profile', 'mount', $component->getId(), [$start, microtime(true)]);



        if (config('app.debug')) $start = microtime(true);

        $html = $this->render($component, '<div></div>');
<?php         $finish = trigger('mount', $component, $params, $key, $parent);

        if (config('app.debug')) trigger('profile', 'mount', $component->getId(), [$start, microtime(true)]);



        if (config('app.debug')) $start = microtime(true);

        $html = $this->render($component, '<div></div>');

        if (config('app.debug')) trigger('profile', 'render', $component->getId(), [$start, microtime(true)]);
<?php         if (config('app.debug')) $start = microtime(true);

        $html = $this->render($component, '<div></div>');

        if (config('app.debug')) trigger('profile', 'render', $component->getId(), [$start, microtime(true)]);



        if (config('app.debug')) $start = microtime(true);

        trigger('dehydrate', $component, $context);
<?php         $html = $this->render($component, '<div></div>');

        if (config('app.debug')) trigger('profile', 'render', $component->getId(), [$start, microtime(true)]);



        if (config('app.debug')) $start = microtime(true);

        trigger('dehydrate', $component, $context);



        $snapshot = $this->snapshot($component, $context);
<?php         trigger('dehydrate', $component, $context);



        $snapshot = $this->snapshot($component, $context);

        if (config('app.debug')) trigger('profile', 'dehydrate', $component->getId(), [$start, microtime(true)]);



        trigger('destroy', $component, $context);
<?php         $data = $snapshot['data'];

        $memo = $snapshot['memo'];



        if (config('app.debug')) $start = microtime(true);

        [ $component, $context ] = $this->fromSnapshot($snapshot);



        $this->pushOntoComponentStack($component);
<?php         trigger('hydrate', $component, $memo, $context);



        $this->updateProperties($component, $updates, $data, $context);

        if (config('app.debug')) trigger('profile', 'hydrate', $component->getId(), [$start, microtime(true)]);



        $this->callMethods($component, $calls, $context);
<?php         $this->callMethods($component, $calls, $context);



        if (config('app.debug')) $start = microtime(true);

        if ($html = $this->render($component)) {

            $context->addEffect('html', $html);

            if (config('app.debug')) trigger('profile', 'render', $component->getId(), [$start, microtime(true)]);
<?php         if (config('app.debug')) $start = microtime(true);

        if ($html = $this->render($component)) {

            $context->addEffect('html', $html);

            if (config('app.debug')) trigger('profile', 'render', $component->getId(), [$start, microtime(true)]);

        }



        if (config('app.debug')) $start = microtime(true);
<?php             if (config('app.debug')) trigger('profile', 'render', $component->getId(), [$start, microtime(true)]);

        }



        if (config('app.debug')) $start = microtime(true);

        trigger('dehydrate', $component, $context);



        $snapshot = $this->snapshot($component, $context);
<?php         trigger('dehydrate', $component, $context);



        $snapshot = $this->snapshot($component, $context);

        if (config('app.debug')) trigger('profile', 'dehydrate', $component->getId(), [$start, microtime(true)]);



        trigger('destroy', $component, $context);
<?php                 throw new MethodNotFoundException($method);

            }



            if (config('app.debug')) $start = microtime(true);

            $return = wrap($root)->{$method}(...$params);

            if (config('app.debug')) trigger('profile', 'call'.$idx, $root->getId(), [$start, microtime(true)]);