3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Aggregation { protected function callAggregation($method, $arguments, $problem = FALSE) { var_dump($method, $arguments, $problem); } protected function foo() { } } class AggregateWithUse { use Aggregation { Aggregation::callAggregation as public __call; } } class AggregateManually { use Aggregation; public function __call($method, $arguments, $problem = FALSE) { $this->callAggregation($method, $arguments, $problem); } } (new AggregateWithUse())->onTest(function() {}); (new AggregateManually())->onTest(function() {});

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)
5.4.290.0080.05912.49
5.4.280.0120.03612.39
5.4.270.0110.03812.39
5.4.260.0080.04012.39
5.4.250.0120.03712.39
5.4.240.0060.04112.39
5.4.230.0210.07712.39
5.4.220.0090.04012.38
5.4.210.0140.04612.38
5.4.200.0070.04512.39
5.4.190.0050.04912.38
5.4.180.0100.03712.38
5.4.170.0070.04612.40
5.4.160.0080.07912.39
5.4.150.0110.05612.39
5.4.140.0090.04612.07
5.4.130.0150.06212.06
5.4.120.0080.05212.02
5.4.110.0150.07212.01
5.4.100.0060.04712.01
5.4.90.0080.04812.01
5.4.80.0110.03412.02
5.4.70.0100.04312.00
5.4.60.0160.06112.00
5.4.50.0150.08212.00
5.4.40.0090.04112.00
5.4.30.0080.04212.00
5.4.20.0180.03612.00
5.4.10.0200.07611.99
5.4.00.0100.05711.48
5.3.280.0250.09412.71
5.3.270.0150.08312.72
5.3.260.0160.06412.72
5.3.250.0180.08312.72
5.3.240.0080.05012.72
5.3.230.0110.06612.71
5.3.220.0110.05412.68
5.3.210.0200.08612.68
5.3.200.0120.09212.68
5.3.190.0230.09112.68
5.3.180.0290.08412.67
5.3.170.0250.07612.67
5.3.160.0190.07612.67
5.3.150.0220.06512.67
5.3.140.0190.06412.66
5.3.130.0250.06912.66
5.3.120.0160.06512.66
5.3.110.0110.05212.66
5.3.100.0260.14312.12
5.3.90.0220.10412.08
5.3.80.0180.06612.07
5.3.70.0180.07812.07
5.3.60.0150.12412.07
5.3.50.0170.08812.00
5.3.40.0180.06012.00
5.3.30.0180.09911.95
5.3.20.0060.03811.73
5.3.10.0120.05211.70
5.3.00.0220.07311.68
5.2.170.0090.0439.18
5.2.160.0130.0359.18
5.2.150.0130.0539.18
5.2.140.0060.0329.18
5.2.130.0050.0329.14
5.2.120.0110.0459.14
5.2.110.0150.0589.15
5.2.100.0400.0999.14
5.2.90.0070.0479.14
5.2.80.0080.1109.14
5.2.70.0430.0959.14
5.2.60.0060.0479.09
5.2.50.0130.1109.06
5.2.40.0340.0659.04
5.2.30.0100.0459.01
5.2.20.0070.0449.00
5.2.10.0110.0448.92
5.2.00.0070.0338.78
5.1.60.0080.0228.06
5.1.50.0070.0238.06
5.1.40.0040.0268.05
5.1.30.0050.0348.40
5.1.20.0170.0518.42
5.1.10.0080.0338.14
5.1.00.0090.0518.14
5.0.50.0130.0506.63
5.0.40.0130.0506.48
5.0.30.0050.0376.29
5.0.20.0030.0216.26
5.0.10.0030.0296.25
5.0.00.0060.0416.24
4.4.90.0060.0244.78
4.4.80.0050.0194.76
4.4.70.0030.0234.75
4.4.60.0050.0264.75
4.4.50.0030.0234.77
4.4.40.0090.0364.71
4.4.30.0040.0224.76
4.4.20.0060.0254.84
4.4.10.0030.0264.85
4.4.00.0090.0464.76
4.3.110.0040.0374.67
4.3.100.0060.0234.67
4.3.90.0050.0224.64
4.3.80.0100.0444.58
4.3.70.0030.0234.63
4.3.60.0050.0144.63
4.3.50.0030.0164.63
4.3.40.0020.0264.54
4.3.30.0020.0163.28
4.3.20.0020.0173.26
4.3.10.0010.0193.22
4.3.00.0000.03710.31

preferences:
134.33 ms | 1394 KiB | 7 Q