PHPize Online / SQLize Online

Articles    Popular

phpversion

Tags: PHP 5.x PHP 7.x PHP 8.x

phpversion — Gets the current PHP version

Description


phpversion(string $extension = ?): string
Returns a string containing the version of the currently running PHP parser or extension.

Parameters

extension
An optional extension name.

Return Values

If the optional extension parameter is specified, phpversion() returns the version of that extension, or false if there is no version information associated or the extension isn't enabled.

PHPize.online - New phpversion snippets