Php.getVersion
Php.getVersion($options={}) -> string|number
Description
Return the PHP version.
Php.getVersion() //= '8.3.15'
Options
| Option | Value | Description |
|---|---|---|
num |
true/false | Return the version as a number that can be easily compared. |
Php.getVersion(-num)
//= 80315
if Php.getVersion(-num) >= 80300 {
print('You are using PHP 8.3+')
}