3v4l.org

run code in 300+ PHP versions simultaneously
<?php class person { public $name; public function hi($name) { $this->name = $name; return $this->name . ' hello!'; } public static function test() { $rs = call_user_func_array(array(new self(), 'hi'), array('Alex')); var_dump($rs); } } person::hi('asdasd');

preferences:
41.3 ms | 402 KiB | 5 Q