3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function baz(){} } class B extends A{ function bar(){} } class C extends B{ function qux(){} } abstract class DecoratedA{ // DecoratorA || ForwardingA || DelegatingA protected $wrap; function __construct(A $a){ $this->wrap = $a; } function baz(){ return $this->wrap->baz(); } } abstract class DecoratedB extends DecoratedA{ // DecoratorB || ForwardingB || DelegatingB function __construct(B $b){ parent::construct($b); } function bar(){ return $this->wrap->bar(); } } abstract class DecoratedC extends DecoratedB{ // DecoratorC || ForwardingC || DelegatingC function __construct(C $c){ parent::construct($c); } function qux(){ return $this->wrap->qux(); } }

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.4.20.0170.00317.52
8.4.10.0050.00517.36
8.3.150.0030.01616.64
8.3.140.0040.00416.57
8.3.130.0030.00516.48
8.3.120.0040.00418.80
8.3.110.0040.00420.94
8.3.100.0060.00318.46
8.3.90.0040.00426.77
8.3.80.0070.00316.38
8.3.70.0070.00716.58
8.3.60.0130.00916.50
8.3.50.0150.00821.02
8.3.40.0100.01018.57
8.3.30.0070.00718.54
8.3.20.0170.00320.28
8.3.10.0030.01421.68
8.3.00.0040.00420.94
8.2.260.0070.01116.94
8.2.250.0040.01118.37
8.2.240.0040.00418.88
8.2.230.0050.00322.58
8.2.220.0000.01124.06
8.2.210.0040.01126.77
8.2.200.0060.00318.04
8.2.190.0140.00716.58
8.2.180.0140.00016.63
8.2.170.0070.00722.96
8.2.160.0090.00619.04
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0080.00019.36
8.2.110.0030.00621.04
8.2.100.0060.00617.80
8.2.90.0000.00818.93
8.2.80.0080.00017.97
8.2.70.0030.00617.50
8.2.60.0030.00717.68
8.2.50.0000.01018.10
8.2.40.0000.00720.50
8.2.30.0040.00420.63
8.2.20.0000.00817.56
8.2.10.0040.00417.94
8.2.00.0000.00717.94
8.1.310.0140.00316.38
8.1.300.0100.01017.62
8.1.290.0030.00630.84
8.1.280.0140.00025.92
8.1.270.0080.00023.79
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0040.00422.80
8.1.230.0110.00017.64
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0070.00317.10
8.1.190.0000.00817.00
8.1.180.0080.00018.10
8.1.170.0000.00918.54
8.1.160.0000.00720.70
8.1.150.0040.00418.68
8.1.140.0030.00519.45
8.1.130.0030.00317.52
8.1.120.0040.00317.22
8.1.110.0060.00317.25
8.1.100.0030.00517.35
8.1.90.0050.00317.32
8.1.80.0000.00817.23
8.1.70.0030.00317.32
8.1.60.0030.00517.51
8.1.50.0030.00517.47
8.1.40.0050.00317.30
8.1.30.0060.00317.57
8.1.20.0030.00617.46
8.1.10.0070.00017.23
8.1.00.0080.00017.19
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.39
8.0.270.0070.00017.01
8.0.260.0030.00317.14
8.0.250.0000.00716.84
8.0.240.0070.00016.77
8.0.230.0030.00316.89
8.0.220.0030.00316.78
8.0.210.0030.00316.67
8.0.200.0050.00216.82
8.0.190.0060.00316.88
8.0.180.0040.00416.81
8.0.170.0060.00316.83
8.0.160.0040.00416.81
8.0.150.0000.00716.73
8.0.140.0040.00416.74
8.0.130.0060.00013.23
8.0.120.0080.00016.78
8.0.110.0040.00416.63
8.0.100.0030.00316.77
8.0.90.0030.00516.84
8.0.80.0060.00916.83
8.0.70.0070.00016.74
8.0.60.0040.00416.84
8.0.50.0000.00816.81
8.0.30.0060.01316.88
8.0.20.0070.01117.40
8.0.10.0000.00816.70
8.0.00.0050.01316.63
7.4.330.0020.00215.08
7.4.320.0030.00316.51
7.4.300.0000.00716.38
7.4.290.0030.00316.28
7.4.280.0040.00416.37
7.4.270.0070.00016.37
7.4.260.0040.00416.32
7.4.250.0000.00816.37
7.4.240.0000.00716.47
7.4.230.0040.00416.46
7.4.220.0150.01116.34
7.4.210.0130.00716.41
7.4.200.0030.00316.48
7.4.160.0100.00516.53
7.4.150.0060.01317.40
7.4.140.0110.01117.86
7.4.130.0110.00616.27
7.4.120.0100.00716.40
7.4.110.0120.00616.35
7.4.100.0090.00916.35
7.4.90.0100.00716.37
7.4.80.0130.00319.39
7.4.70.0130.01016.52
7.4.60.0070.01016.48
7.4.50.0090.00916.24
7.4.40.0060.00916.43
7.4.30.0110.00516.32
7.4.00.0080.00414.81
7.3.330.0000.00513.18
7.3.320.0030.00313.06
7.3.310.0030.00316.00
7.3.300.0070.00016.10
7.3.290.0070.01116.20
7.3.280.0080.01016.14
7.3.270.0060.01117.40
7.3.260.0090.00916.23
7.3.250.0090.01116.26
7.3.240.0070.00816.41
7.3.230.0100.00716.39
7.3.210.0120.00916.33
7.3.200.0150.00616.29
7.3.190.0060.01116.07
7.3.180.0080.00816.38
7.3.170.0070.01116.46
7.3.160.0090.00616.13
7.2.330.0130.00316.34
7.2.320.0110.00716.39
7.2.310.0000.01616.48
7.2.300.0070.01416.54
7.2.290.0030.01416.54
7.2.00.0040.01119.05
7.1.100.0040.00417.89
7.1.70.0050.00217.07
7.1.60.0190.00320.41
7.1.00.0030.07722.48
7.0.200.0650.00314.50
7.0.60.0030.08321.77
7.0.50.0170.07017.96
7.0.40.0430.06720.30
7.0.30.0230.05320.29
7.0.20.0230.06020.21
7.0.10.0230.06320.13
7.0.00.0100.06020.29
5.6.280.0030.07321.08
5.6.210.0070.03720.74
5.6.200.0130.07318.16
5.6.190.0400.06720.77
5.6.180.0230.05320.76
5.6.170.0130.06320.57
5.6.160.0200.05720.69
5.6.150.0200.05320.36
5.6.140.0170.06020.58
5.6.130.0270.06020.35
5.6.120.0130.07320.20
5.6.110.0170.06020.34
5.6.100.0370.05320.37
5.6.90.0370.06020.33
5.6.80.0370.06319.66
5.6.70.0300.04319.76
5.6.60.0230.05319.76
5.6.50.0170.05719.69
5.6.40.0200.05019.57
5.6.30.0230.05019.68
5.6.20.0130.06319.77
5.6.10.0130.06019.57
5.6.00.0230.05019.72
5.5.350.0300.07020.54
5.5.340.0030.04017.99
5.5.330.0270.07020.31
5.5.320.0200.05020.16
5.5.310.0170.06020.32
5.5.300.0230.07320.12
5.5.290.0400.05720.14
5.5.280.0170.08020.07
5.5.270.0230.06020.14
5.5.260.0430.05320.17
5.5.250.0400.04719.97
5.5.240.0230.06019.60
5.5.230.0270.04719.49
5.5.220.0130.06719.57
5.5.210.0230.05019.59
5.5.200.0130.05719.52
5.5.190.0270.06319.73
5.5.180.0100.06719.56
5.5.160.0100.06019.50
5.5.150.0300.05319.42
5.5.140.0130.05719.58
5.5.130.0130.06019.45
5.5.120.0230.06319.52
5.5.110.0100.05719.49
5.5.100.0100.06019.40
5.5.90.0100.06019.44
5.5.80.0130.05719.39
5.5.70.0230.06319.39
5.5.60.0230.05019.62
5.5.50.0170.05319.39
5.5.40.0200.06019.38
5.5.30.0230.05019.45
5.5.20.0100.05319.50
5.5.10.0300.06019.42
5.5.00.0300.06319.40

preferences:
35.77 ms | 403 KiB | 5 Q