3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static function call() { self::method1(); } static function method1() { static::method2(); } static function method2() { echo 'Base definition'; } } class B extends A { static function method2() { echo 'Override'; } } B::call();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
157.99 ms | 2107 KiB | 10 Q