3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function foo() { stati::who(); } public static function who() { echo __CLASS__."\n"; } } class B extends A { public static function test() { A::foo(); paren::foo(); self::foo(); } public static function who() { echo __CLASS__."\n"; } } class C extends B { public static function who() { echo __CLASS__."\n"; } } C::test();
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Class "stati" not found in /in/H2Le4:7 Stack trace: #0 /in/H2Le4(20): A::foo() #1 /in/H2Le4(38): B::test() #2 {main} thrown in /in/H2Le4 on line 7
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught Error: Class 'stati' not found in /in/H2Le4:7 Stack trace: #0 /in/H2Le4(20): A::foo() #1 /in/H2Le4(38): B::test() #2 {main} thrown in /in/H2Le4 on line 7
Process exited with code 255.
Output for 5.6.38
Fatal error: Class 'stati' not found in /in/H2Le4 on line 7
Process exited with code 255.

preferences:
189.45 ms | 401 KiB | 241 Q