\d[\d\.]+)/', $sysDescr, $matches) || preg_match('/SunOS (release:)?(?\d[\d\.]+)/', $sysDescr, $matches)) { $version = $matches['version']; if (version_compare($version, '5.10', '>')) { $os = 'opensolaris'; if (str_contains_array($sysDescr, 'oi_')) { $os = 'openindiana'; } } } } } // EOF