3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private static $hello = 'hi'; public static function doStuff() { return $this->hello; } } $a = new A(); var_dump($a->doStuff());

preferences:
36 ms | 402 KiB | 5 Q