3v4l.org

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

preferences:
35.61 ms | 402 KiB | 5 Q