public function compareTo($version)
    {
        $cmp = self::parse($version);
        $result = $this->cmp($cmp, $this->numbers);
        if ($result === 0) {
            $result = $this->cmp($this->numbers, $cmp);
            $result = - $result;
        } else {
            return $result;
        }
        return $result;
    }
public function compareTo($version)
    {
        $cmp = self::parse($version);
        $result = $this->cmp($cmp, $this->numbers);
        if ($result === 0) {
            $result = $this->cmp($this->numbers, $cmp);
            $result = - $result;
        } else {
            return $result;
        }
        return $result;
    }
public function compareTo ( $ version ) { $ cmp = self :: parse ( $ version ) ; $ result = $ this -> cmp ( $ cmp , $ this -> numbers ) ; if ( $ result === 0 ) { $ result = $ this -> cmp ( $ this -> numbers , $ cmp ) ; $ result = - $ result ; } else { return $ result ; } return $ result ; }
Compare current version to given version and
return -1 if current is less and +1 if current
version is greater than given version

@param $version string
@return array
Compare current version to given version and return - 1 if current is less and + 1 if current version is greater than given version