3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Vehicle { public function move (...$args) { var_dump($args); //echo "I'm moving from ", $this->pointA, " to ", $this->pointB; } } class Car extends Vehicle { public function move (...$args) { var_dump($args); return $this->drive($args); } private function drive (...$args) { var_dump($args); //echo "I'm driving from ", $this->pointA, " to ", $this->pointB; } } $bmw = new Car(); $bmw->move("home", "work");

preferences:
26.43 ms | 402 KiB | 5 Q