3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __construct(final public string $id) { } } $a = new A('test'); echo $a->id;

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.30.0460.00617.39
8.3.50.0400.01116.34
8.2.290.0330.00716.58

preferences:
143.71 ms | 1008 KiB | 7 Q