<?php class A { public function foo () { var_dump(__CLASS__); } } class B extends A {} (new A)->foo(); (new B)->foo();
You have javascript disabled. You will not be able to edit any code.