3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public function __construct(final string $foo) { } } $a = new A('test'); $c = new ReflectionClass($a); foreach ($c->getProperties() as $prop) { var_dump($prop->isFinal()); var_dump($prop->isPromoted()); } var_dump($a->foo);

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

preferences:
42.18 ms | 489 KiB | 4 Q