3v4l.org

run code in 300+ PHP versions simultaneously
<?php class notMyParent { public function __call($method, $params) { echo "from __call"; } public static function __callStatic($method, $params) { echo "from __callStatic"; } } class myParent { public function __call($method, $params) { echo "from __call"; } public static function __callStatic($method, $params) { echo "from __callStatic"; } } class mySon extends myParent { public function bar() { notMyParent::foo(); } } (new mySon())->bar();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
209.67 ms | 2702 KiB | 10 Q