operands !== null) { return $this->operands; } return $this->operands = new Operands(); } public function execute(): void { parent::execute(); $rightOperand = Normalizer::getPrimitiveValue($this->popFromOperandStack()); $leftOperand = Normalizer::getPrimitiveValue($this->popFromOperandStack()); if ($leftOperand > $rightOperand) { $this->pushToOperandStack( Int_::get(1) ); return; } if ($leftOperand < $rightOperand) { $this->pushToOperandStack( Int_::get(-1) ); return; } $this->pushToOperandStack( Int_::get(0) ); } }