3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class T { public function __callStatic($method, $args) { echo "__callStatic() called\n"; } public function f() { echo "f() called\n"; } } T::f();
Output for 7.0.0 - 7.2.0
Warning: The magic method __callStatic() must have public visibility and be static in /in/CcLv8 on line 5 Deprecated: Non-static method T::f() should not be called statically in /in/CcLv8 on line 15 f() called
Output for 5.3.18 - 5.6.28
Warning: The magic method __callStatic() must have public visibility and be static in /in/CcLv8 on line 5 Strict Standards: Non-static method T::f() should not be called statically in /in/CcLv8 on line 15 f() called