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; isset => isset($this->data); } } $foo = new Foo(); //option 1 var_dump(?$foo->data); // This should produce the same output as an "isset" //option 2 var_dump($foo->data?isset); // This should join on "isset" hook

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.0160.00517.79

preferences:
133.54 ms | 993 KiB | 7 Q