// Get the full details of the operating system
$osDetails = php_uname();
// Get the OS name
$osName = php_uname("s");
// Get the OS release/version
$osVersion = php_uname("r");
echo "Operating System: $osName\n";
echo "Version: $osVersion\n";
echo "Details: $osDetails\n";
/*
run:
Operating System: Linux
Version: 6.6.72+
Details: Linux prod-repl-php-68567fd8b9-m7n9t 6.6.72+ #1 SMP PREEMPT_DYNAMIC Sat Feb 8 10:02:01 UTC 2025 x86_64
*/