original_string: private function isWindowsTrueColor()
      {
          $result = 183 <= getenv('ANSICON_VER')
              || 'ON' === getenv('ConEmuANSI')
              || 'xterm' === getenv('TERM')
              || 'Hyper' === getenv('TERM_PROGRAM');
  
          if (!$result && \PHP_VERSION_ID >= 70200) {
              $version = sprintf(
                  '%s.%s.%s',
                  PHP_WINDOWS_VERSION_MAJOR,
                  PHP_WINDOWS_VERSION_MINOR,
                  PHP_WINDOWS_VERSION_BUILD
              );
              $result = $version >= '10.0.15063';
          }
  
          return $result;
      }
code: private function isWindowsTrueColor()
      {
          $result = 183 <= getenv('ANSICON_VER')
              || 'ON' === getenv('ConEmuANSI')
              || 'xterm' === getenv('TERM')
              || 'Hyper' === getenv('TERM_PROGRAM');
  
          if (!$result && \PHP_VERSION_ID >= 70200) {
              $version = sprintf(
                  '%s.%s.%s',
                  PHP_WINDOWS_VERSION_MAJOR,
                  PHP_WINDOWS_VERSION_MINOR,
                  PHP_WINDOWS_VERSION_BUILD
              );
              $result = $version >= '10.0.15063';
          }
  
          return $result;
      }
code_tokens: private function isWindowsTrueColor ( ) { $ result = 183 <= getenv ( 'ANSICON_VER' ) || 'ON' === getenv ( 'ConEmuANSI' ) || 'xterm' === getenv ( 'TERM' ) || 'Hyper' === getenv ( 'TERM_PROGRAM' ) ; if ( ! $ result && \ PHP_VERSION_ID >= 70200 ) { $ version = sprintf ( '%s.%s.%s' , PHP_WINDOWS_VERSION_MAJOR , PHP_WINDOWS_VERSION_MINOR , PHP_WINDOWS_VERSION_BUILD ) ; $ result = $ version >= '10.0.15063' ; } return $ result ; }
docstring: Returns true if the Windows terminal supports true color.
  
  Note that this does not check an output stream, but relies on environment
  variables from known implementations, or a PHP and Windows version that
  supports true color.
  
  @return bool
docstring_tokens: Returns true if the Windows terminal supports true color .