3v4l.org

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

preferences:
43.06 ms | 402 KiB | 5 Q