3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class AbstractShipment { protected $id = null; protected $type = null; public function getPackageNumbersForm(int $id, string $type, string $errors, float $leftToPayAmount) { //return $this->packageNumber->getPackageNumbersForm( var_dump(array( $id, $type, $errors, $leftToPayAmount )); } } abstract class AbstractSpecificShipment extends AbstractShipment { public function getPackageNumbersForm(string $errors = '', $leftToPayAmount = 0) { return parent::getPackageNumbersForm($this->id, $this->type, $errors, $leftToPayAmount); } } class OrderShipment extends AbstractSpecificShipment { public function __construct(int $orderId) { $this->id = $orderId; $this->type = 'order'; } } $shipment = new OrderShipment((int)1); $shipment->getPackageNumbersForm('error', 100);

This is an error 404

There are `0` results


preferences:
144.6 ms | 1403 KiB | 7 Q