<?php class A{ } class B extends A { } function GiveA () : A { return new B(); } print_r(GiveA());
You have javascript disabled. You will not be able to edit any code.