original_string: public static function compareVersions($a, $b)
      {
          $versionPos = max(count($a), count($b));
          while (count($a) < $versionPos) {
              $a[] = 0;
          }
          while (count($b) < $versionPos) {
              $b[] = 0;
          }
  
          for ($v = 0; $v < count($a); $v++) {
              if ((int)$a[$v] < (int)$b[$v]) {
                  return '<';
              }
              if ((int)$a[$v] > (int)$b[$v]) {
                  return '>';
              }
          }
          return '=';
      }
code: public static function compareVersions($a, $b)
      {
          $versionPos = max(count($a), count($b));
          while (count($a) < $versionPos) {
              $a[] = 0;
          }
          while (count($b) < $versionPos) {
              $b[] = 0;
          }
  
          for ($v = 0; $v < count($a); $v++) {
              if ((int)$a[$v] < (int)$b[$v]) {
                  return '<';
              }
              if ((int)$a[$v] > (int)$b[$v]) {
                  return '>';
              }
          }
          return '=';
      }
code_tokens: public static function compareVersions ( $ a , $ b ) { $ versionPos = max ( count ( $ a ) , count ( $ b ) ) ; while ( count ( $ a ) < $ versionPos ) { $ a [ ] = 0 ; } while ( count ( $ b ) < $ versionPos ) { $ b [ ] = 0 ; } for ( $ v = 0 ; $ v < count ( $ a ) ; $ v ++ ) { if ( ( int ) $ a [ $ v ] < ( int ) $ b [ $ v ] ) { return '<' ; } if ( ( int ) $ a [ $ v ] > ( int ) $ b [ $ v ] ) { return '>' ; } } return '=' ; }
docstring: Comparing versions.
  @param array $a
  @param array $b
  @return string
  @since 0.2
docstring_tokens: Comparing versions .