3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = new CatchMeIfYouCan(); var_dump($foo->bar); final class CatchMeIfYouCan { private int $_bar; private(set) int $bar { get => $this->_bar ??= $this->fooBar(); set { $this->_bar = $value; } } public function fooBar(): int { isset($this->_bar); return 42; } }

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

preferences:
140.65 ms | 1000 KiB | 7 Q