3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ThingDoer { protected $things; public function __construct(string $string = NULL, int $int = 0, Throwable $throwable = NULL) { $this->things[] = $string; $this->things[] = $int; $this->things[] = $throwable; } public function do() { print_r($this->things); } } $thing = new ThingDoer(); $thing->do();

preferences:
39.37 ms | 402 KiB | 5 Q