3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { public function foo() {return 1;} } trait B { public function foo() {return 2;} } trait C { /*public function foo() {return 3;}*/ } class Thing { use A, B, C { A::foo insteadof 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.0140.00718.43
8.3.50.0140.00721.11
8.3.40.0140.00018.46
8.3.30.0070.00718.66
8.3.20.0080.00018.96
8.3.10.0040.00421.70
8.3.00.0040.00420.94
8.2.180.0120.00316.63
8.2.170.0070.00722.96
8.2.160.0160.00020.52
8.2.150.0070.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00417.91
8.2.120.0080.00026.35
8.2.110.0070.00321.04
8.2.100.0040.00817.78
8.2.90.0040.00419.02
8.2.80.0070.00019.33
8.2.70.0050.00317.50
8.2.60.0040.00417.91
8.2.50.0060.00318.10
8.2.40.0040.00420.58
8.2.30.0040.00420.67
8.2.20.0030.00617.62
8.2.10.0040.00417.98
8.2.00.0070.00017.85
8.1.280.0090.00925.92
8.1.270.0030.00521.95
8.1.260.0050.00328.09
8.1.250.0070.00028.09
8.1.240.0030.00720.95
8.1.230.0000.01117.47
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0070.00317.23
8.1.190.0000.00817.23
8.1.180.0040.00418.10
8.1.170.0070.00018.71
8.1.160.0040.00418.90
8.1.150.0000.00818.81
8.1.140.0040.00419.51
8.1.130.0070.00017.53
8.1.120.0000.00717.30
8.1.110.0040.00417.25
8.1.100.0000.00717.33
8.1.90.0030.00517.39
8.1.80.0040.00417.42
8.1.70.0000.00717.29
8.1.60.0040.00417.39
8.1.50.0090.00017.35
8.1.40.0040.00417.47
8.1.30.0060.00317.45
8.1.20.0080.00017.54
8.1.10.0000.00817.38
8.1.00.0000.00717.35
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0040.00418.38
8.0.270.0030.00317.09
8.0.260.0000.00617.18
8.0.250.0070.00016.87
8.0.240.0000.00616.93
8.0.230.0000.00816.86
8.0.220.0070.00016.69
8.0.210.0070.00016.70
8.0.200.0030.00316.83
8.0.190.0070.00016.77
8.0.180.0040.00416.73
8.0.170.0040.00416.71
8.0.160.0030.00316.88
8.0.150.0000.00716.75
8.0.140.0030.00516.69
8.0.130.0000.00613.29
8.0.120.0030.00516.81
8.0.110.0040.00416.81
8.0.100.0000.00816.71
8.0.90.0030.00616.72
8.0.80.0120.00916.88
8.0.70.0070.00016.84
8.0.60.0000.00716.64
8.0.50.0040.00416.85
8.0.30.0070.01216.98
8.0.20.0160.00417.40
8.0.10.0040.00416.96
8.0.00.0120.01216.48
7.4.330.0000.00515.08
7.4.320.0000.00616.43
7.4.300.0000.00816.48
7.4.290.0070.00016.53
7.4.280.0040.00416.34
7.4.270.0070.00016.48
7.4.260.0000.00816.50
7.4.250.0030.00316.41
7.4.240.0030.00616.37
7.4.230.0070.00016.55
7.4.220.0090.00916.53
7.4.210.0070.01016.59
7.4.200.0080.00016.61
7.4.160.0140.00316.37
7.4.150.0100.01017.40
7.4.140.0090.01017.86
7.4.130.0090.00916.57
7.4.120.0100.00716.46
7.4.110.0090.00916.31
7.4.100.0040.01416.59
7.4.90.0100.00716.42
7.4.80.0100.00619.39
7.4.70.0080.00916.34
7.4.60.0100.00616.25
7.4.50.0060.00616.47
7.4.40.0040.01116.15
7.4.30.0130.00316.37
7.4.00.0100.00714.54
7.3.330.0030.00313.07
7.3.320.0030.00213.13
7.3.310.0070.00016.07
7.3.300.0000.00716.05
7.3.290.0080.01016.16
7.3.280.0070.01216.16
7.3.270.0160.00417.40
7.3.260.0100.00816.29
7.3.250.0120.00616.31
7.3.240.0080.00816.33
7.3.230.0070.01016.39
7.3.210.0100.00716.36
7.3.200.0060.00916.52
7.3.190.0070.01116.21
7.3.180.0100.00716.54
7.3.170.0120.00916.31
7.3.160.0160.00016.19
7.2.330.0040.01416.63
7.2.320.0060.01716.38
7.2.310.0060.01216.55
7.2.300.0130.00316.38
7.2.290.0100.00716.24
7.2.60.0060.00916.63
7.2.00.0030.01019.26
7.1.200.0080.00015.70
7.1.100.0030.00918.09
7.1.70.0060.01216.79
7.1.60.0110.01119.32
7.1.00.0100.06722.36
7.0.200.0040.00416.76
7.0.60.0830.00019.95
7.0.50.0900.00020.34
7.0.40.1100.00020.27
7.0.30.1130.00020.33
7.0.20.0800.00020.30
7.0.10.1030.00020.43
7.0.00.1070.00020.30
5.6.280.0000.07721.16
5.6.210.0700.00020.63
5.6.200.0970.00020.97
5.6.190.0900.00021.20
5.6.180.0900.00021.13
5.6.170.1070.00021.14
5.6.160.1000.00021.18
5.6.150.0970.00021.17
5.6.140.1030.00021.06
5.6.130.1070.00021.21
5.6.120.0870.00021.05
5.6.110.0800.00021.04
5.6.100.0970.00021.20
5.6.90.0770.00021.10
5.6.80.0770.00020.51
5.6.70.0970.00020.41
5.6.60.0830.00020.50
5.6.50.0930.00020.35
5.6.40.1030.00020.48
5.6.30.1030.00020.45
5.6.20.0800.00020.38
5.6.10.0800.00020.32
5.6.00.0830.00020.38
5.5.350.1070.00020.44
5.5.340.0900.00021.01
5.5.330.1200.00020.80
5.5.320.1070.00020.83
5.5.310.0970.00020.96
5.5.300.0800.00021.05
5.5.290.0830.00020.95
5.5.280.0770.00020.87
5.5.270.1030.00020.79
5.5.260.0770.00020.81
5.5.250.0800.00020.78
5.5.240.0800.00020.22
5.5.230.0970.00020.13
5.5.220.0970.00020.14
5.5.210.0970.00020.15
5.5.200.1000.00020.23
5.5.190.1030.00020.35
5.5.180.0870.00020.09
5.5.160.0830.00020.21
5.5.150.0830.00020.21
5.5.140.0870.00020.10
5.5.130.0830.00020.21
5.5.120.0800.00020.21
5.5.110.0970.00020.37
5.5.100.0800.00020.02
5.5.90.0900.00020.10
5.5.80.1000.00020.07
5.5.70.0830.00020.27
5.5.60.1030.00019.91
5.5.50.0830.00019.95
5.5.40.0830.00020.10
5.5.30.0930.00020.14
5.5.20.1030.00020.15
5.5.10.1000.00020.13
5.5.00.0900.00020.07

preferences:
62.79 ms | 401 KiB | 5 Q