3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private $c = 1; public function aMethod() { return $this->c; } } class B extends A { private $c = 2; public function bMethod() { return $this->c; } } $b = new B(); var_dump($b->aMethod(), $b->bMethod()); print_r($b);

preferences:
40.95 ms | 402 KiB | 5 Q