3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { public mixed $data { get => $this->data ?? null; //throw new Exception("this property is not set."); set => $this->data = $value; } public function issetData(){ return isset($this->data); } } $foo = new Foo(); var_dump($foo->issetData()); var_dump($foo->data); $foo->data = 'Hello World!!!'; var_dump($foo->issetData()); var_dump($foo->data);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.20.0220.01017.99
8.3.50.0080.01016.85

preferences:
53.61 ms | 493 KiB | 4 Q