3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class MyClass { static function method() { echo "hi\n"; } } function callMe(callable $hi) { $hi(); } callMe('\MyClass::method');
based on Kkr3F
Output for hhvm-3.15.4, 7.0.0 - 7.2.6
hi
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function \MyClass::method() in /in/dUt9l on line 14
Process exited with code 255.