3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test { public static function something() { $somethingElseFunction = "somethingElse"; if(method_exists(__CLASS__, $somethingElseFunction)) { call_user_func_array(array(__CLASS__, $somethingElseFunction), array("bla")); } } public static function somethingElse($a) { var_dump($a); } } test::something();

preferences:
41.7 ms | 402 KiB | 5 Q