c'è anche la costante PHP_OS che forse è meglio perché $_SERVER['SYSTEM'] contiene le informazioni del web server non di php