3v4l.org

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

preferences:
44.39 ms | 493 KiB | 4 Q