3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class a { protected $installationDependent = true; public static function m() { return static::$installationDependent; } } class b extends a { protected $installationDependent = false; } var_dump(a::m()); var_dump(b::m());
based on DQnLL
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Access to undeclared static property: a::$installationDependent in /in/Q2WhN:8 Stack trace: #0 /in/Q2WhN(16): a::m() #1 {main} thrown in /in/Q2WhN on line 8
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Access to undeclared static property: a::$installationDependent in /in/Q2WhN on line 8
Process exited with code 255.