3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function a(){ var_dump($this); } } class B { public function b(){ A::a(); } } $b=new B(); $b->b(); ?>

preferences:
50.81 ms | 402 KiB | 5 Q