3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { public function foo() { echo "foo"; } } trait B { use A { foo as foobar; } public function foo() { foobar(); echo "bar"; } } class AB { use A; public function run() { $this->foo(); } } class ABC extends AB { use B; } $me = new ABC(); $me->run();

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.0120.00616.75
8.3.50.0150.00822.11
8.3.40.0040.01118.97
8.3.30.0070.00718.89
8.3.20.0080.00020.46
8.3.10.0050.00323.56
8.3.00.0050.00319.51
8.2.180.0110.01118.29
8.2.170.0030.01022.96
8.2.160.0060.00620.35
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0030.00617.50
8.2.120.0040.00426.35
8.2.110.0060.00319.22
8.2.100.0090.00317.91
8.2.90.0040.00419.57
8.2.80.0000.00819.32
8.2.70.0040.00417.80
8.2.60.0040.00417.93
8.2.50.0000.00818.10
8.2.40.0030.00919.35
8.2.30.0020.00520.67
8.2.20.0090.00017.66
8.2.10.0040.00418.02
8.2.00.0040.00418.00
8.1.280.0130.00725.92
8.1.270.0080.00022.24
8.1.260.0070.00728.09
8.1.250.0070.00028.09
8.1.240.0060.00322.46
8.1.230.0030.00820.84
8.1.220.0080.00017.74
8.1.210.0100.00018.77
8.1.200.0030.00617.23
8.1.190.0030.00517.35
8.1.180.0050.00318.10
8.1.170.0060.00318.72
8.1.160.0030.00321.95
8.1.150.0000.00718.90
8.1.140.0000.00919.54
8.1.130.0040.00417.63
8.1.120.0050.00217.37
8.1.110.0070.00017.47
8.1.100.0030.00517.37
8.1.90.0000.00717.44
8.1.80.0030.00617.47
8.1.70.0030.00317.33
8.1.60.0030.00617.48
8.1.50.0040.00417.49
8.1.40.0030.00617.41
8.1.30.0090.00017.53
8.1.20.0080.00017.64
8.1.10.0030.00517.51
8.1.00.0050.00317.43
8.0.300.0030.00619.98
8.0.290.0000.00716.75
8.0.280.0070.00018.37
8.0.270.0000.00717.27
8.0.260.0070.00017.22
8.0.250.0040.00417.07
8.0.240.0040.00417.01
8.0.230.0030.00317.00
8.0.220.0000.00716.97
8.0.210.0000.00816.96
8.0.200.0000.00717.05
8.0.190.0040.00417.00
8.0.180.0050.00216.98
8.0.170.0080.00016.88
8.0.160.0050.00216.93
8.0.150.0040.00416.89
8.0.140.0100.00016.78
8.0.130.0040.00413.32
8.0.120.0030.00616.88
8.0.110.0000.00717.04
8.0.100.0000.00816.99
8.0.90.0040.00416.79
8.0.80.0070.00816.95
8.0.70.0070.00016.83
8.0.60.0030.00516.80
8.0.50.0070.00016.98
8.0.30.0100.00617.08
8.0.20.0120.00817.42
8.0.10.0070.00017.11
8.0.00.0130.00916.84
7.4.330.0020.00215.08
7.4.320.0000.00616.51
7.4.300.0000.00616.66
7.4.290.0070.00016.52
7.4.280.0030.00516.41
7.4.270.0000.00616.52
7.4.260.0060.00316.44
7.4.250.0000.00816.57
7.4.240.0030.00416.62
7.4.230.0070.00016.71
7.4.220.0140.01016.64
7.4.210.0070.01016.54
7.4.200.0030.00516.53
7.4.160.0120.00316.64
7.4.150.0120.00917.40
7.4.140.0180.00617.86
7.4.130.0110.00616.54
7.4.120.0140.00616.64
7.4.110.0140.00316.45
7.4.100.0090.00916.54
7.4.90.0120.00616.65
7.4.80.0060.01019.39
7.4.70.0140.00416.63
7.4.60.0130.00316.51
7.4.50.0000.00816.52
7.4.40.0120.00416.59
7.4.30.0070.01116.59
7.4.00.0030.01415.04
7.3.330.0000.00613.23
7.3.320.0030.00313.23
7.3.310.0070.00016.22
7.3.300.0030.00316.37
7.3.290.0000.00716.38
7.3.280.0090.00916.32
7.3.270.0100.00617.40
7.3.260.0130.00316.57
7.3.250.0120.00816.37
7.3.240.0110.00616.48
7.3.230.0070.01016.44
7.3.210.0110.00616.50
7.3.200.0040.01316.29
7.3.190.0120.00916.33
7.3.180.0060.01516.38
7.3.170.0060.01216.48
7.3.160.0000.01716.39
7.3.120.0030.01014.55
7.3.110.0100.00314.91
7.3.100.0050.00514.77
7.3.90.0000.00714.78
7.3.80.0030.01014.97
7.3.70.0030.01314.90
7.3.60.0100.00314.74
7.3.50.0090.00314.84
7.3.40.0000.01714.57
7.3.30.0040.01114.77
7.3.20.0060.00916.55
7.3.10.0060.00716.63
7.3.00.0060.00616.59
7.2.330.0100.01416.29
7.2.320.0130.00916.65
7.2.310.0120.00616.27
7.2.300.0100.00616.39
7.2.290.0180.00016.64
7.2.240.0000.01415.04
7.2.230.0080.00314.71
7.2.220.0120.00314.50
7.2.210.0110.00714.77
7.2.200.0000.01514.85
7.2.190.0000.01414.70
7.2.180.0030.01014.99
7.2.170.0070.00714.94
7.2.160.0000.01114.66
7.2.150.0070.00716.48
7.2.140.0070.00816.74
7.2.130.0080.00816.73
7.2.120.0040.00916.79
7.2.110.0060.00716.83
7.2.100.0080.00816.66
7.2.90.0050.00916.85
7.2.80.0050.00816.92
7.2.70.0040.00916.77
7.2.60.0030.01016.78
7.2.50.0040.00916.77
7.2.40.0070.00816.86
7.2.30.0060.00716.89
7.2.20.0060.00716.90
7.2.10.0050.01016.78
7.2.00.0060.01017.37
7.1.330.0040.00415.57
7.1.320.0030.01315.75
7.1.310.0030.00615.63
7.1.300.0030.00615.75
7.1.290.0000.01015.36
7.1.280.0000.01315.58
7.1.270.0030.01015.52
7.1.260.0070.00715.51
7.1.250.0090.00515.80
7.1.200.0060.00915.65
7.1.100.0060.00617.93
7.1.70.0030.00617.05
7.1.60.0180.00719.48
7.1.50.0070.01716.77
7.1.00.0030.07322.48
7.0.200.0380.00714.22
7.0.60.0070.08720.07
7.0.50.0000.04317.86
7.0.40.0100.08720.09
7.0.30.0200.08020.23
7.0.20.0200.04020.20
7.0.10.0000.09720.24
7.0.00.0170.07720.23
5.6.280.0030.06721.15
5.6.210.0130.07320.54
5.6.200.0030.09318.13
5.6.190.0070.07020.45
5.6.180.0300.07320.77
5.6.170.0370.04020.56
5.6.160.0070.08720.55
5.6.150.0070.03718.24
5.6.140.0100.07018.23
5.6.130.0030.04718.21
5.6.120.0070.05021.03
5.6.110.0100.04321.00
5.6.100.0070.08320.99
5.6.90.0130.08021.11
5.6.80.0170.06320.41
5.5.350.4200.04020.33
5.5.340.0070.04018.04
5.5.330.0030.06020.44
5.5.320.0400.06020.34
5.5.310.0200.03720.37
5.5.300.0100.08017.95
5.5.290.0000.05717.95
5.5.280.0100.04320.81
5.5.270.0100.07320.89
5.5.260.0100.06720.77
5.5.250.0100.08320.54
5.5.240.0230.07320.15

preferences:
81.56 ms | 401 KiB | 5 Q