3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; trait aTrait { protected function one() { echo "a-one "; } public function two() { echo "a-two "; } protected function three() { return ''; } } namespace Bar; use Foo\aTrait as bTrait; trait aTrait { use bTrait { one as originalOne; two as originalGetQualifiedDeletedAtColumn; } protected function one() { echo "b-one"; $this->originalOne(); } public function two() { $this->three(); $this->originalGetQualifiedDeletedAtColumn(); } } namespace Baz; use Bar\atrait; class Base { use aTrait; } class Test extends Base { public function __construct() { $this->one(); } } $test = new Test();

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.3.60.0110.00416.50
8.3.50.0080.01222.05
8.3.40.0040.01118.76
8.3.30.0040.01118.92
8.3.20.0040.00420.16
8.3.10.0030.00621.92
8.3.00.0030.00617.50
8.2.180.0060.01318.41
8.2.170.0180.00418.91
8.2.160.0120.00622.96
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.23
8.2.110.0030.00619.16
8.2.100.0040.00817.63
8.2.90.0040.00419.21
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0080.00019.82
8.2.30.0040.00418.00
8.2.20.0000.00817.70
8.2.10.0000.00817.99
8.2.00.0040.00417.73
8.1.280.0070.01025.92
8.1.270.0050.00320.24
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01022.62
8.1.230.0040.00817.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0040.00420.43
8.1.160.0040.00422.00
8.1.150.0040.00418.81
8.1.140.0040.00417.38
8.1.130.0000.00717.82
8.1.120.0040.00417.47
8.1.110.0050.00217.50
8.1.100.0000.00717.52
8.1.90.0070.00017.45
8.1.80.0000.00817.51
8.1.70.0030.00317.32
8.1.60.0070.00317.54
8.1.50.0000.00817.55
8.1.40.0000.00717.52
8.1.30.0030.00517.57
8.1.20.0000.00917.57
8.1.10.0080.00017.46
8.1.00.0000.00817.48
8.0.300.0050.00318.77
8.0.290.0000.00816.75
8.0.280.0070.00018.49
8.0.270.0070.00017.27
8.0.260.0090.00017.33
8.0.250.0070.00017.01
8.0.240.0070.00016.86
8.0.230.0070.00016.88
8.0.220.0030.00316.90
8.0.210.0040.00416.90
8.0.200.0040.00416.91
8.0.190.0000.00817.03
8.0.180.0000.00716.93
8.0.170.0000.00716.85
8.0.160.0000.00716.96
8.0.150.0040.00416.75
8.0.140.0090.00416.88
8.0.130.0060.00013.39
8.0.120.0030.00616.77
8.0.110.0040.00416.88
8.0.100.0030.00616.92
8.0.90.0040.00416.78
8.0.80.0100.00716.97
8.0.70.0000.00716.73
8.0.60.0080.00016.80
8.0.50.0040.00416.96
8.0.30.0110.01117.08
8.0.20.0160.00717.40
8.0.10.0070.00016.81
8.0.00.0090.01416.93
7.4.330.0000.00515.03
7.4.320.0060.00016.51
7.4.300.0060.00016.50
7.4.290.0070.00016.41
7.4.280.0090.00016.51
7.4.270.0070.00016.54
7.4.260.0000.00816.57
7.4.250.0000.00816.56
7.4.240.0020.00516.45
7.4.230.0000.00716.69
7.4.220.0120.00616.61
7.4.210.0110.00816.60
7.4.200.0000.00816.46
7.4.160.0100.00716.61
7.4.150.0130.00717.40
7.4.140.0150.01517.86
7.4.130.0070.01216.59
7.4.120.0150.00516.56
7.4.110.0040.01516.48
7.4.100.0150.00416.58
7.4.90.0040.01416.46
7.4.80.0130.00719.39
7.4.70.0120.00916.54
7.4.60.0060.01016.27
7.4.50.0000.00816.40
7.4.40.0100.00716.38
7.4.30.0090.01216.50
7.4.00.0080.00814.75
7.3.330.0050.00013.22
7.3.320.0170.00013.12
7.3.310.0000.00616.16
7.3.300.0030.00316.16
7.3.290.0030.00316.16
7.3.280.0090.00516.28
7.3.270.0120.00617.40
7.3.260.0080.01616.29
7.3.250.0170.00316.24
7.3.240.0080.01316.30
7.3.230.0110.01016.39
7.3.210.0060.01216.22
7.3.200.0000.02119.39
7.3.190.0100.00716.33
7.3.180.0130.00916.29
7.3.170.0070.01116.27
7.3.160.0060.01116.20
7.2.330.0110.00616.79
7.2.320.0120.00616.79
7.2.310.0100.01416.72
7.2.300.0130.00316.72
7.2.290.0190.00316.64
7.2.00.0080.00319.39
7.1.200.0090.00315.59
7.1.100.0000.01118.06
7.1.70.0080.00016.87
7.1.60.0100.01319.50
7.1.50.0130.01016.85
7.1.00.0000.07322.31
7.0.200.0670.00914.72
7.0.140.0000.06322.15
7.0.60.0070.07019.93
7.0.50.0100.05317.88
7.0.40.0130.05020.14
7.0.30.0400.06720.10
7.0.20.0300.07720.26
7.0.10.0230.07320.23
7.0.00.0100.05020.05
5.6.280.0070.07020.94
5.6.210.0000.08320.70
5.6.200.0070.06318.31
5.6.190.0130.07720.63
5.6.180.0230.04720.51
5.6.170.0270.06020.48
5.6.160.0000.04320.54
5.6.150.0130.03718.25
5.6.140.0000.04018.21
5.6.130.0070.03718.14
5.6.120.0030.05721.13
5.6.110.0070.09021.05
5.6.100.0130.07021.04
5.6.90.0130.08020.98
5.6.80.0000.08020.52
5.6.70.0330.07720.29
5.5.350.0300.07020.35
5.5.340.0230.04018.07
5.5.330.0070.05720.19
5.5.320.0400.06720.13
5.5.310.0330.07320.41
5.5.300.0100.07717.98
5.5.290.0130.06017.94
5.5.280.0030.04320.88
5.5.270.0030.05720.69
5.5.260.0070.07720.81
5.5.250.0100.08320.48
5.5.240.0070.08320.20
5.4.450.0200.04319.17
5.4.440.0200.08319.52
5.4.430.0200.05719.63
5.4.420.0300.07319.52
5.4.410.0300.07019.45
5.4.400.0030.05019.23
5.4.390.0000.07019.22
5.4.380.1800.04319.22
5.4.370.1700.05718.87
5.4.360.2270.04018.87
5.4.350.2530.04019.22
5.4.340.2570.03719.13
5.4.320.2300.04019.00
5.4.310.2170.04718.95
5.4.300.2270.04319.06
5.4.290.2200.04018.99
5.4.280.1570.04718.99
5.4.270.0070.05718.98
5.4.260.0130.06718.87
5.4.250.1930.03319.23
5.4.240.2400.03719.14
5.4.230.2530.03719.21
5.4.220.2470.04719.08
5.4.210.0000.05319.30
5.4.200.0030.04718.98
5.4.190.0070.04018.86
5.4.180.0230.03719.05
5.4.170.0130.04719.21
5.4.160.0230.03719.06
5.4.150.0200.04319.29
5.4.140.0170.05016.41
5.4.130.0200.03716.70
5.4.120.0200.04716.34
5.4.110.0170.07316.61
5.4.100.0330.05716.59
5.4.90.0270.03316.41
5.4.80.0200.05016.62
5.4.70.0200.04016.39
5.4.60.0330.05016.44
5.4.50.0270.03316.52
5.4.40.0200.07316.35
5.4.30.0330.06316.32
5.4.20.0100.04016.34
5.4.10.0200.05316.53
5.4.00.0200.03315.78
5.3.290.0170.04014.62
5.3.280.0200.04714.47
5.3.270.0200.04314.44
5.3.260.0230.03014.59
5.3.250.0270.06014.46
5.3.240.0270.06714.45
5.3.230.0200.06014.69
5.3.220.0370.04314.66
5.3.210.0100.05314.58
5.3.200.0170.05014.51
5.3.190.0030.03714.47
5.3.180.0070.03714.51
5.3.170.0130.04014.51
5.3.160.0070.06014.47
5.3.150.0030.04314.47
5.3.140.1330.04314.39
5.3.130.2000.03714.42
5.3.120.2430.04014.41
5.3.110.2370.05014.46
5.3.100.2530.03713.87
5.3.90.2370.03713.96
5.3.80.2200.04313.84
5.3.70.2330.03713.86
5.3.60.0030.06013.84
5.3.50.0070.04713.89
5.3.40.0070.04013.89
5.3.30.1930.03013.95
5.3.20.2600.04713.63
5.3.10.1530.04013.59
5.3.00.0100.03313.59
5.2.170.0530.03311.19
5.2.160.1900.03011.01
5.2.150.0130.03711.05
5.2.140.0130.03311.16
5.2.130.0130.03011.15
5.2.120.0070.03310.96
5.2.110.0130.03010.95
5.2.100.0130.03011.11
5.2.90.0100.03011.12
5.2.80.0200.02311.03
5.2.70.0200.02311.18
5.2.60.0170.02310.88
5.2.50.0100.03010.86
5.2.40.0030.03711.07
5.2.30.0100.03710.82
5.2.20.0070.03011.00
5.2.10.0170.02310.86
5.2.00.0100.02710.73
5.1.60.0130.02310.07
5.1.50.0100.0309.97
5.1.40.0100.02310.03
5.1.30.0100.02710.41
5.1.20.0130.02310.26
5.1.10.0070.03010.08
5.1.00.0100.02310.18
5.0.50.0030.0238.67
5.0.40.0030.0208.32
5.0.30.0070.0338.20
5.0.20.0070.0208.32
5.0.10.0070.0178.24
5.0.00.0070.0308.28
4.4.90.0030.0177.80
4.4.80.0130.0137.80
4.4.70.0030.0177.80
4.4.60.0100.0137.80
4.4.50.0030.0177.80
4.4.40.0000.0337.80
4.4.30.0030.0177.80
4.4.20.0030.0207.80
4.4.10.0030.0177.80
4.4.00.0070.0237.80
4.3.110.0030.0177.80
4.3.100.0100.0107.80
4.3.90.0030.0177.80
4.3.80.0030.0237.80
4.3.70.0030.0177.80
4.3.60.0070.0177.80
4.3.50.0070.0137.80
4.3.40.0000.0237.80
4.3.30.0030.0137.80
4.3.20.0000.0207.80
4.3.10.0000.0177.80
4.3.00.0000.0177.80

preferences:
51.99 ms | 401 KiB | 5 Q