3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { function foo() { echo "trait";} } trait B { function foo() { echo "trait";} } class C1 { use A; } class C2 { use A; use B; }

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.0130.00616.63
8.3.50.0070.00716.36
8.3.40.0000.01418.79
8.3.30.0030.01218.72
8.3.20.0080.00020.34
8.3.10.0040.00421.77
8.3.00.0000.00919.15
8.2.180.0000.01918.39
8.2.170.0070.00722.96
8.2.160.0060.01220.38
8.2.150.0110.00325.66
8.2.140.0070.00024.66
8.2.130.0040.00421.07
8.2.120.0050.00326.35
8.2.110.0060.00322.11
8.2.100.0090.00317.84
8.2.90.0040.00417.73
8.2.80.0030.00617.97
8.2.70.0060.00317.65
8.2.60.0000.00817.97
8.2.50.0060.00318.10
8.2.40.0000.00720.50
8.2.30.0020.00520.98
8.2.20.0040.00417.91
8.2.10.0040.00418.05
8.2.00.0030.00317.96
8.1.280.0140.00725.92
8.1.270.0070.00023.97
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00020.43
8.1.230.0060.01020.93
8.1.220.0040.00421.02
8.1.210.0080.00318.77
8.1.200.0060.00317.10
8.1.190.0030.00517.13
8.1.180.0030.00618.10
8.1.170.0040.00418.72
8.1.160.0030.00518.94
8.1.150.0060.00320.57
8.1.140.0000.00719.48
8.1.130.0000.00818.81
8.1.120.0000.00717.35
8.1.110.0050.00317.38
8.1.100.0040.00417.27
8.1.90.0040.00517.40
8.1.80.0000.00817.27
8.1.70.0030.00317.38
8.1.60.0040.00417.55
8.1.50.0040.00417.48
8.1.40.0000.00817.46
8.1.30.0000.00817.56
8.1.20.0020.00517.49
8.1.10.0030.00517.35
8.1.00.0040.00417.21
8.0.300.0040.00421.95
8.0.290.0040.00416.75
8.0.280.0030.00318.29
8.0.270.0030.00317.15
8.0.260.0040.00416.79
8.0.250.0000.00716.96
8.0.240.0030.00316.81
8.0.230.0030.00716.97
8.0.220.0000.00716.73
8.0.210.0030.00316.78
8.0.200.0060.00016.88
8.0.190.0000.00817.00
8.0.180.0040.00416.97
8.0.170.0000.00716.82
8.0.160.0030.00316.96
8.0.150.0050.00216.89
8.0.140.0000.00716.85
8.0.130.0000.00613.19
8.0.120.0080.00016.74
8.0.110.0000.00716.91
8.0.100.0040.00416.85
8.0.90.0000.00716.70
8.0.80.0170.00416.86
8.0.70.0040.00416.79
8.0.60.0040.00417.00
8.0.50.0050.00216.75
8.0.30.0140.00317.03
8.0.20.0060.01217.40
8.0.10.0070.00017.06
8.0.00.0090.00916.46
7.4.330.0020.00315.55
7.4.320.0030.00316.43
7.4.300.0040.00416.44
7.4.290.0070.00016.35
7.4.280.0050.00316.51
7.4.270.0070.00016.53
7.4.260.0000.00716.53
7.4.250.0000.00816.35
7.4.240.0000.00716.52
7.4.230.0070.00016.22
7.4.220.0120.00816.46
7.4.210.0090.00616.55
7.4.200.0030.00316.33
7.4.160.0090.00916.43
7.4.150.0090.00917.40
7.4.140.0110.01017.86
7.4.130.0130.00616.57
7.4.120.0140.00616.41
7.4.110.0140.01016.44
7.4.100.0120.01016.43
7.4.90.0110.01116.45
7.4.80.0030.01319.39
7.4.70.0030.01316.29
7.4.60.0100.00616.61
7.4.50.0130.00316.48
7.4.40.0060.01116.29
7.4.30.0070.01316.29
7.4.00.0020.01215.06
7.3.330.0050.00013.05
7.3.320.0050.00013.16
7.3.310.0040.00416.24
7.3.300.0000.00616.24
7.3.290.0070.00916.21
7.3.280.0110.00716.20
7.3.270.0100.01017.40
7.3.260.0090.00916.52
7.3.250.0070.01016.41
7.3.240.0090.00816.37
7.3.230.0140.00416.48
7.3.210.0040.01216.15
7.3.200.0000.01616.47
7.3.190.0070.01016.34
7.3.180.0070.01016.33
7.3.170.0060.01016.51
7.3.160.0120.00316.28
7.3.120.0090.00914.98
7.3.110.0090.00614.88
7.3.100.0120.00614.57
7.3.90.0090.00614.68
7.3.80.0040.00714.66
7.3.70.0110.00414.82
7.3.60.0040.01114.64
7.3.50.0110.00714.54
7.3.40.0080.00014.70
7.3.30.0070.00714.76
7.3.20.0060.00916.44
7.3.10.0060.00716.46
7.3.00.0060.00816.51
7.2.330.0030.01516.48
7.2.320.0060.01216.23
7.2.310.0060.01016.52
7.2.300.0090.00916.22
7.2.290.0160.00316.36
7.2.250.0070.01014.84
7.2.240.0040.01515.02
7.2.230.0100.00714.87
7.2.220.0000.01514.87
7.2.210.0000.01414.91
7.2.200.0090.00914.90
7.2.190.0070.00714.93
7.2.180.0030.00714.89
7.2.170.0000.01314.61
7.2.130.0070.00616.73
7.2.120.0070.00416.69
7.2.110.0090.00516.53
7.2.100.0070.00816.57
7.2.90.0100.00416.78
7.2.80.0100.00616.65
7.2.70.0130.00716.75
7.2.60.0070.00916.84
7.2.50.0090.00716.76
7.2.40.0070.01016.63
7.2.30.0080.00716.72
7.2.20.0120.00516.77
7.2.10.0130.00916.71
7.2.00.0110.00817.29
7.1.330.0110.00315.82
7.1.320.0000.01215.39
7.1.310.0060.00615.62
7.1.300.0070.01115.65
7.1.290.0060.00315.83
7.1.280.0000.01215.63
7.1.270.0000.01515.55
7.1.260.0030.01315.68
7.1.250.0040.00515.38
7.1.230.0120.00215.78
7.1.220.0140.00315.68
7.1.210.0120.00615.34
7.1.200.0220.00915.61
7.1.190.0030.01315.52
7.1.180.0190.00915.42
7.1.170.0070.01015.55
7.1.160.0370.00415.68
7.1.150.0260.00315.41
7.1.140.0120.00815.50
7.1.130.0380.00015.80
7.1.120.0070.00715.54
7.1.110.0290.00615.61
7.1.100.0070.00716.73
7.1.90.0140.00315.39
7.1.80.0070.01415.58
7.1.70.0120.00616.18
7.1.60.0170.01625.24
7.1.50.0180.00925.25
7.1.40.0220.01125.04
7.1.30.0200.01025.00
7.1.20.0210.01025.12
7.1.10.0080.00916.10
7.1.00.0120.00616.06
7.0.310.0120.00315.13
7.0.300.0080.00815.07
7.0.290.0110.00415.13
7.0.280.0110.00615.25
7.0.270.0110.00815.27
7.0.260.0120.00915.25
7.0.250.0040.00915.41
7.0.240.0070.01015.30
7.0.230.0050.00915.20
7.0.220.0070.01115.24
7.0.210.0150.00015.41
7.0.200.0130.00814.82
7.0.190.0030.01216.02
7.0.180.0100.00815.63
7.0.170.0080.01115.67
7.0.160.0060.01115.73
7.0.150.0220.00715.75
7.0.140.0060.01115.66
7.0.130.0090.01015.94
7.0.120.0080.01216.02
7.0.110.0110.00915.71
7.0.100.0120.00815.71
7.0.90.0120.00615.72
7.0.80.0100.00815.77
7.0.70.0100.00815.78
7.0.60.0120.00815.77
7.0.50.0130.00815.72
7.0.40.0080.01014.94
7.0.30.0100.00614.73
7.0.20.0090.00914.75
7.0.10.0110.00714.79
7.0.00.0100.00714.85
5.6.380.0130.00314.02

preferences:
41.25 ms | 400 KiB | 5 Q