3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { final private function __construct() {} static public function get() { return new static(); } } class Y extends X { final public function __construct() {} } new Y();

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)
7.0.20.0230.03320.16
7.0.10.0030.05720.08
7.0.00.0030.08320.22
5.6.170.0200.07020.44
5.6.160.0100.08020.39
5.6.150.0030.04018.12
5.6.140.0070.08318.28
5.6.130.0070.04018.23
5.6.120.0070.05020.97
5.6.110.0100.08321.09
5.6.100.0000.05321.14
5.6.90.0070.05020.97
5.6.80.0230.06320.37
5.5.310.0300.07320.36
5.5.300.0100.03317.99
5.5.290.0030.07017.96
5.5.280.0130.03320.96
5.5.270.0000.04320.76
5.5.260.0100.07720.68
5.5.250.0030.06020.55
5.5.240.0070.05720.27

preferences:
137.91 ms | 1394 KiB | 7 Q