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 TB; } } $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.0170.00016.63
8.3.50.0140.00521.15
8.3.40.0150.00018.64
8.3.30.0080.00618.63
8.3.20.0080.00020.12
8.3.10.0040.00421.73
8.3.00.0080.00023.66
8.2.180.0070.01118.29
8.2.170.0100.00722.96
8.2.160.0100.00320.52
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00419.52
8.2.120.0070.00026.35
8.2.110.0090.00019.24
8.2.100.0090.00319.54
8.2.90.0040.00419.09
8.2.80.0080.00017.97
8.2.70.0090.00017.50
8.2.60.0060.00317.80
8.2.50.0080.00018.10
8.2.40.0050.00220.57
8.2.30.0000.00719.39
8.2.20.0060.00317.52
8.2.10.0040.00417.91
8.2.00.0050.00217.90
8.1.280.0000.01425.92
8.1.270.0070.00723.84
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00321.22
8.1.230.0080.00317.70
8.1.220.0050.00217.74
8.1.210.0080.00018.77
8.1.200.0030.00617.10
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0000.00918.64
8.1.160.0040.00418.94
8.1.150.0040.00418.73
8.1.140.0050.00319.50
8.1.130.0030.00517.47
8.1.120.0000.00717.39
8.1.110.0000.00717.39
8.1.100.0040.00417.41
8.1.90.0070.00017.36
8.1.80.0000.00717.35
8.1.70.0030.00317.39
8.1.60.0060.00317.50
8.1.50.0060.00317.43
8.1.40.0040.00417.33
8.1.30.0050.00317.54
8.1.20.0000.00817.55
8.1.10.0030.00517.38
8.1.00.0110.00017.32
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.36
8.0.270.0000.00717.19
8.0.260.0030.00317.08
8.0.250.0060.00016.85
8.0.240.0080.00017.01
8.0.230.0000.00616.96
8.0.220.0000.00716.88
8.0.210.0000.00716.86
8.0.200.0060.00316.93
8.0.190.0000.00916.96
8.0.180.0000.00716.91
8.0.170.0050.00316.88
8.0.160.0070.00016.91
8.0.150.0030.00416.90
8.0.140.0000.00816.69
8.0.130.0000.00613.26
8.0.120.0000.01016.81
8.0.110.0000.00716.79
8.0.100.0020.00516.69
8.0.90.0040.00417.00
8.0.80.0100.00716.86
8.0.70.0020.00516.75
8.0.60.0040.00416.97
8.0.50.0040.00416.85
8.0.30.0100.00917.01
8.0.20.0080.01217.40
8.0.10.0000.00717.02
8.0.00.0110.00916.72
7.4.330.0050.00016.79
7.4.320.0030.00316.53
7.4.300.0000.00716.53
7.4.290.0070.00016.43
7.4.280.0030.00616.43
7.4.270.0060.00016.44
7.4.260.0070.00316.44
7.4.250.0000.00816.29
7.4.240.0030.00516.45
7.4.230.0040.00416.59
7.4.220.0040.01516.48
7.4.210.0000.01516.48
7.4.200.0000.00716.27
7.4.160.0120.00616.34
7.4.150.0120.00617.40
7.4.140.0100.00817.86
7.4.130.0090.00916.45
7.4.120.0100.01016.44
7.4.110.0060.00916.28
7.4.100.0130.00616.52
7.4.90.0100.00716.36
7.4.80.0050.01519.39
7.4.70.0120.00816.36
7.4.60.0090.00816.53
7.4.50.0070.00716.26
7.4.40.0060.01216.66
7.4.30.0100.00716.55
7.4.00.0070.00914.85
7.3.330.0000.00613.18
7.3.320.0050.00013.20
7.3.310.0030.00316.13
7.3.300.0000.00716.15
7.3.290.0060.01016.22
7.3.280.0080.00816.24
7.3.270.0150.00417.40
7.3.260.0160.00616.40
7.3.250.0080.01016.32
7.3.240.0130.00716.21
7.3.230.0080.01116.39
7.3.210.0080.00816.45
7.3.200.0100.00619.39
7.3.190.0030.01316.35
7.3.180.0100.00716.35
7.3.170.0150.00616.27
7.3.160.0110.00416.45
7.3.120.0070.01014.76
7.3.110.0130.00314.91
7.3.100.0030.01314.62
7.3.90.0090.00914.46
7.3.80.0040.00814.82
7.3.70.0040.00814.79
7.3.60.0070.00414.85
7.3.50.0100.00714.86
7.3.40.0030.00714.62
7.3.30.0070.00414.73
7.3.20.0000.01516.45
7.3.10.0080.00316.45
7.3.00.0060.00816.57
7.2.330.0120.00616.54
7.2.320.0190.00316.57
7.2.310.0100.00716.38
7.2.300.0120.00916.35
7.2.290.0100.00716.30
7.2.250.0100.00714.96
7.2.240.0080.00815.14
7.2.230.0130.00314.85
7.2.220.0090.00614.66
7.2.210.0080.00514.70
7.2.200.0000.01415.00
7.2.190.0140.00014.99
7.2.180.0060.00915.01
7.2.170.0060.00615.04
7.2.160.0000.01414.95
7.2.150.0070.01116.88
7.2.140.0030.01016.87
7.2.130.0060.01016.81
7.2.120.0030.01016.71
7.2.110.0090.00816.85
7.2.100.0100.00416.67
7.2.90.0070.00916.71
7.2.80.0100.00716.83
7.2.70.0080.00316.73
7.2.60.0060.00916.71
7.2.50.0060.00816.68
7.2.40.0050.01016.72
7.2.30.0080.00516.68
7.2.20.0040.00816.63
7.2.10.0070.00816.69
7.2.00.0060.00617.37
7.1.330.0000.01515.41
7.1.320.0130.00315.40
7.1.310.0040.01115.76
7.1.300.0100.00715.76
7.1.290.0090.00915.77
7.1.280.0030.00615.69
7.1.270.0060.00915.69
7.1.260.0040.00815.36
7.1.250.0050.00715.59
7.1.240.0040.00915.73
7.1.230.0040.00915.62
7.1.220.0060.00815.67
7.1.210.0060.00815.42
7.1.200.0050.01115.47
7.1.190.0070.00615.59
7.1.180.0060.00815.55
7.1.170.0050.00715.79
7.1.160.0090.00515.66
7.1.150.0080.00415.64
7.1.140.0070.00615.46
7.1.130.0070.00315.73
7.1.120.0080.01015.47
7.1.110.0060.00615.59
7.1.100.0050.00716.42
7.1.90.0030.01015.66
7.1.80.0050.01015.69
7.1.70.0030.00716.13
7.1.60.0040.01216.77
7.1.50.0060.00815.98
7.1.40.0070.00715.45
7.1.30.0020.01215.59
7.1.20.0040.00715.46
7.1.10.0090.00915.56
7.1.00.0080.03017.94
7.0.330.0050.00615.28
7.0.320.0070.00515.16
7.0.310.0080.00415.19
7.0.300.0070.00615.05
7.0.290.0050.00815.29
7.0.280.0030.00815.24
7.0.270.0100.00415.21
7.0.260.0040.00715.27
7.0.250.0020.00915.18
7.0.240.0030.01015.22
7.0.230.0070.00615.34
7.0.220.0070.00515.20
7.0.210.0060.00615.31
7.0.200.0300.00415.08
7.0.190.0000.01215.10
7.0.180.0030.01115.22
7.0.170.0080.00415.30
7.0.160.0070.00515.32
7.0.150.0030.00615.24
7.0.140.0110.00015.25
7.0.130.0060.00715.17
7.0.120.0060.00415.25
7.0.110.0070.00715.11
7.0.100.0100.00715.01
7.0.90.0000.01115.06
7.0.80.0050.00715.18
7.0.70.0050.00815.28
7.0.60.0030.01917.44
7.0.50.0040.01916.12
7.0.40.0060.02615.66
7.0.30.0150.03015.68
7.0.20.0080.01915.73
7.0.10.0070.01815.61
7.0.00.0060.01915.63
5.6.400.0070.00414.32
5.6.390.0070.00714.20
5.6.380.0070.00714.14
5.6.370.0060.00814.07
5.6.360.0100.00614.27
5.6.350.0070.00614.05
5.6.340.0060.00613.83
5.6.330.0050.00914.08
5.6.320.0050.01014.16
5.6.310.0030.01014.16
5.6.300.0050.00714.11
5.6.290.0060.00914.09
5.6.280.0050.02816.45
5.6.270.0060.00814.06
5.6.260.0080.00814.20
5.6.250.0070.00814.36
5.6.240.0110.00314.18
5.6.230.0030.00814.00
5.6.220.0080.00713.97
5.6.210.0070.02916.25
5.6.200.0090.03015.50
5.6.190.0070.02916.11
5.6.180.0120.02816.26
5.6.170.0130.01916.18
5.6.160.0060.03116.16
5.6.150.0130.02115.56
5.6.140.0110.01915.48
5.6.130.0050.02115.42
5.6.120.0080.03116.41
5.6.110.0100.02916.42
5.6.100.0050.03516.34
5.6.90.0070.03016.26
5.6.80.0060.03316.03
5.6.70.0080.00913.92
5.6.60.0070.01013.86
5.6.50.0070.00813.90
5.6.40.0060.01013.97
5.6.30.0080.00814.12
5.6.20.0080.00213.91
5.6.10.0090.00514.09
5.6.00.0040.01014.04
5.5.380.0050.00712.54
5.5.370.0090.00312.40
5.5.360.0090.00212.19
5.5.350.0170.02815.04
5.5.340.0060.03114.19
5.5.330.0010.02015.09
5.5.320.0060.02515.18
5.5.310.0090.02415.10
5.5.300.0090.01914.25
5.5.290.0080.01914.19
5.5.280.0060.03315.17
5.5.270.0090.02915.24
5.5.260.0070.03115.26
5.5.250.0070.03315.15
5.5.240.0080.03015.14
5.5.230.0080.00412.32
5.5.220.0100.00312.19
5.5.210.0060.00812.46
5.5.200.0040.00712.17
5.5.190.0030.00812.48
5.5.180.0030.00912.26
5.5.170.0030.00812.45
5.5.160.0040.00712.30
5.5.150.0140.00112.59
5.5.140.0050.00612.53
5.5.130.0070.00512.22
5.5.120.0030.00712.46
5.5.110.0050.00712.46
5.5.100.0060.00512.58
5.5.90.0030.00712.47
5.5.80.0030.00712.63
5.5.70.0020.01112.23
5.5.60.0040.00612.47
5.5.50.0050.00812.50
5.5.40.0100.00312.47
5.5.30.0040.00712.36
5.5.20.0080.00512.36
5.5.10.0020.01112.47
5.5.00.0030.00812.44

preferences:
62.35 ms | 401 KiB | 5 Q