private function getMacOsId() : ?string { $out = exec('ioreg -rd1 -c IOPlatformExpertDevice | awk \'/IOPlatformUUID/ { split($0, line, "\\""); printf("%s\\n", line[4]); }\''); if ($out !== false) { return $out; } return null; }