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; 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
8.3.50.0020.00616.79

preferences:
40.84 ms | 493 KiB | 4 Q