src/BitSet.php
public function logicalXor(self $other){
		
		$l = \max(array($this->count(), $other->count()));
		$new = new static();
		
		for($i = 0; $i < $l; ++$i){

			if(isset($this[$i], $other[$i])){
				$new[$i] = (bool)($this[$i] ^ $other[$i]);
			}
			else{
				$new[$i] = false;
			}
			
		}
		
		return $new;
		
	}
public function logicalXor(self $other){
		
		$l = \max(array($this->count(), $other->count()));
		$new = new static();
		
		for($i = 0; $i < $l; ++$i){

			if(isset($this[$i], $other[$i])){
				$new[$i] = (bool)($this[$i] ^ $other[$i]);
			}
			else{
				$new[$i] = false;
			}
			
		}
		
		return $new;
		
	}
public function logicalXor ( self $ other ) { $ l = \ max ( array ( $ this -> count ( ) , $ other -> count ( ) ) ) ; $ new = new static ( ) ; for ( $ i = 0 ; $ i < $ l ; ++ $ i ) { if ( isset ( $ this [ $ i ] , $ other [ $ i ] ) ) { $ new [ $ i ] = ( bool ) ( $ this [ $ i ] ^ $ other [ $ i ] ) ; } else { $ new [ $ i ] = false ; } } return $ new ; }
Returns a new BitSet after XORing this set with another
@param self $other
@return \static
Returns a new BitSet after XORing this set with another