php_uname

PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8
php_uname - Returns information about the operating system PHP is running on
Manual
Code Examples

Example #1 A few OS related constant examples

that may come in handy, for example:

PHP Version:

Example #2 Some php_uname examples

PHP Version: