3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { private X $y; function __invoke() { echo __METHOD__;} function foo() { $this->y = new X; $this->y(); // better this way ($this->y)(); } } (new X)->foo();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
161.53 ms | 1472 KiB | 8 Q