3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Abst { abstract public function compare(self $object); } interface I { public function compare(self $object); } class A extends Abst { public function compare(self $aObject) { return true; } } class B implements I { public function compare(self $bObject) { return true; } } class C extends A { public function compare(self $bObject) { return true; } } $a = new A(); $b = new B(); $c = new C(); $a->compare($a); $a->compare($b); $a->compare($c);

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)
5.5.10.0100.04320.11
5.5.00.0070.04320.10
5.4.170.0030.07019.12
5.4.160.0130.04019.01
5.4.150.0030.08019.21
5.4.140.0170.06016.38
5.4.130.0030.04716.38
5.4.120.0100.07016.46
5.4.110.0100.06316.55
5.4.100.0070.06716.56
5.4.90.0100.06716.45
5.4.80.0070.07316.47
5.4.70.0000.04316.54
5.4.60.0000.04716.30
5.4.50.0070.06316.34
5.4.40.0000.04316.50
5.4.30.0030.07016.44
5.4.20.0170.06316.42
5.4.10.0030.06016.29
5.4.00.0070.03715.85
5.3.270.0070.06014.58
5.3.260.0100.05714.75
5.3.250.0100.06714.71
5.3.240.0030.04714.57
5.3.230.0070.07714.64
5.3.220.0030.04314.51
5.3.210.0070.04014.50
5.3.200.0000.08014.69
5.3.190.0030.03714.61
5.3.180.0070.05714.68
5.3.170.0000.09714.64
5.3.160.0070.06714.59
5.3.150.0100.06714.52
5.3.140.0100.05714.69
5.3.130.0100.07314.54
5.3.120.0030.05314.54
5.3.110.0070.07314.61
5.3.100.0100.04014.01
5.3.90.0130.06714.08
5.3.80.0100.07013.92
5.3.70.0030.06314.00
5.3.60.0070.05014.04
5.3.50.0130.06314.05
5.3.40.0030.07713.96
5.3.30.0070.04313.94
5.3.20.0070.06713.77
5.3.10.0100.06313.78
5.3.00.0170.06013.70
5.2.170.0000.06711.26
5.2.160.0070.06011.11
5.2.150.0070.06311.02
5.2.140.0070.06011.06
5.2.130.0070.03711.23
5.2.120.0070.06011.04
5.2.110.0070.04711.13
5.2.100.0070.03011.22
5.2.90.0030.06010.97
5.2.80.0100.03311.02
5.2.70.0100.04711.00
5.2.60.0070.03311.17
5.2.50.0000.04011.14
5.2.40.0000.06711.11
5.2.30.0030.06711.11
5.2.20.0030.03311.02
5.2.10.0130.05310.92
5.2.00.0130.05310.59
5.1.60.0070.05310.02
5.1.50.0070.05010.00
5.1.40.0100.02710.01
5.1.30.0070.05010.49
5.1.20.0030.05710.42
5.1.10.0030.0309.93
5.1.00.0070.05310.17
5.0.50.0130.0238.57
5.0.40.0070.0438.52
5.0.30.0030.0678.32
5.0.20.0030.0438.32
5.0.10.0030.0438.32
5.0.00.0070.0608.32
4.4.90.0100.0308.32
4.4.80.0000.0338.32
4.4.70.0030.0178.32
4.4.60.0030.0378.32
4.4.50.0000.0378.32
4.4.40.0030.0478.32
4.4.30.0000.0178.32
4.4.20.0100.0208.32
4.4.10.0130.0178.32
4.4.00.0000.0578.32
4.3.110.0000.0208.32
4.3.100.0100.0108.32
4.3.90.0030.0338.32
4.3.80.0030.0438.32
4.3.70.0030.0208.32
4.3.60.0000.0278.32
4.3.50.0000.0378.32
4.3.40.0000.0408.32
4.3.30.0030.0178.32
4.3.20.0000.0378.32
4.3.10.0000.0378.32
4.3.00.0030.0338.32

preferences:
141.48 ms | 1386 KiB | 7 Q