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 Test { use aTrait; 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.40.0110.00418.71
8.3.30.0100.00319.13
8.3.20.0040.00420.29
8.3.10.0090.00023.48
8.3.00.0030.00617.50
8.2.170.0000.01418.57
8.2.160.0120.00322.96
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.38
8.2.110.0060.00321.00
8.2.100.0000.01317.50
8.2.90.0040.00419.16
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0000.00920.07
8.2.30.0060.00318.02
8.2.20.0000.00817.68
8.2.10.0050.00318.05
8.2.00.0000.00917.53
8.1.270.0080.00020.02
8.1.260.0030.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00319.03
8.1.230.0090.00317.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0000.00820.29
8.1.160.0040.00422.05
8.1.150.0070.00018.89
8.1.140.0040.00417.36
8.1.130.0070.00017.73
8.1.120.0040.00417.36
8.1.110.0000.00717.42
8.1.100.0040.00417.45
8.1.90.0000.00717.41
8.1.80.0030.00517.34
8.1.70.0070.00017.45
8.1.60.0030.01017.46
8.1.50.0040.00417.57
8.1.40.0000.00717.48
8.1.30.0030.00517.58
8.1.20.0050.00317.62
8.1.10.0080.00017.57
8.1.00.0040.00417.50
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.32
8.0.270.0030.00517.30
8.0.260.0060.00317.20
8.0.250.0030.00316.94
8.0.240.0000.00716.99
8.0.230.0000.00716.85
8.0.220.0070.00016.89
8.0.210.0040.00416.87
8.0.200.0030.00316.94
8.0.190.0080.00016.97
8.0.180.0000.00716.82
8.0.170.0050.00316.79
8.0.160.0000.00716.96
8.0.150.0040.00416.96
8.0.140.0060.00316.84
8.0.130.0000.00613.33
8.0.120.0080.00016.73
8.0.110.0000.00716.89
8.0.100.0040.00416.90
8.0.90.0070.00016.79
8.0.80.0030.01716.81
8.0.70.0040.00416.87
8.0.60.0040.00416.92
8.0.50.0000.00816.92
8.0.30.0120.00917.15
8.0.20.0120.01217.40
8.0.10.0040.00417.06
8.0.00.0070.01516.80
7.4.330.0000.00615.03
7.4.320.0030.00316.42
7.4.300.0000.00716.52
7.4.290.0000.00716.59
7.4.280.0040.00416.57
7.4.270.0030.00316.41
7.4.260.0030.00316.49
7.4.250.0040.00416.46
7.4.240.0050.00316.41
7.4.230.0070.00016.48
7.4.220.0100.00916.64
7.4.210.0090.00816.54
7.4.200.0070.00016.54
7.4.160.0080.00816.36
7.4.150.0120.00617.40
7.4.140.0280.01117.86
7.4.130.0070.01216.58
7.4.120.0100.00716.64
7.4.110.0080.01516.50
7.4.100.0040.01316.46
7.4.90.0110.00616.60
7.4.80.0070.01019.39
7.4.70.0100.01316.64
7.4.60.0030.01316.47
7.4.50.0060.00316.31
7.4.40.0130.00316.41
7.4.30.0110.00616.41
7.4.00.0000.01414.73
7.3.330.0050.00013.29
7.3.320.0100.00713.02
7.3.310.0050.00316.21
7.3.300.0030.00316.20
7.3.290.0030.00316.23
7.3.280.0080.00716.27
7.3.270.0120.00917.40
7.3.260.0140.00916.30
7.3.250.0150.00516.37
7.3.240.0030.02316.29
7.3.230.0090.00916.39
7.3.210.0120.00316.15
7.3.200.0030.01419.39
7.3.190.0100.00616.25
7.3.180.0190.00316.36
7.3.170.0030.01416.30
7.3.160.0090.01316.49
7.3.10.0090.00516.51
7.3.00.0110.00316.39
7.2.330.0090.00916.62
7.2.320.0070.01116.75
7.2.310.0100.01016.71
7.2.300.0100.00716.82
7.2.290.0070.01516.66
7.2.130.0080.00416.29
7.2.120.0000.01316.25
7.2.110.0070.01116.20
7.2.100.0070.00716.78
7.2.90.0060.01216.50
7.2.80.0250.00916.40
7.2.70.0210.00916.60
7.2.60.0170.00716.38
7.2.50.0190.00316.60
7.2.40.0120.00416.34
7.2.30.0080.01016.78
7.2.20.0300.00316.60
7.2.10.0110.01116.70
7.2.00.0090.01018.01
7.1.250.0060.00615.13
7.1.100.0030.00918.04
7.1.70.0110.00416.98
7.1.60.0070.01819.50
7.1.50.0090.01616.78
7.1.00.0030.07722.45
7.0.200.0660.01314.52
7.0.140.0070.06022.09
7.0.60.0100.07319.80
7.0.50.0170.07317.82
7.0.40.0030.06320.27
7.0.30.0230.05320.13
7.0.20.0300.05020.09
7.0.10.0130.05020.07
7.0.00.0030.08020.08
5.6.280.0100.06721.11
5.6.210.0100.07720.63
5.6.200.0070.08018.19
5.6.190.0100.08320.57
5.6.180.0330.07020.52
5.6.170.0170.04020.56
5.6.160.0070.07020.55
5.6.150.0130.04318.24
5.6.140.0070.08018.12
5.6.130.0030.05718.15
5.6.120.0170.07321.13
5.6.110.0030.08020.98
5.6.100.0130.08021.05
5.6.90.0070.04021.00
5.6.80.0070.08020.37
5.6.70.0330.07020.44
5.5.350.0230.08020.41
5.5.340.0130.04718.07
5.5.330.0130.05320.21
5.5.320.0230.04020.57
5.5.310.0270.08020.19
5.5.300.0070.05018.07
5.5.290.0130.04018.01
5.5.280.0130.08020.91
5.5.270.0130.04320.90
5.5.260.0030.04320.90
5.5.250.0070.08020.58
5.5.240.0070.08020.27
5.4.450.0270.05319.17
5.4.440.0130.08319.57
5.4.430.0970.06019.57
5.4.420.0970.06319.16
5.4.410.0170.05018.98
5.4.400.1230.07718.84
5.4.390.1230.07718.63
5.4.380.1430.05718.57
5.4.370.1330.05718.79
5.4.360.1370.06718.51
5.4.350.1130.07318.70
5.4.340.0170.05318.47
5.4.320.0270.06718.46
5.4.310.1930.07018.77
5.4.300.1330.06318.53
5.4.290.1370.06018.84
5.4.280.1100.05018.70
5.4.270.1300.08318.75
5.4.260.1370.06718.56
5.4.250.1900.06318.50
5.4.240.1500.06718.63
5.4.230.1400.06718.81
5.4.220.1430.04718.59
5.4.210.1170.04718.73
5.4.200.1030.06016.52
5.4.190.1270.06318.57
5.4.180.1030.06318.49
5.4.170.0970.07718.77
5.4.160.1230.06318.57
5.4.150.1000.06318.74
5.4.140.1600.08716.36
5.4.130.1230.04316.45
5.4.120.1200.05716.23
5.4.110.1170.05716.36
5.4.100.1370.05716.25
5.4.90.1000.06316.22
5.4.80.1100.04716.22
5.4.70.0930.06316.27
5.4.60.1030.05016.27
5.4.50.1170.05016.16
5.4.40.1070.05716.27
5.4.30.1100.05016.23
5.4.20.1330.06716.30
5.4.10.1130.05716.45
5.4.00.0930.05015.65
5.3.290.1130.06014.75
5.3.280.1030.05014.56
5.3.270.0900.05314.60
5.3.260.0970.06314.60
5.3.250.2400.06014.61
5.3.240.1330.05314.60
5.3.230.0930.06714.57
5.3.220.1200.06314.46
5.3.210.1230.06014.66
5.3.200.1130.06714.50
5.3.190.1230.06014.50
5.3.180.0900.06014.61
5.3.170.0870.07014.54
5.3.160.0900.07014.46
5.3.150.1130.07014.66
5.3.140.1170.06714.55
5.3.130.1800.06314.50
5.3.120.1470.07314.53
5.3.110.1300.05314.63
5.3.100.1170.05314.13
5.3.90.1100.05713.97
5.3.80.1070.05314.01
5.3.70.0900.06714.00
5.3.60.0130.06314.03
5.3.50.0100.06714.04
5.3.40.1630.05013.89
5.3.30.1300.06313.89
5.3.20.1270.05313.73
5.3.10.1000.05013.70
5.3.00.1500.06713.60
5.2.170.0970.04311.18
5.2.160.1000.06311.05
5.2.150.0930.04311.12
5.2.140.0930.05711.18
5.2.130.0870.03711.15
5.2.120.0830.04311.25
5.2.110.1030.05311.16
5.2.100.0970.06011.14
5.2.90.0930.04711.26
5.2.80.0930.03711.25
5.2.70.0930.03711.13
5.2.60.0900.05011.18
5.2.50.0770.05311.07
5.2.40.0830.04310.95
5.2.30.0870.04010.93
5.2.20.0830.04310.91
5.2.10.0870.04310.86
5.2.00.0730.04010.70
5.1.60.0670.0379.99
5.1.50.0970.05010.07
5.1.40.1030.0409.95
5.1.30.0970.03710.34
5.1.20.0830.04010.37
5.1.10.0730.04010.20
5.1.00.0970.03710.15
5.0.50.0270.0438.66
5.0.40.0330.0378.49
5.0.30.0400.0508.19
5.0.20.0430.0338.19
5.0.10.0400.0278.29
5.0.00.0400.0408.29
4.4.90.0330.0235.91
4.4.80.0370.0175.90
4.4.70.0270.0305.89
4.4.60.0500.0275.88
4.4.50.0430.0305.91
4.4.40.0500.0405.87
4.4.30.0430.0275.91
4.4.20.0370.0305.93
4.4.10.0470.0305.98
4.4.00.0230.0505.89
4.3.110.0530.0205.82
4.3.100.0470.0205.78
4.3.90.0470.0235.89
4.3.80.0470.0475.86
4.3.70.0330.0235.78
4.3.60.0530.0335.82
4.3.50.0400.0235.89
4.3.40.0630.0375.77
4.3.30.0230.0304.68
4.3.20.0130.0274.57
4.3.10.0130.0304.61
4.3.00.0100.0306.88

preferences:
53.73 ms | 400 KiB | 5 Q