3v4l.org

run code in 200+ php & hhvm versions
<?php trait tr { public function a() { return $this->a; } } class Test { private $a; function b(){ print_r(a()); } }
Output for 7.1.25 - 7.4.0alpha2