3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { private $param1 = null; private $param2 = null; public static function createXInThisSpecificWay(int $withParam1, int $withParam2): self { $x = new X; $x->param1 = $withParam1; $x->param2 = $withParam2; // etc etc etc return $x; } } X::createXInThisSpecificWay(1, 2);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
212.42 ms | 2291 KiB | 10 Q