public function removeOperand(Operand $op) { foreach ($this->vars as $key => $value) { if ($op === $value) { $op->removeUsage($this); unset($this->vars[$key]); $this->vars = array_values($this->vars); } } }