3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public int $bar { get => $this->bar; set => empty($this->bar) ? $this->bar = $value : throw new LogicException("nope"); } } $foo = new Foo(); $foo->bar = 42; echo $foo->bar . "\n"; $foo->bar += 1;

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

preferences:
136.6 ms | 993 KiB | 7 Q