is_php_version_compatible( string $required )
Checks compatibility with the current PHP version.
Description Description
Parameters Parameters
- $required
-
(string) (Required) Minimum required PHP version.
Return Return
(bool) True if required version is compatible or empty, false if not.
Source Source
File: wp-includes/functions.php
function is_php_version_compatible( $required ) { return empty( $required ) || version_compare( phpversion(), $required, '>=' ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |