3v4l.org

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

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
212.87 ms | 2103 KiB | 10 Q