3v4l.org

run code in 300+ 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

preferences:
133.5 ms | 993 KiB | 7 Q