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; } } $t = new Thing; var_dump($t->foo());

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.0040.01118.31
8.3.50.0130.00316.48
8.3.40.0070.01418.59
8.3.30.0070.00718.38
8.3.20.0030.00519.05
8.3.10.0070.00021.95
8.3.00.0080.00020.94
8.2.180.0120.00916.38
8.2.170.0100.00322.96
8.2.160.0090.00620.36
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0070.00726.16
8.2.120.0030.00619.95
8.2.110.0030.00620.43
8.2.100.0110.00317.64
8.2.90.0000.00819.08
8.2.80.0000.00817.97
8.2.70.0050.00317.38
8.2.60.0030.00617.93
8.2.50.0000.00818.10
8.2.40.0000.00922.32
8.2.30.0000.00720.51
8.2.20.0020.00517.68
8.2.10.0040.00417.93
8.2.00.0000.00818.12
8.1.280.0100.00725.92
8.1.270.0080.00023.81
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0080.00423.71
8.1.230.0090.00320.98
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00817.00
8.1.180.0040.00418.10
8.1.170.0000.00818.57
8.1.160.0050.00318.96
8.1.150.0050.00318.95
8.1.140.0000.00819.49
8.1.130.0070.00017.74
8.1.120.0040.00417.49
8.1.110.0000.00717.49
8.1.100.0030.00417.43
8.1.90.0000.00717.43
8.1.80.0080.00017.43
8.1.70.0030.00317.49
8.1.60.0000.00717.47
8.1.50.0000.00817.51
8.1.40.0000.00817.54
8.1.30.0060.00317.63
8.1.20.0030.00517.48
8.1.10.0040.00417.48
8.1.00.0000.00817.44
8.0.300.0050.00518.77
8.0.290.0050.00316.75
8.0.280.0030.00318.44
8.0.270.0000.00717.29
8.0.260.0080.00017.18
8.0.250.0060.00317.00
8.0.240.0000.00716.92
8.0.230.0000.00716.94
8.0.220.0000.00816.90
8.0.210.0000.00716.78
8.0.200.0030.00316.91
8.0.190.0000.00716.92
8.0.180.0040.00416.80
8.0.170.0000.00816.80
8.0.160.0000.00716.85
8.0.150.0040.00416.84
8.0.140.0060.00316.88
8.0.130.0030.00313.24
8.0.120.0000.00816.77
8.0.110.0070.00016.80
8.0.100.0080.00016.95
8.0.90.0040.00416.69
8.0.80.0120.00316.91
8.0.70.0000.00816.98
8.0.60.0000.00716.83
8.0.50.0050.00316.93
8.0.30.0070.01317.13
8.0.20.0130.00717.40
8.0.10.0040.00416.94
8.0.00.0100.01016.53
7.4.330.0000.00715.08
7.4.320.0050.00216.50
7.4.300.0040.00416.64
7.4.290.0040.00416.60
7.4.280.0070.00016.40
7.4.270.0030.00316.43
7.4.260.0030.00616.47
7.4.250.0000.00716.54
7.4.240.0030.00516.49
7.4.230.0020.00516.49
7.4.220.0140.00416.63
7.4.210.0040.01116.50
7.4.200.0000.00716.34
7.4.160.0100.00716.47
7.4.150.0000.01717.40
7.4.140.0090.01117.86
7.4.130.0100.00816.45
7.4.120.0130.00616.46
7.4.110.0070.01016.39
7.4.100.0070.01416.47
7.4.90.0140.00316.46
7.4.80.0170.00319.39
7.4.70.0040.01316.51
7.4.60.0120.00416.34
7.4.50.0070.00716.37
7.4.40.0100.01016.58
7.4.30.0070.01016.33
7.4.00.0100.00314.93
7.3.330.0000.00613.25
7.3.320.0000.00613.20
7.3.310.0000.00716.29
7.3.300.0060.00016.19
7.3.290.0070.01116.23
7.3.280.0070.01016.22
7.3.270.0040.01417.40
7.3.260.0100.00716.33
7.3.250.0100.01016.42
7.3.240.0080.01216.42
7.3.230.0030.01316.39
7.3.210.0120.00616.36
7.3.200.0150.00316.36
7.3.190.0130.00316.50
7.3.180.0060.00916.27
7.3.170.0080.00816.30
7.3.160.0060.01116.26
7.2.330.0100.00716.61
7.2.320.0140.00916.86
7.2.310.0060.01316.27
7.2.300.0030.01516.64
7.2.290.0150.00616.61
7.2.60.0110.00416.67
7.2.00.0000.01119.14
7.1.200.0070.00715.64
7.1.100.0060.00617.55
7.1.70.0110.00416.95
7.1.60.0060.01919.32
7.1.00.0070.07322.35
7.0.200.0050.00216.41
7.0.60.1000.00019.99
7.0.50.0900.00020.22
7.0.40.1030.00020.44
7.0.30.1030.00020.21
7.0.20.1030.00020.31
7.0.10.1070.00020.32
7.0.00.1000.00020.24
5.6.280.0030.07021.02
5.6.210.1030.00020.70
5.6.200.1100.00021.16
5.6.190.1000.00021.07
5.6.180.1070.00021.04
5.6.170.0870.00021.21
5.6.160.0870.00021.00
5.6.150.0970.00021.05
5.6.140.1030.00021.16
5.6.130.0930.00021.18
5.6.120.0900.00021.13
5.6.110.0770.00021.12
5.6.100.0930.00021.10
5.6.90.1000.00021.03
5.6.80.0870.00020.54
5.6.70.1070.00020.44
5.6.60.0800.00020.53
5.6.50.1000.00020.47
5.6.40.0830.00020.50
5.6.30.0930.00020.52
5.6.20.0970.00020.42
5.6.10.0870.00020.47
5.6.00.0930.00020.30
5.5.350.0970.00020.46
5.5.340.0930.00020.88
5.5.330.0970.00020.81
5.5.320.0830.00020.87
5.5.310.0800.00020.80
5.5.300.0870.00021.04
5.5.290.0930.00020.88
5.5.280.0730.00020.87
5.5.270.0900.00021.02
5.5.260.0970.00020.87
5.5.250.1030.00020.55
5.5.240.0770.00020.21
5.5.230.0800.00020.18
5.5.220.0770.00020.25
5.5.210.0730.00020.09
5.5.200.0800.00020.19
5.5.190.0970.00020.19
5.5.180.0870.00020.15
5.5.160.0830.00020.18
5.5.150.0830.00020.35
5.5.140.0830.00020.39
5.5.130.1070.00020.07
5.5.120.0900.00020.30
5.5.110.0670.00020.30
5.5.100.0700.00020.08
5.5.90.0770.00020.00
5.5.80.0870.00020.05
5.5.70.0870.00020.10
5.5.60.1270.00020.11
5.5.50.1170.00019.99
5.5.40.0970.00019.95
5.5.30.0670.00020.10
5.5.20.0670.00020.05
5.5.10.0730.00020.10
5.5.00.0830.00020.14

preferences:
60.26 ms | 401 KiB | 5 Q