3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const METHOD = 'test'; public function test() { echo 'test'; } public function __call($a, $b) { echo '__call'; } public function start() { $this->{self::METHOD}(); } } $obj = new A(); $obj->start();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
161.93 ms | 2513 KiB | 10 Q