Check whether two versions are the same.
public function equals(PhpVersion $other) : bool { return $this->id === $other->id; }