3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeParent { public function __construct(private DateTime $d) { } } class SomeChild extends SomeParent { public function run() { return $this->d->format('Y-m-d'); } } $c = new SomeChild(new DateTime('now')); var_dump($c->run());

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.5.10.0070.00717.09
8.5.00.0110.00816.79
8.4.160.0110.01222.20
8.4.150.0120.01019.62
8.4.90.0100.01118.31
8.3.290.0140.00718.56
8.3.280.0110.01018.52
8.3.180.0120.00618.75
8.3.50.0080.01218.78
8.2.00.0100.01119.81

preferences:
75.4 ms | 403 KiB | 5 Q