3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class Foo { private static $x = 1; } class Baz extends Foo { function bar() { var_dump(self::$x); } }; $baz = new Baz; $baz->bar();
based on ohqQE
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Cannot access property Baz::$x in /in/GcWs3:9 Stack trace: #0 /in/GcWs3(14): Baz->bar() #1 {main} thrown in /in/GcWs3 on line 9
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Fatal error: Cannot access property Baz::$x in /in/GcWs3 on line 9
Process exited with code 255.