<?php class A { public string $v { get => 'Parent: '.$this->v; } } class B extends A { public string $v { get => 'Child: '.parent::$v::get(); } } $B = new B(); $B->v = 'test'; echo $B->v;
You have javascript disabled. You will not be able to edit any code.