Q. What will be the output?
Code:
class A { public function test() { echo static::class; } }
class B extends A {}
(new B())->test();
β
Correct Answer: (B)
B
Explanation: Late static binding resolves to child class.