3v4l.org

run code in 500+ 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.80.0080.00116.86
8.5.70.0100.00717.11
8.5.60.0110.00516.89
8.5.50.0110.00716.76
8.5.30.0100.00819.58
8.5.20.0090.00918.02
8.5.10.0100.00316.57
8.5.00.0080.01216.91
8.4.230.0070.00719.56
8.4.220.0120.00919.60
8.4.210.0060.00519.53
8.4.180.0120.01020.58
8.4.170.0170.00819.83
8.4.160.0130.00922.36
8.4.150.0130.00819.59
8.4.90.0100.01018.06
8.3.320.0100.00918.51
8.3.310.0120.00518.35
8.3.300.0120.01020.34
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.320.0090.01118.17
8.2.310.0080.01120.06
8.2.00.0280.00717.92

preferences:
52.69 ms | 590 KiB | 5 Q