3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class P { abstract protected function foo(); } class C1 extends P { protected function foo() { return 1; } } class C2 extends P { protected function foo() { return 2; } static function doFoo($c) { return $c->foo(); } } var_dump(C2::doFoo(new C2)); var_dump(C2::doFoo(new C1));

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.20.0070.00920.32
8.5.10.0140.00516.58
8.5.00.0130.00819.84
8.4.170.0160.00623.79
8.4.160.0120.01119.71
8.4.150.0020.00014.05
8.4.140.0130.00717.32
8.4.130.0120.00818.00
8.4.120.0140.00623.96
8.4.110.0040.00622.38
8.4.100.0060.00519.02
8.4.90.0110.00520.61
8.4.80.0050.00519.32
8.4.70.0120.01019.36
8.3.300.0130.00820.87
8.3.290.0060.00420.70
8.3.280.0190.00818.45
8.3.270.0120.00716.28
8.3.260.0110.00816.70
8.3.250.0120.00620.87
8.3.240.0070.00718.57
8.3.230.0100.01016.67
8.3.220.0040.00416.56
8.3.180.0120.00616.54
8.3.50.0070.00116.85
8.2.300.0130.00720.13
8.2.290.0100.00820.36
8.1.340.0100.01221.50

preferences:
34.24 ms | 403 KiB | 5 Q