<?php class a { function foo() { echo __CLASS__; // a print get_class($this); // a or b } } class b extends a {} (new b)->foo();
You have javascript disabled. You will not be able to edit any code.