3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeParent { public function __construct(private DateTime $d) { } } class SomeChild extends SomeParent { public function __construct(private DateTime $d) { parent::__construct($d); } 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.0100.00316.57
8.5.00.0080.01216.91
8.4.160.0130.00922.36
8.4.150.0130.00819.59
8.4.90.0100.01018.06
8.3.290.0120.00918.36
8.3.280.0120.01018.48
8.3.180.0060.00218.70
8.3.50.0100.01218.60
8.2.00.0280.00717.92

preferences:
39.81 ms | 403 KiB | 5 Q