3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected static $bar = 'bar'; function test() { echo 'Non-static access: ', var_export($this->bar, true), PHP_EOL; echo 'Static access: ', var_export(self::$bar, true), PHP_EOL; } } (new Foo)->test();

preferences:
28.64 ms | 402 KiB | 5 Q