3v4l.org

run code in 300+ PHP versions simultaneously
<?php class T { public function __callStatic($method, $args) { echo "__callStatic() called\n"; } public function f() { echo "f() called\n"; } } T::f();
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Method T::__callStatic() must be static in /in/CcLv8 on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
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 7.3.32 - 7.3.33
Warning: The magic method __callStatic() must have public visibility and be static in /in/CcLv8 on line 5 f() called
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 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

preferences:
198.66 ms | 402 KiB | 226 Q