3v4l.org

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

preferences:
29.01 ms | 402 KiB | 5 Q