src/Viserio/Component/Profiler/DataCollector/PhpInfoDataCollector.php
public function collect(ServerRequestInterface $serverRequest, ResponseInterface $response): void
    {
        $this->data = [
            'php_version'      => \PHP_VERSION,
            'php_architecture' => \PHP_INT_SIZE * 8,
            'php_timezone'     => \date_default_timezone_get(),
            'sapi_name'        => \PHP_SAPI,
        ];

        if (\preg_match('~^(\d+(?:\.\d+)*)(.+)?$~', $this->data['php_version'], $matches) && isset($matches[2])) {
            // @codeCoverageIgnoreStart
            $this->data['php_version']       = $matches[1];
            $this->data['php_version_extra'] = $matches[2];
            // @codeCoverageIgnoreEnd
        }
    }
public function collect(ServerRequestInterface $serverRequest, ResponseInterface $response): void
    {
        $this->data = [
            'php_version'      => \PHP_VERSION,
            'php_architecture' => \PHP_INT_SIZE * 8,
            'php_timezone'     => \date_default_timezone_get(),
            'sapi_name'        => \PHP_SAPI,
        ];

        if (\preg_match('~^(\d+(?:\.\d+)*)(.+)?$~', $this->data['php_version'], $matches) && isset($matches[2])) {
            // @codeCoverageIgnoreStart
            $this->data['php_version']       = $matches[1];
            $this->data['php_version_extra'] = $matches[2];
            // @codeCoverageIgnoreEnd
        }
    }
{@inheritdoc}