3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T1 { public function __construct(){ echo "t1 trait"; parent::__construct(); } } trait T2 { public function __construct(){ echo "t2 trait"; parent::__construct(); } } class Test { use T1, T2; public function __construct(){ echo "test class"; } } $t = new Test(); var_dump(ReflectionClass::getTraitNames($t));

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.0110.01116.63
8.3.50.0130.00821.92
8.3.40.0120.00318.86
8.3.30.0040.01418.67
8.3.20.0070.00020.16
8.3.10.0040.00423.57
8.3.00.0040.00419.38
8.2.180.0090.00616.73
8.2.170.0070.00722.96
8.2.160.0030.01020.43
8.2.150.0090.00024.18
8.2.140.0080.00024.66
8.2.130.0030.00617.38
8.2.120.0000.00726.35
8.2.110.0150.00422.12
8.2.100.0080.00417.78
8.2.90.0040.00419.03
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0070.00019.09
8.2.30.0000.00720.50
8.2.20.0040.00417.80
8.2.10.0080.00017.97
8.2.00.0040.00417.98
8.1.280.0070.00725.92
8.1.270.0060.00323.84
8.1.260.0050.00228.09
8.1.250.0040.00428.09
8.1.240.0030.00722.18
8.1.230.0080.00319.05
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0000.00817.35
8.1.190.0030.00517.23
8.1.180.0060.00318.10
8.1.170.0040.00418.76
8.1.160.0000.00722.04
8.1.150.0040.00418.85
8.1.140.0040.00419.49
8.1.130.0050.00217.76
8.1.120.0000.00717.49
8.1.110.0000.00717.36
8.1.100.0040.00417.36
8.1.90.0040.00417.47
8.1.80.0000.00817.47
8.1.70.0000.00717.43
8.1.60.0030.00517.44
8.1.50.0030.00717.41
8.1.40.0040.00417.51
8.1.30.0030.00517.63
8.1.20.0050.00317.46
8.1.10.0090.00017.55
8.1.00.0030.00617.39
8.0.300.0040.00419.76
8.0.290.0080.00016.63
8.0.280.0030.00318.35
8.0.270.0000.00717.25
8.0.260.0030.00317.32
8.0.250.0030.00317.04
8.0.240.0040.00416.99
8.0.230.0070.00017.07
8.0.220.0070.00016.86
8.0.210.0030.00616.91
8.0.200.0000.00717.05
8.0.190.0040.00416.98
8.0.180.0040.00416.93
8.0.170.0060.00316.96
8.0.160.0000.00716.91
8.0.150.0000.00916.91
8.0.140.0080.00416.80
8.0.130.0030.00313.37
8.0.120.0080.00016.89
8.0.110.0030.00516.89
8.0.100.0000.00717.01
8.0.90.0040.00416.97
8.0.80.0080.00616.94
8.0.70.0000.00716.83
8.0.60.0070.00016.89
8.0.50.0000.00716.84
8.0.30.0110.00717.18
8.0.20.0090.01217.40
8.0.10.0040.00416.96
8.0.00.0130.00616.87
7.4.330.0050.00016.70
7.4.320.0040.00416.43
7.4.300.0000.00716.51
7.4.290.0040.00416.52
7.4.280.0000.00716.49
7.4.270.0070.00016.43
7.4.260.0000.00716.48
7.4.250.0040.00416.57
7.4.240.0020.00516.51
7.4.230.0030.00316.30
7.4.220.0090.00916.51
7.4.210.0110.00416.67
7.4.200.0070.00016.43
7.4.160.0150.00616.75
7.4.150.0110.00717.40
7.4.140.0130.01117.86
7.4.130.0070.01016.59
7.4.120.0050.01316.50
7.4.110.0070.01016.55
7.4.100.0070.01016.53
7.4.90.0110.00716.44
7.4.80.0100.00719.39
7.4.70.0220.02716.64
7.4.60.0110.00516.61
7.4.50.0090.00916.40
7.4.40.0060.01016.65
7.4.30.0060.01216.49
7.4.10.0050.01214.95
7.4.00.0080.00814.90
7.3.330.0000.00513.30
7.3.320.0060.00013.30
7.3.310.0040.00416.38
7.3.300.0030.00316.25
7.3.290.0080.00916.33
7.3.280.0060.01116.38
7.3.270.0140.00317.40
7.3.260.0070.01016.56
7.3.240.0060.01116.33
7.3.230.0030.01316.58
7.3.210.0030.01316.41
7.3.200.0100.00616.47
7.3.190.0090.01316.57
7.3.180.0030.01216.34
7.3.170.0040.01716.30
7.3.160.0030.01516.46
7.3.130.0060.01114.97
7.3.120.0050.01315.34
7.3.110.0070.01115.36
7.3.100.0050.01115.46
7.3.90.0080.00815.45
7.3.80.0050.01015.39
7.3.70.0080.00715.33
7.3.60.0090.00615.30
7.3.50.0060.01015.36
7.3.40.0070.00715.25
7.3.30.0060.00715.33
7.3.20.0070.00616.80
7.3.10.0070.00816.71
7.3.00.0070.00716.66
7.2.330.0040.01516.52
7.2.320.0080.00816.67
7.2.310.0130.00616.66
7.2.300.0120.01516.72
7.2.290.0060.01216.32
7.2.260.0130.00614.82
7.2.250.0040.01514.77
7.2.240.0060.00915.44
7.2.230.0090.00615.39
7.2.220.0050.00915.61
7.2.210.0040.01115.44
7.2.200.0060.01015.46
7.2.190.0070.00815.52
7.2.180.0080.00815.34
7.2.170.0070.00815.53
7.2.160.0070.00715.59
7.2.150.0060.00916.97
7.2.140.0040.00916.86
7.2.130.0100.00316.85
7.2.120.0030.01016.96
7.2.110.0030.01016.93
7.2.100.0050.00716.98
7.2.90.0090.00617.02
7.2.80.0060.00917.00
7.2.70.0060.01116.92
7.2.60.0060.01016.88
7.2.50.0040.01216.98
7.2.40.0080.00716.93
7.2.30.0050.01016.88
7.2.20.0060.00816.99
7.2.10.0100.00516.88
7.2.00.0060.00917.56
7.1.330.0050.00815.95
7.1.320.0050.00716.00
7.1.310.0070.00916.04
7.1.300.0060.00816.01
7.1.290.0070.00415.95
7.1.280.0060.00916.01
7.1.270.0030.01116.09
7.1.260.0080.00615.97
7.1.250.0030.01016.13
7.1.240.0050.00815.44
7.1.230.0050.00715.40
7.1.220.0070.01015.67
7.1.210.0060.00515.49
7.1.200.0070.00615.74
7.1.190.0020.01515.52
7.1.180.0050.01215.62
7.1.170.0070.01115.49
7.1.160.0050.01015.65
7.1.150.0070.00315.58
7.1.140.0040.00515.51
7.1.130.0090.00515.71
7.1.120.0020.01315.68
7.1.110.0100.00315.59
7.1.100.0060.00616.50
7.1.90.0040.00915.49
7.1.80.0080.00715.75
7.1.70.0040.00916.04
7.1.60.0010.01416.99
7.1.50.0100.00516.04
7.1.40.0020.01215.64
7.1.30.0050.00915.70
7.1.20.0090.00615.71
7.1.10.0020.01015.72
7.1.00.0040.03117.83
7.0.330.0070.00415.34
7.0.320.0060.00615.29
7.0.310.0050.00515.36
7.0.300.0040.00915.35
7.0.290.0040.00615.36
7.0.280.0070.00715.18
7.0.270.0030.00815.49
7.0.260.0070.00915.32
7.0.250.0110.00215.40
7.0.240.0020.01015.29
7.0.230.0050.00715.46
7.0.220.0040.00915.30
7.0.210.0100.00615.51
7.0.200.0090.01015.71
7.0.190.0050.00815.33
7.0.180.0070.00715.29
7.0.170.0070.00715.32
7.0.160.0090.00615.20
7.0.150.0030.00715.33
7.0.140.0020.01015.17
7.0.130.0080.00315.38
7.0.120.0040.00915.37
7.0.110.0040.00715.30
7.0.100.0050.00515.29
7.0.90.0050.00715.36
7.0.80.0030.01015.29
7.0.70.0060.00715.27
7.0.60.0080.02916.72
7.0.50.0050.01816.34
7.0.40.0030.02215.59
7.0.30.0110.02215.76
7.0.20.0110.02115.58
7.0.10.0070.02015.55
7.0.00.0090.03315.68
5.6.400.0080.00514.15
5.6.390.0100.00514.32
5.6.380.0060.00814.37
5.6.370.0070.00414.47
5.6.360.0030.01014.28
5.6.350.0060.00814.28
5.6.340.0070.00714.55
5.6.330.0050.00714.37
5.6.320.0090.00714.45
5.6.310.0120.00414.33
5.6.300.0060.00414.51
5.6.290.0050.00914.29
5.6.280.0060.02516.44
5.6.270.0070.00614.33
5.6.260.0060.00714.55
5.6.250.0100.00514.40
5.6.240.0030.01014.36
5.6.230.0040.00614.27
5.6.220.0090.00514.27
5.6.210.0040.03116.37
5.6.200.0070.03015.63
5.6.190.0050.02816.33
5.6.180.0120.03116.36
5.6.170.0110.02116.27
5.6.160.0060.02616.32
5.6.150.0010.02515.54
5.6.140.0050.03115.53
5.6.130.0040.03015.63
5.6.120.0060.02016.62
5.6.110.0060.01716.49
5.6.100.0020.03216.61
5.6.90.0100.02716.58
5.6.80.0030.01916.20
5.6.70.0070.00714.09
5.6.60.0080.00714.28
5.6.50.0050.00614.28
5.6.40.0020.01014.22
5.6.30.0030.00914.19
5.6.20.0030.00814.29
5.6.10.0090.00214.28
5.6.00.0030.01014.14
5.5.380.0050.01113.89
5.5.370.0090.00314.23
5.5.360.0010.01014.10
5.5.350.0840.01516.31
5.5.340.0070.02315.49
5.5.330.0080.02516.08
5.5.320.0050.03516.24
5.5.310.0150.02516.27
5.5.300.0080.02915.45
5.5.290.0040.02515.53
5.5.280.0090.03016.35
5.5.270.0040.02216.35
5.5.260.0060.03216.39
5.5.250.0070.02916.42
5.5.240.0100.01716.17
5.5.230.0050.00914.26
5.5.220.0040.00413.92
5.5.210.0050.01114.15
5.5.200.0020.00713.93
5.5.190.0030.01014.13
5.5.180.0070.00413.99
5.5.170.0040.00514.11
5.5.160.0030.00914.11
5.5.150.0020.00814.20
5.5.140.0070.00614.21
5.5.130.0020.01314.15
5.5.120.0120.00213.98
5.5.110.0070.00714.03
5.5.100.0070.00414.18
5.5.90.0050.00814.12
5.5.80.0060.00914.02
5.5.70.0080.00614.07
5.5.60.0040.00814.05
5.5.50.0070.00714.01
5.5.40.0080.00314.22
5.5.30.0020.01014.38
5.5.20.0020.01314.02
5.5.10.0080.00614.06
5.5.00.0080.00614.02

preferences:
52.78 ms | 401 KiB | 5 Q