3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A{ public function a(){} } trait B{ use A; } trait C{ use A; } class D{ use B, C; }

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.0090.00616.63
8.3.50.0180.00416.26
8.3.40.0120.00318.45
8.3.30.0070.01318.46
8.3.20.0050.00220.26
8.3.10.0030.00523.35
8.3.00.0040.00423.66
8.2.180.0070.01116.32
8.2.170.0080.01122.96
8.2.160.0080.00820.35
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0080.00020.98
8.2.120.0000.00826.35
8.2.110.0060.00319.27
8.2.100.0090.00317.66
8.2.90.0090.00017.84
8.2.80.0050.00318.97
8.2.70.0030.00617.38
8.2.60.0060.00317.92
8.2.50.0040.00418.09
8.2.40.0090.00022.32
8.2.30.0040.00419.38
8.2.20.0040.00717.66
8.2.10.0000.00717.86
8.2.00.0000.00817.98
8.1.280.0110.00425.92
8.1.270.0140.00422.08
8.1.260.0080.00028.09
8.1.250.0070.00028.09
8.1.240.0120.00622.06
8.1.230.0130.00020.77
8.1.220.0040.00417.74
8.1.210.0000.00818.95
8.1.200.0060.00317.35
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0060.00318.43
8.1.160.0000.00820.70
8.1.150.0040.00418.93
8.1.140.0080.00019.50
8.1.130.0040.00417.63
8.1.120.0040.00417.41
8.1.110.0040.00417.38
8.1.100.0070.00017.45
8.1.90.0030.00517.27
8.1.80.0040.00417.30
8.1.70.0030.00317.45
8.1.60.0030.00717.57
8.1.50.0000.00717.46
8.1.40.0000.00817.40
8.1.30.0050.00317.57
8.1.20.0050.00217.46
8.1.10.0040.00417.31
8.1.00.0020.00517.20
8.0.300.0000.00720.17
8.0.290.0050.00216.63
8.0.280.0070.00018.27
8.0.270.0030.00317.18
8.0.260.0030.00317.05
8.0.250.0000.00716.80
8.0.240.0030.00316.76
8.0.230.0070.00016.89
8.0.220.0050.00216.73
8.0.210.0040.00416.80
8.0.200.0070.00016.74
8.0.190.0050.00216.84
8.0.180.0000.00716.73
8.0.170.0000.00816.88
8.0.160.0000.00716.81
8.0.150.0040.00416.76
8.0.140.0040.00416.82
8.0.130.0000.00513.26
8.0.120.0040.00416.69
8.0.110.0050.00216.75
8.0.100.0000.00716.61
8.0.90.0040.00416.69
8.0.80.0060.00816.74
8.0.70.0040.00416.68
8.0.60.0070.00016.71
8.0.50.0000.00716.76
8.0.30.0140.00917.05
8.0.20.0090.00917.40
8.0.10.0040.00416.98
8.0.00.0110.00716.67
7.4.330.0030.00316.85
7.4.320.0070.00016.53
7.4.300.0030.00516.38
7.4.290.0050.00316.42
7.4.280.0030.00616.42
7.4.270.0000.00716.35
7.4.260.0040.00716.48
7.4.250.0040.00416.43
7.4.240.0000.00716.33
7.4.230.0000.00716.41
7.4.220.0130.01316.30
7.4.210.0130.00416.55
7.4.200.0000.00716.46
7.4.160.0040.01216.37
7.4.150.0090.00917.40
7.4.140.0110.01117.86
7.4.130.0060.01016.44
7.4.120.0100.00916.36
7.4.110.0140.00316.47
7.4.100.0080.00916.41
7.4.90.0040.01216.34
7.4.80.0080.00919.39
7.4.70.0040.01816.45
7.4.60.0140.00316.38
7.4.50.0060.00916.27
7.4.40.0170.00616.52
7.4.30.0120.00616.37
7.4.00.0000.01414.88
7.3.330.0050.00013.20
7.3.320.0030.00313.16
7.3.310.0000.00715.98
7.3.300.0070.00016.18
7.3.290.0030.00316.09
7.3.280.0070.01016.18
7.3.270.0060.01017.40
7.3.260.0140.01016.29
7.3.250.0100.00916.43
7.3.240.0060.01016.43
7.3.230.0100.00816.41
7.3.210.0070.01016.48
7.3.200.0060.01319.39
7.3.190.0120.00616.43
7.3.180.0060.01016.16
7.3.170.0030.01516.48
7.3.160.0100.00616.14
7.3.10.0070.00716.58
7.3.00.0030.01316.38
7.2.330.0070.01716.58
7.2.320.0070.01016.60
7.2.310.0100.00716.31
7.2.300.0110.00616.22
7.2.290.0100.00616.54
7.2.130.0130.00316.50
7.2.120.0030.00916.87
7.2.110.0040.00416.97
7.2.100.0060.00616.42
7.2.90.0030.01316.38
7.2.80.0060.00616.67
7.2.70.0060.00616.93
7.2.60.0130.00216.80
7.2.50.0000.01316.67
7.2.40.0080.00416.83
7.2.30.0100.00716.62
7.2.20.0000.01016.80
7.2.10.0030.01516.95
7.2.00.0070.00917.94
7.1.250.0040.00715.66
7.1.200.0040.01115.39
7.1.100.0060.00617.95
7.1.70.0040.00417.16
7.1.60.0110.01419.40
7.1.50.0100.01016.93
7.1.00.0030.07722.49
7.0.200.0030.00616.48
7.0.60.0230.07021.81
7.0.50.0130.07717.75
7.0.40.0100.08320.27
7.0.30.0270.08020.23
7.0.20.0300.08020.20
7.0.10.0070.08320.14
7.0.00.0130.07020.14
5.6.280.0030.03020.82
5.6.210.0070.08020.61
5.6.200.0070.07318.18
5.6.190.0030.05020.55
5.6.180.0170.04720.52
5.6.170.0300.04320.45
5.6.160.0100.07020.43
5.6.150.0100.08318.18
5.6.140.0070.04718.29
5.6.130.0000.05718.15
5.6.120.0070.06321.02
5.6.110.0070.06020.98
5.6.100.0070.08320.97
5.6.90.0130.08721.13
5.6.80.0070.03720.43
5.5.350.0370.07020.50
5.5.340.0030.05318.05
5.5.330.0130.07320.18
5.5.320.0570.06020.38
5.5.310.0400.06320.30
5.5.300.0100.07717.97
5.5.290.0100.08318.01
5.5.280.0100.08020.65
5.5.270.0100.07720.65
5.5.260.0030.04320.87
5.5.250.0070.03720.61
5.5.240.0170.04020.26

preferences:
85.85 ms | 401 KiB | 5 Q