3v4l.org

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

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.0090.00618.57
8.3.30.0140.00019.14
8.3.20.0030.00620.18
8.3.10.0000.00721.69
8.3.00.0030.00617.38
8.2.180.0100.01016.75
8.2.170.0040.01122.96
8.2.160.0100.00320.52
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0140.00326.16
8.2.120.0080.00022.08
8.2.110.0030.00622.10
8.2.100.0110.00017.59
8.2.90.0000.01017.51
8.2.80.0080.00017.97
8.2.70.0040.00417.13
8.2.60.0000.00917.91
8.2.50.0040.00418.07
8.2.40.0090.00019.88
8.2.30.0040.00418.06
8.2.20.0030.00717.68
8.2.10.0000.00717.90
8.2.00.0060.00317.60
8.1.280.0030.01525.92
8.1.270.0040.00423.82
8.1.260.0050.00226.35
8.1.250.0060.00328.09
8.1.240.0060.00322.35
8.1.230.0100.00020.88
8.1.220.0060.00317.74
8.1.210.0040.00419.10
8.1.200.0050.00517.35
8.1.190.0030.00517.28
8.1.180.0000.01019.01
8.1.170.0030.00618.58
8.1.160.0040.00422.02
8.1.150.0040.00418.66
8.1.140.0050.00517.39
8.1.130.0000.00717.75
8.1.120.0040.00417.29
8.1.110.0040.00417.38
8.1.100.0100.00017.27
8.1.90.0050.00217.37
8.1.80.0040.00417.30
8.1.70.0070.00017.37
8.1.60.0030.00517.53
8.1.50.0000.00817.53
8.1.40.0070.00017.43
8.1.30.0040.00417.41
8.1.20.0040.00417.59
8.1.10.0040.00417.45
8.1.00.0000.00717.37
8.0.300.0040.00419.94
8.0.290.0030.00617.13
8.0.280.0030.00318.44
8.0.270.0030.00317.12
8.0.260.0030.00317.18
8.0.250.0000.00716.96
8.0.240.0030.00316.97
8.0.230.0080.00016.90
8.0.220.0000.00816.76
8.0.210.0000.00816.84
8.0.200.0000.00816.83
8.0.190.0030.00316.91
8.0.180.0050.00516.77
8.0.170.0000.00816.89
8.0.160.0070.00016.85
8.0.150.0000.00716.84
8.0.140.0070.00016.77
8.0.130.0040.00413.28
8.0.120.0040.00416.83
8.0.110.0040.00416.69
8.0.100.0000.00716.89
8.0.90.0040.00416.82
8.0.80.0070.00716.81
8.0.70.0070.00016.78
8.0.60.0040.00416.83
8.0.50.0000.00816.83
8.0.30.0070.01416.88
8.0.20.0110.00917.40
8.0.10.0000.00716.84
8.0.00.0070.01116.73
7.4.330.0030.00315.03
7.4.320.0030.00316.61
7.4.300.0000.00616.65
7.4.290.0000.00716.51
7.4.280.0030.00616.39
7.4.270.0030.00316.45
7.4.260.0070.00016.51
7.4.250.0080.00016.55
7.4.240.0040.00416.55
7.4.230.0030.00316.42
7.4.220.0070.01016.69
7.4.210.0100.00516.62
7.4.200.0020.00516.59
7.4.190.0080.00016.64
7.4.160.0070.00716.42
7.4.150.0180.00317.40
7.4.140.0110.00717.86
7.4.130.0080.00816.45
7.4.120.0090.01116.36
7.4.110.0090.00916.62
7.4.100.0110.01116.66
7.4.90.0040.01516.52
7.4.80.0090.00919.39
7.4.70.0150.00716.58
7.4.60.0130.01016.57
7.4.50.0040.00416.52
7.4.40.0100.00322.77
7.4.30.0030.01416.52
7.4.00.0030.01314.89
7.3.330.0000.00613.22
7.3.320.0020.00213.01
7.3.310.0040.00416.29
7.3.300.0040.00416.23
7.3.290.0000.01516.26
7.3.280.0100.00716.23
7.3.270.0090.00917.40
7.3.260.0120.01216.23
7.3.250.0120.00716.22
7.3.240.0170.00416.27
7.3.230.0070.01116.39
7.3.210.0140.00316.20
7.3.200.0130.01019.39
7.3.190.0100.01316.49
7.3.180.0060.00916.30
7.3.170.0090.00616.38
7.3.160.0140.00716.33
7.3.120.0120.00314.70
7.3.10.0030.01016.64
7.3.00.0080.00816.68
7.2.330.0060.01316.52
7.2.320.0040.01216.75
7.2.310.0140.00316.66
7.2.300.0080.00816.66
7.2.290.0130.00316.32
7.2.130.0070.00716.84
7.2.120.0120.00016.80
7.2.110.0050.00516.50
7.2.100.0000.01216.46
7.2.90.0070.00716.93
7.2.80.0090.00616.96
7.2.70.0040.01116.60
7.2.60.0070.00716.80
7.2.50.0030.00616.71
7.2.40.0100.00316.83
7.2.30.0030.01316.73
7.2.20.0120.00316.82
7.2.10.0080.00416.65
7.2.00.0060.00717.96
7.1.250.0030.00915.65
7.1.100.0000.01218.09
7.1.70.0040.00717.02
7.1.60.0070.01719.46
7.1.50.0060.01616.98
7.1.00.0000.08022.48
7.0.200.0000.00816.63
7.0.140.0000.07722.09
7.0.60.0070.03719.93
7.0.50.0070.04717.86
7.0.40.0100.08320.02
7.0.30.0330.07020.18
7.0.20.0230.05020.12
7.0.10.0070.05720.06
7.0.00.0070.08320.08
5.6.280.0070.07021.05
5.6.210.0030.08720.73
5.6.200.0130.07318.29
5.6.190.0070.06320.34
5.6.180.0200.08020.77
5.6.170.0430.07720.48
5.6.160.0130.08020.52
5.6.150.0130.07718.20
5.6.140.0130.07718.27
5.6.130.0070.04718.28
5.6.120.0070.05721.09
5.6.110.0230.07321.11
5.6.100.0200.07020.98
5.6.90.0100.08321.11
5.6.80.0070.07020.38
5.6.70.3300.04020.38
5.5.350.0200.08020.29
5.5.340.0130.06318.03
5.5.330.0100.06320.43
5.5.320.0270.08020.24
5.5.310.0270.05020.35
5.5.300.0030.04717.95
5.5.290.0030.08718.06
5.5.280.0100.06720.86
5.5.270.0070.07320.88
5.5.260.0100.06720.80
5.5.250.0030.06320.59
5.5.240.0230.05020.25
5.4.450.0670.06019.67
5.4.440.0130.06019.52
5.4.430.0730.05719.62
5.4.420.0630.06019.57
5.4.410.0830.04719.16
5.4.400.0600.06319.20
5.4.390.0600.05019.25
5.4.380.0330.05018.77
5.4.370.0300.05018.78
5.4.360.0370.05018.79
5.4.350.0170.05718.57
5.4.340.0500.05318.64
5.4.320.0110.03112.50
5.4.310.0040.04712.50
5.4.300.0070.03712.50
5.4.290.0110.05012.48
5.4.280.0130.04612.38
5.4.270.0060.05012.39
5.4.260.0140.04412.38
5.4.250.0090.04812.38
5.4.240.0070.04112.38
5.4.230.0090.04012.37
5.4.220.0100.03712.38
5.4.210.0090.05312.38
5.4.200.0100.05212.38
5.4.190.0080.05512.37
5.4.180.0050.05612.38
5.4.170.0050.05512.38
5.4.160.0080.04912.38
5.4.150.0060.05212.37
5.4.140.0120.04812.06
5.4.130.0080.05012.05
5.4.120.0070.04012.00
5.4.110.0100.04412.00
5.4.100.0120.04612.00
5.4.90.0080.05412.00
5.4.80.0080.05412.00
5.4.70.0110.04811.99
5.4.60.0090.04912.00
5.4.50.0070.05612.00
5.4.40.0100.04911.98
5.4.30.0090.03811.98
5.4.20.0080.05211.98
5.4.10.0090.05011.98
5.4.00.0060.05311.47
5.3.290.0040.04312.80
5.3.280.0110.04912.71
5.3.270.0120.05012.73
5.3.260.0090.04912.72
5.3.250.0060.05312.72
5.3.240.0110.05712.72
5.3.230.0090.05712.71
5.3.220.0120.06812.68
5.3.210.0080.05512.68
5.3.200.0100.05412.68
5.3.190.0060.04612.68
5.3.180.0040.04312.68
5.3.170.0100.03912.67
5.3.160.0100.04812.68
5.3.150.0050.04312.67
5.3.140.0070.03912.66
5.3.130.0090.03812.66
5.3.120.0080.03912.66
5.3.110.0070.04012.66
5.3.100.0080.04212.11
5.3.90.0060.04312.09
5.3.80.0070.03712.07
5.3.70.0080.03712.08
5.3.60.0090.03512.06
5.3.50.0070.04112.00
5.3.40.0110.03812.00
5.3.30.0070.03811.95
5.3.20.0090.04711.73
5.3.10.0080.03711.70
5.3.00.0150.04511.68
5.2.170.0060.0379.18
5.2.160.0110.0379.18
5.2.150.0080.0419.18
5.2.140.0100.0429.18
5.2.130.0120.0619.14
5.2.120.0050.0649.13
5.2.110.0090.0369.15
5.2.100.0120.0649.14
5.2.90.0190.0739.14
5.2.80.0130.0999.14
5.2.70.0080.0429.13
5.2.60.0090.0419.09
5.2.50.0130.0459.06
5.2.40.0070.0459.04
5.2.30.0070.0479.01
5.2.20.0140.0329.00
5.2.10.0110.0348.93
5.2.00.0100.0398.79
5.1.60.0130.0268.07
5.1.50.0110.0348.06
5.1.40.0050.0388.05
5.1.30.0130.0748.40
5.1.20.0150.0518.42
5.1.10.0130.0348.14
5.1.00.0130.0468.14
5.0.50.0080.0276.63
5.0.40.0030.0226.47
5.0.30.0050.0306.29
5.0.20.0040.0206.26
5.0.10.0040.0296.24
5.0.00.0070.0406.23
4.4.90.0040.0234.78
4.4.80.0050.0254.75
4.4.70.0080.0314.75
4.4.60.0070.0194.75
4.4.50.0080.0184.77
4.4.40.0050.0384.71
4.4.30.0060.0194.76
4.4.20.0040.0254.84
4.4.10.0070.0224.85
4.4.00.0050.0344.76
4.3.110.0020.0254.67
4.3.100.0030.0204.66
4.3.90.0010.0224.64
4.3.80.0050.0284.58
4.3.70.0040.0204.63
4.3.60.0030.0254.63
4.3.50.0050.0264.63
4.3.40.0050.0544.54
4.3.30.0050.0213.28
4.3.20.0050.0323.26
4.3.10.0050.0203.21
4.3.00.0030.01310.31

preferences:
39.27 ms | 401 KiB | 5 Q