3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo { public static function wtfphp() { echo "OK.\n"; } } $callable = 'foo::wtfphp'; call_user_func($callable); $callable();
based on lBGCe
Output for 7.0.0 - 7.2.0
OK. OK.
Output for 5.3.22 - 5.6.28
OK. Fatal error: Call to undefined function foo::wtfphp() in /in/p0ZBE on line 13
Process exited with code 255.