3v4l.org

run code in 300+ PHP versions simultaneously
<?php class y { static function a() { // display the current class echo __METHOD__; } } class x extends y { static function b($method) { // display the current class with method a above call_user_func($method); $method(); } } (new x)->b(array('parent', 'a')); ?>

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
189.54 ms | 2035 KiB | 10 Q