3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait TA { function foo() {} } trait TB { function foo() {} } trait TC { function foo() {} } class C { use TA, TB, TC { TB::foo insteadof TA; } } $c = new C; $c->foo(); $c->bar(); $c->baz();

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.01116.63
8.3.50.0120.00521.14
8.3.40.0120.00918.72
8.3.30.0090.00618.32
8.3.20.0070.00019.94
8.3.10.0080.00021.63
8.3.00.0040.00423.67
8.2.180.0100.01016.38
8.2.170.0070.00722.96
8.2.160.0110.00420.57
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00419.70
8.2.120.0090.00026.35
8.2.110.0040.00420.96
8.2.100.0090.00318.03
8.2.90.0040.00419.22
8.2.80.0050.00317.97
8.2.70.0080.00317.63
8.2.60.0040.00417.80
8.2.50.0000.00818.07
8.2.40.0060.00322.20
8.2.30.0040.00419.42
8.2.20.0000.00717.66
8.2.10.0000.00718.02
8.2.00.0000.00717.96
8.1.280.0090.00625.92
8.1.270.0100.01023.97
8.1.260.0070.00028.09
8.1.250.0050.00328.09
8.1.240.0040.00720.48
8.1.230.0070.00419.10
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0080.00017.00
8.1.180.0060.00318.10
8.1.170.0030.00618.38
8.1.160.0040.00420.63
8.1.150.0050.00318.81
8.1.140.0000.00819.35
8.1.130.0030.00517.61
8.1.120.0030.00517.41
8.1.110.0070.00017.38
8.1.100.0030.00517.30
8.1.90.0000.00717.36
8.1.80.0040.00317.29
8.1.70.0040.00417.27
8.1.60.0000.00817.43
8.1.50.0060.00317.50
8.1.40.0020.00517.32
8.1.30.0000.00817.55
8.1.20.0040.00417.61
8.1.10.0070.00017.45
8.1.00.0030.00717.27
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0040.00418.35
8.0.270.0040.00417.16
8.0.260.0030.00317.11
8.0.250.0030.00316.97
8.0.240.0030.00516.91
8.0.230.0000.00716.95
8.0.220.0000.00716.87
8.0.210.0040.00316.81
8.0.200.0030.00516.99
8.0.190.0040.00416.93
8.0.180.0070.00016.79
8.0.170.0040.00416.90
8.0.160.0000.00816.99
8.0.150.0070.00016.84
8.0.140.0000.00716.75
8.0.130.0050.00013.31
8.0.120.0030.00616.86
8.0.110.0040.00416.89
8.0.100.0040.00416.89
8.0.90.0000.00716.74
8.0.80.0030.01216.82
8.0.70.0000.00716.96
8.0.60.0040.00416.77
8.0.50.0040.00416.76
8.0.30.0100.00817.18
8.0.20.0130.00617.40
8.0.10.0000.00816.97
8.0.00.0100.00916.73
7.4.330.0000.00516.80
7.4.320.0030.00316.53
7.4.300.0030.00316.54
7.4.290.0030.00316.48
7.4.280.0030.00616.43
7.4.270.0040.00416.51
7.4.260.0080.00016.50
7.4.250.0070.00016.50
7.4.240.0050.00316.42
7.4.230.0040.00416.62
7.4.220.0100.01016.52
7.4.210.0070.00716.55
7.4.200.0040.00416.18
7.4.160.0110.00916.32
7.4.150.0090.00917.40
7.4.140.0120.00817.86
7.4.130.0090.01116.53
7.4.120.0060.01316.52
7.4.110.0100.00716.47
7.4.100.0130.00316.48
7.4.90.0030.01316.50
7.4.80.0060.01219.39
7.4.70.0100.01316.49
7.4.60.0100.00716.37
7.4.50.0030.01216.46
7.4.40.0060.01016.45
7.4.30.0150.00316.46
7.4.00.0090.00914.72
7.3.330.0030.00313.02
7.3.320.0050.00013.19
7.3.310.0030.00316.28
7.3.300.0040.00416.29
7.3.290.0090.00916.27
7.3.280.0080.00716.26
7.3.270.0120.00617.40
7.3.260.0140.00716.41
7.3.250.0090.00916.21
7.3.240.0130.00616.37
7.3.230.0180.00816.48
7.3.210.0110.00616.33
7.3.200.0060.01019.39
7.3.190.0100.00716.21
7.3.180.0070.01016.45
7.3.170.0140.00716.38
7.3.160.0120.00416.43
7.3.120.0030.01414.82
7.3.110.0040.01214.83
7.3.100.0090.00614.70
7.3.90.0040.00714.89
7.3.80.0110.00414.71
7.3.70.0100.00314.78
7.3.60.0070.00714.71
7.3.50.0060.00614.79
7.3.40.0090.00314.79
7.3.30.0070.00714.89
7.3.20.0060.00616.50
7.3.10.0070.00516.47
7.3.00.0060.00816.54
7.2.330.0070.01116.59
7.2.320.0130.00316.58
7.2.310.0110.00516.43
7.2.300.0100.00716.51
7.2.290.0100.00616.43
7.2.250.0100.00714.89
7.2.240.0030.01715.00
7.2.230.0130.00314.89
7.2.220.0040.01114.78
7.2.210.0090.00315.09
7.2.200.0080.00614.87
7.2.190.0070.00714.75
7.2.180.0060.00615.01
7.2.170.0090.00614.83
7.2.130.0000.01316.53
7.2.120.0120.00016.82
7.2.110.0040.00816.73
7.2.100.0060.00616.84
7.2.90.0000.00916.75
7.2.80.0060.00616.89
7.2.70.0090.00316.88
7.2.60.0000.01316.86
7.2.50.0000.01416.73
7.2.40.0040.01116.29
7.2.30.0070.00716.39
7.2.20.0080.00416.88
7.2.10.0060.01016.50
7.2.00.0090.00718.00
7.1.330.0100.00715.59
7.1.320.0030.01015.65
7.1.310.0120.00315.25
7.1.300.0030.00715.47
7.1.290.0080.00315.67
7.1.280.0100.00715.69
7.1.270.0040.00815.73
7.1.260.0000.00815.73
7.1.250.0060.00615.69
7.1.200.0060.00615.66
7.1.100.0000.01418.09
7.1.70.0060.00616.83
7.1.60.0150.00919.28
7.1.50.0130.00916.82
7.1.00.0030.07322.36
7.0.200.0810.00714.78
7.0.60.0070.03321.75
7.0.50.0100.04017.87
7.0.40.0100.05320.09
7.0.30.0230.04320.21
7.0.20.0170.04020.20
7.0.10.0130.08020.23
7.0.00.0100.09020.20
5.6.280.0000.07021.11
5.6.210.0100.07720.51
5.6.200.0030.09018.15
5.6.190.0100.08020.61
5.6.180.0270.07720.64
5.6.170.0370.07320.66
5.6.160.0070.05320.71
5.6.150.0100.07018.18
5.6.140.0070.08318.28
5.6.130.0070.08018.15
5.6.120.0100.08020.98
5.6.110.0070.05720.89
5.6.100.0030.07721.04
5.6.90.0070.08321.10
5.6.80.0030.08020.39
5.5.350.0370.05720.42
5.5.340.0070.08318.04
5.5.330.0030.05320.35
5.5.320.0300.04020.25
5.5.310.0230.08020.32
5.5.300.0070.05017.95
5.5.290.0100.03717.95
5.5.280.0130.04720.78
5.5.270.0030.09020.90
5.5.260.0100.05320.73
5.5.250.0100.08020.55
5.5.240.0170.07720.17

preferences:
60.09 ms | 401 KiB | 5 Q