3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ThingManager { private function createThing($arg) { return new Thing($this, $arg); } public function doSomething() { return $this->createThing(1); } } class Thing { private $manager; private $otherArg; public function __construct(ThingManager $manager, $otherArg) { $this->manager = $manager; $this->otherArg = $otherArg; } }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
171.74 ms | 3255 KiB | 8 Q