3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class myClass { static function myMethod(){ echo "mine"; } } myClass::myMethod(); echo is_callable(myClass::myMethod);
based on hDDrO
Output for 7.0.0 - 7.2.0
mine Fatal error: Uncaught Error: Undefined class constant 'myMethod' in /in/a6q6P:10 Stack trace: #0 {main} thrown in /in/a6q6P on line 10
Process exited with code 255.
Output for 5.3.22 - 5.6.28
mine Fatal error: Undefined class constant 'myMethod' in /in/a6q6P on line 10
Process exited with code 255.