3v4l.org

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

preferences:
56.38 ms | 402 KiB | 5 Q