3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public static function m() { print 'Correct' . PHP_EOL; } } call_user_func_array('\A::m', array()); $fun = '\A::m'; $fun();
based on Z2Qi1
Output for 7.0.0 - 7.2.0
Correct Correct
Output for 5.3.20 - 5.6.28
Correct Fatal error: Call to undefined function \A::m() in /in/veigf on line 9
Process exited with code 255.