3v4l.org

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

preferences:
34.81 ms | 402 KiB | 5 Q