is_php_version_compatible() – Checks compatibility with the current PHP version.
You appear to be a bot. Output may be restricted
Description
Checks compatibility with the current PHP version.
Usage
$bool = is_php_version_compatible( $required );
Parameters
- $required
- ( string ) required – Minimum required PHP version.
Returns
bool True if required version is compatible or empty, false if not.
Source
File name: wordpress/wp-includes/functions.php
Lines:
1 to 3 of 3
function is_php_version_compatible( $required ) { return empty( $required ) || version_compare( PHP_VERSION, $required, '>=' ); }