3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { function foo() { print "foo"; } function bar() { $x = array(get_class(), "self::foo"); call_user_func($x); } } $a = new x; $a->bar();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
163.14 ms | 2645 KiB | 10 Q