3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; trait aTrait { protected function one() { echo "a-one"; } } namespace Bar; use Foo\aTrait as bTrait; trait aTrait { use bTrait { one as originalOne; } protected function one() { echo "b-one"; $this->originalOne(); } } 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.60.0040.01116.25
8.3.50.0040.01116.29
8.3.40.0070.00718.39
8.3.30.0030.01019.07
8.3.20.0030.00620.21
8.3.10.0000.00821.85
8.3.00.0040.00417.21
8.2.180.0070.00716.63
8.2.170.0100.01018.83
8.2.160.0100.01022.96
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0000.00819.38
8.2.110.0060.00322.30
8.2.100.0050.00517.78
8.2.90.0040.00417.75
8.2.80.0040.00418.79
8.2.70.0060.00317.63
8.2.60.0030.00617.63
8.2.50.0000.00917.50
8.2.40.0000.00817.63
8.2.30.0070.00017.68
8.2.20.0000.00817.66
8.2.10.0030.00518.04
8.2.00.0000.01017.55
8.1.280.0140.00725.92
8.1.270.0080.00020.27
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0090.00022.64
8.1.230.0110.00419.17
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0000.01017.12
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0070.00018.79
8.1.150.0050.00218.79
8.1.140.0040.00417.45
8.1.130.0000.00717.73
8.1.120.0030.00317.39
8.1.110.0000.00717.38
8.1.100.0040.00417.45
8.1.90.0070.00017.45
8.1.80.0000.00717.38
8.1.70.0000.00817.48
8.1.60.0000.01217.55
8.1.50.0030.00617.51
8.1.40.0030.00617.43
8.1.30.0050.00317.65
8.1.20.0000.00817.71
8.1.10.0060.00317.59
8.1.00.0030.00517.54
8.0.300.0000.00719.64
8.0.290.0000.00716.63
8.0.280.0030.00317.92
8.0.270.0000.00717.97
8.0.260.0060.00317.17
8.0.250.0000.00716.97
8.0.240.0070.00016.86
8.0.230.0070.00016.95
8.0.220.0030.00316.87
8.0.210.0080.00016.86
8.0.200.0000.00616.78
8.0.190.0060.00316.96
8.0.180.0040.00416.81
8.0.170.0070.00016.96
8.0.160.0000.00816.80
8.0.150.0030.00316.92
8.0.140.0060.00316.82
8.0.130.0000.00613.36
8.0.120.0000.00816.85
8.0.110.0000.00716.71
8.0.100.0000.00816.79
8.0.90.0040.00417.00
8.0.80.0130.00316.85
8.0.70.0000.00716.92
8.0.60.0070.00016.92
8.0.50.0040.00416.69
8.0.30.0080.01117.31
8.0.20.0070.02117.41
8.0.10.0030.00316.97
8.0.00.0100.01016.74
7.4.330.0050.00015.11
7.4.320.0000.00616.57
7.4.300.0000.00616.59
7.4.290.0000.00716.39
7.4.280.0000.00716.48
7.4.270.0000.00716.56
7.4.260.0070.00016.48
7.4.250.0050.00316.48
7.4.240.0020.00516.51
7.4.230.0000.00716.70
7.4.220.0110.00616.70
7.4.210.0140.00416.48
7.4.200.0000.00816.34
7.4.160.0040.01216.66
7.4.150.0140.01417.40
7.4.140.0160.00517.86
7.4.130.0090.01216.43
7.4.120.0100.00716.52
7.4.110.0110.00716.63
7.4.100.0100.00716.40
7.4.90.0130.00316.43
7.4.80.0150.00919.39
7.4.70.0050.01116.54
7.4.60.0090.00916.46
7.4.50.0000.00816.36
7.4.40.0030.01416.48
7.4.30.0030.01416.48
7.4.00.0060.00915.09
7.3.330.0000.00513.30
7.3.320.0100.00713.20
7.3.310.0000.00816.21
7.3.300.0040.00416.10
7.3.290.0070.00016.23
7.3.280.0110.00616.23
7.3.270.0060.01217.40
7.3.260.0140.01216.60
7.3.250.0100.01216.39
7.3.240.0030.01716.40
7.3.230.0060.01516.39
7.3.210.0140.00716.39
7.3.200.0070.01119.39
7.3.190.0080.00816.24
7.3.180.0100.00716.15
7.3.170.0030.01316.27
7.3.160.0070.01016.23
7.2.330.0100.00716.74
7.2.320.0090.00916.52
7.2.310.0100.01216.63
7.2.300.0080.00816.30
7.2.290.0110.00916.61
7.2.00.0090.00319.39
7.1.100.0030.00817.62
7.1.70.0040.00416.98
7.1.60.0030.02019.50
7.1.50.0030.02216.16
7.1.00.0030.07722.35
7.0.200.0670.01114.88
7.0.140.0070.07022.04
7.0.60.0100.08019.96
7.0.50.0030.09017.73
7.0.40.0030.09020.04
7.0.30.0230.06320.23
7.0.20.0270.04720.09
7.0.10.0270.07720.06
7.0.00.0070.06720.22
5.6.280.0030.07021.07
5.6.210.0070.06320.61
5.6.200.0030.05718.13
5.6.190.0030.04720.45
5.6.180.0170.04720.58
5.6.170.0130.04720.47
5.6.160.0100.06320.57
5.6.150.0170.07718.21
5.6.140.0000.04318.18
5.6.130.0030.04018.18
5.6.120.0030.04021.02
5.6.110.0030.08321.09
5.6.100.0030.06021.12
5.6.90.0070.08720.99
5.6.80.0170.08020.38
5.6.70.0330.06720.28
5.5.350.0230.07020.39
5.5.340.0030.04718.09
5.5.330.0000.05020.43
5.5.320.0200.04020.48
5.5.310.0270.07320.24
5.5.300.0000.04317.98
5.5.290.0100.08017.93
5.5.280.0100.08320.69
5.5.270.0100.08020.90
5.5.260.0070.08020.68
5.5.250.0070.08020.79
5.5.240.0170.06020.28
5.4.450.0370.06319.20
5.4.440.1000.04719.57
5.4.430.0870.05319.41
5.4.420.1170.07019.57
5.4.410.0200.04318.95
5.4.400.0430.08018.79
5.4.390.0500.06318.52
5.4.380.0470.06318.59
5.4.370.0400.06018.77
5.4.360.0500.05318.70
5.4.350.0430.06718.78
5.4.340.0730.06018.57
5.4.320.0470.07318.68
5.4.310.0400.05018.57
5.4.300.0400.05018.71
5.4.290.0430.05718.63
5.4.280.0370.06318.58
5.4.270.0300.06318.71
5.4.260.0700.06018.72
5.4.250.0470.07718.74
5.4.240.0430.07718.71
5.4.230.0400.05718.75
5.4.220.0470.07318.43
5.4.210.0530.04718.55
5.4.200.0370.07316.51
5.4.190.0330.08018.45
5.4.180.0330.08718.73
5.4.170.0430.05718.68
5.4.160.0300.06018.62
5.4.150.0470.05318.69
5.4.140.0370.06016.46
5.4.130.0570.07016.22
5.4.120.0670.05316.45
5.4.110.0370.05016.29
5.4.100.0400.05316.29
5.4.90.0370.05716.38
5.4.80.0370.07316.20
5.4.70.0330.06016.25
5.4.60.0330.05716.29
5.4.50.0530.05716.19
5.4.40.0200.06716.41
5.4.30.0500.06316.21
5.4.20.0470.07016.23
5.4.10.0430.05316.23
5.4.00.0430.07015.66
5.3.290.0470.08314.74
5.3.280.0470.07314.59
5.3.270.0570.06014.58
5.3.260.0430.05714.50
5.3.250.0530.05014.55
5.3.240.0430.04714.52
5.3.230.0400.05714.55
5.3.220.0500.07314.48
5.3.210.0500.06314.46
5.3.200.0600.06314.54
5.3.190.0430.07314.62
5.3.180.0400.07314.49
5.3.170.0630.06314.64
5.3.160.0700.06014.52
5.3.150.0400.05714.66
5.3.140.0400.06314.52
5.3.130.0430.05314.64
5.3.120.0370.06314.46
5.3.110.0530.07014.48
5.3.100.0430.06713.93
5.3.90.0470.06713.93
5.3.80.0470.05313.98
5.3.70.0630.05013.93
5.3.60.0270.05713.92
5.3.50.0170.05013.92
5.3.40.0300.06313.86
5.3.30.0400.05013.90
5.3.20.0530.05713.62
5.3.10.0430.04713.55
5.3.00.0370.04713.71
5.2.170.0370.04711.20
5.2.160.0400.05311.12
5.2.150.0230.06311.05
5.2.140.0470.05311.11
5.2.130.0370.04711.11
5.2.120.0300.05011.07
5.2.110.0300.04711.14
5.2.100.0370.04711.16
5.2.90.0370.05311.05
5.2.80.0600.04011.14
5.2.70.0370.04711.08
5.2.60.0330.05711.05
5.2.50.0270.05011.07
5.2.40.0230.04310.96
5.2.30.0200.05011.00
5.2.20.0200.04311.07
5.2.10.0270.03711.01
5.2.00.0370.04710.70
5.1.60.0170.03710.11
5.1.50.0270.03310.12
5.1.40.0270.03710.01
5.1.30.0170.04710.30
5.1.20.0230.05310.39
5.1.10.0330.04310.18
5.1.00.0270.04710.06
5.0.50.0030.0338.58
5.0.40.0130.0308.46
5.0.30.0100.0508.28
5.0.20.0070.0438.18
5.0.10.0200.0338.28
5.0.00.0200.0508.19
4.4.90.0130.0305.83
4.4.80.0230.0205.91
4.4.70.0170.0275.91
4.4.60.0030.0375.90
4.4.50.0100.0305.89
4.4.40.0130.0435.91
4.4.30.0100.0235.89
4.4.20.0100.0205.94
4.4.10.0170.0205.88
4.4.00.0100.0435.85
4.3.110.0300.0235.80
4.3.100.0200.0235.82
4.3.90.0170.0275.77
4.3.80.0100.0375.81
4.3.70.0100.0275.81
4.3.60.0130.0305.77
4.3.50.0230.0305.77
4.3.40.0230.0275.73
4.3.30.0070.0205.51
4.3.20.0100.0205.51
4.3.10.0030.0235.51
4.3.00.0170.0276.88

preferences:
42.88 ms | 400 KiB | 5 Q