3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface DoerInterface { public function doit(): self; } class MainDoer implements DoerInterface { public function doit(): self { echo 'main'; return $this; } } class ProxyDoer { private DoerInterface $decorated; public function __construct(DoerInterface $decorated) { $this->decorated = $decorated; } public function doit(): self { echo 'decorated'; return new self($this->decorated->doit()); } } $doer = new ProxyDoer(new MainDoer()); $doer->doit();

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.00.0120.01121.69
8.4.150.0020.00014.05
8.4.140.0120.01317.42
8.4.130.0120.00918.00
8.4.120.0090.01020.63
8.4.110.0140.00720.44
8.4.100.0070.00417.59
8.4.90.0140.00717.67
8.4.80.0050.00421.25
8.4.70.0110.00817.97
8.4.60.0110.00819.41
8.4.50.0140.00617.80
8.4.40.0030.01817.61
8.4.30.0170.00318.82
8.4.20.0100.00017.70
8.4.10.0130.00719.37
8.3.280.0100.00918.45
8.3.270.0110.00916.64
8.3.260.0130.00616.59
8.3.250.0110.00918.90
8.3.240.0100.01016.51
8.3.230.0100.00916.48
8.3.220.0100.00918.89
8.3.210.0130.00516.89
8.3.200.0090.00916.71
8.3.190.0080.01116.79
8.3.180.0110.00916.38
8.3.170.0110.00716.50
8.3.160.0040.01418.60
8.3.150.0070.01117.31
8.3.140.0040.00417.29
8.3.130.0050.00318.35
8.3.120.0060.00320.85
8.3.110.0040.00418.23
8.3.100.0090.00016.88
8.3.90.0040.01116.85
8.3.80.0090.00018.43
8.3.70.0070.01118.39
8.3.60.0070.01016.63
8.3.50.0110.00323.54
8.3.40.0140.00718.76
8.3.30.0120.00418.75
8.3.20.0080.00020.89
8.3.10.0080.00020.38
8.3.00.0040.00420.50
8.2.290.0110.00820.33
8.2.280.0120.00218.62
8.2.270.0040.00418.88
8.2.260.0110.00718.39
8.2.250.0030.00618.61
8.2.240.0040.00418.84
8.2.230.0040.01120.94
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0090.00316.38
8.2.190.0090.00916.58
8.2.180.0080.00818.38
8.2.170.0150.00622.96
8.2.160.0070.00722.25
8.2.150.0100.00024.18
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0040.00426.16
8.2.110.0090.00022.13
8.2.100.0110.00017.91
8.2.90.0060.00317.75
8.2.80.0060.00317.97
8.2.70.0040.00417.38
8.2.60.0080.00017.63
8.2.50.0040.00418.05
8.2.40.0080.00018.16
8.2.30.0000.00719.42
8.2.20.0000.00818.11
8.2.10.0000.00819.13
8.2.00.0040.00419.11
8.1.330.0110.00816.75
8.1.320.0090.01116.13
8.1.310.0070.00018.31
8.1.300.0080.00019.46
8.1.290.0040.00418.88
8.1.280.0110.00325.92
8.1.270.0000.00722.05
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.92
8.1.230.0040.00819.00
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0070.00418.10
8.1.170.0000.00817.62
8.1.160.0000.00819.02
8.1.150.0070.00018.83
8.1.140.0040.00418.89
8.1.130.0040.00420.13
8.1.120.0030.00317.47
8.1.110.0000.00817.44
8.1.100.0000.00917.46
8.1.90.0000.00817.47
8.1.80.0040.00417.43
8.1.70.0030.00317.46
8.1.60.0030.00617.58
8.1.50.0050.00317.39
8.1.40.0040.00417.51
8.1.30.0000.00817.66
8.1.20.0040.00417.54
8.1.10.0060.00317.64
8.1.00.0040.00417.53
8.0.300.0070.00019.78
8.0.290.0060.00316.75
8.0.280.0000.00718.46
8.0.270.0000.00718.11
8.0.260.0000.00619.95
8.0.250.0000.00617.09
8.0.240.0070.00017.04
8.0.230.0070.00017.00
8.0.220.0040.00417.01
8.0.210.0030.00316.96
8.0.200.0070.00016.97
8.0.190.0000.00717.02
8.0.180.0080.00016.86
8.0.170.0060.00616.86
8.0.160.0000.00716.91
8.0.150.0000.00716.94
8.0.140.0030.00316.95
8.0.130.0060.00013.31
8.0.120.0080.00016.90
8.0.110.0000.00816.87
8.0.100.0080.00016.77
8.0.90.0060.00316.96
8.0.80.0100.01016.86
8.0.70.0000.00716.75
8.0.60.0060.00316.84
8.0.50.0000.00716.75
8.0.30.0070.01017.17
8.0.20.0050.01317.15
8.0.10.0000.00717.01
8.0.00.0060.01216.80
7.4.330.0050.00015.55
7.4.320.0040.00416.50
7.4.300.0030.00316.49
7.4.290.0000.00716.61
7.4.280.0070.00016.35
7.4.270.0050.00216.59
7.4.260.0000.00513.30
7.4.250.0040.00416.54
7.4.240.0040.00416.54
7.4.230.0000.00716.63
7.4.220.0020.00516.55
7.4.210.0060.01016.60
7.4.200.0000.00716.71
7.4.130.0150.00616.60
7.4.120.0100.01316.33
7.4.110.0100.00616.41
7.4.100.0030.01316.49
7.4.90.0130.00316.55
7.4.80.0190.00319.39
7.4.70.0060.01216.56
7.4.60.0080.00916.39
7.4.50.0070.00716.45
7.4.40.0080.00816.58
7.4.30.0090.01016.40
7.4.20.0020.01616.52
7.4.10.0090.01116.36
7.4.00.0070.01416.43
7.3.330.0040.00416.31
7.3.320.0050.00013.13
7.3.310.0070.00016.14
7.3.300.0070.00016.16
7.3.290.0070.00916.17
7.3.260.0080.01216.34
7.3.230.0100.00716.33
7.3.210.0100.01316.13
7.3.200.0030.01316.32
7.3.190.0120.00316.14
7.3.180.0110.01116.35
7.3.170.0100.00716.21
7.3.160.0090.00716.21
7.3.150.0090.01116.34
7.3.140.0100.00816.18
7.3.130.0120.00616.22
7.3.120.0050.01316.21
7.3.110.0070.01016.17
7.3.100.0120.00916.13
7.3.90.0100.01016.26
7.3.80.0090.01216.24
7.3.70.0110.00816.15
7.3.60.0070.00916.27
7.3.50.0100.00716.21
7.3.40.0100.00716.11
7.3.30.0070.01116.19
7.3.20.0070.01016.21
7.3.10.0100.01316.18
7.3.00.0130.00816.26
7.2.330.0090.00916.13
7.2.320.0100.00616.49
7.2.310.0140.00316.46
7.2.300.0130.00316.50
7.2.290.0100.00716.55
7.2.280.0100.00916.47
7.2.270.0090.00916.35
7.2.260.0120.00616.24
7.2.250.0090.01016.44
7.2.240.0060.01416.27
7.2.230.0070.01316.43
7.2.220.0110.00816.34
7.2.210.0100.00916.40
7.2.200.0060.01316.24
7.2.190.0090.00716.35
7.2.180.0080.01016.36
7.2.170.0100.00716.25
7.2.160.0100.00916.24
7.2.150.0120.00816.37
7.2.140.0200.00716.38
7.2.130.0090.01116.26
7.2.120.0070.01116.32
7.2.110.0140.00716.33
7.2.100.0060.01416.41
7.2.90.0120.01016.42
7.2.80.0120.00916.25
7.2.70.0140.00916.45
7.2.60.0120.01016.24
7.2.50.0070.01316.40
7.2.40.0050.01516.42
7.2.30.0090.00916.40
7.2.20.0090.01216.33
7.2.10.0110.00616.24
7.2.00.0100.01116.17

preferences:
43.39 ms | 403 KiB | 5 Q