Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Gets the current PHP version
<?php phpversion(?string $extension = null): string|false
<?php         static::addToSection('Environment', fn () => [

            'Application Name' => config('app.name'),

            'Laravel Version' => $this->laravel->version(),

            'PHP Version' => phpversion(),

            'Composer Version' => $this->composer->getVersion() ?? '<fg=yellow;options=bold>-</>',

            'Environment' => $this->laravel->environment(),

            'Debug Mode' => static::format(config('app.debug'), console: $formatEnabledStatus),
<?php     protected function phpRedisVersionAtLeast(string $version): bool

    {

        $phpredisVersion = phpversion('redis');



        return $phpredisVersion !== false && version_compare($phpredisVersion, $version, '>=');

    }
<?php             Arr::get($config, 'retry_interval', 0),

        ];



        if (version_compare(phpversion('redis'), '3.1.3', '>=')) {

            $parameters[] = Arr::get($config, 'read_timeout', 0.0);

        }
<?php             $parameters[] = Arr::get($config, 'read_timeout', 0.0);

        }



        if (version_compare(phpversion('redis'), '5.3.0', '>=') && ! is_null($context = Arr::get($config, 'context'))) {

            $parameters[] = $context;

        }
<?php             isset($options['persistent']) && $options['persistent'],

        ];



        if (version_compare(phpversion('redis'), '4.3.0', '>=')) {

            $parameters[] = $options['password'] ?? null;

        }
<?php             $parameters[] = $options['password'] ?? null;

        }



        if (version_compare(phpversion('redis'), '5.3.2', '>=') && ! is_null($context = Arr::get($options, 'context'))) {

            $parameters[] = $context;

        }