3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ # ... properties & methods # then we have targetFunc() protected static function grandparentFn(){ // some action } } class B extends A{ protected static function parentFn(){ // some action } } class C extends B{ } //C::parentFn(); // it fails .... (expected, due to protected) C::grandparentFn(); // it works .... ????

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
153.75 ms | 3176 KiB | 8 Q