3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_declared_user_traits() { $ret = array(); foreach (get_declared_traits() as $v) { // exclude system traits $rc = new ReflectionClass($v); if ('systemlib.php' !== basename($rc->getFileName())) { $ret[] = $v; } } return $ret; } class this_is_a_class { } interface this_is_an_interface { public function this_is_an_interface_method(); } trait this_is_a_trait { } abstract class this_is_an_abstract_class { } final class this_is_a_final_class { } var_dump(get_declared_user_traits()); ?>

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.00416.50
8.3.50.0170.00322.98
8.3.40.0070.01018.79
8.3.30.0060.00919.04
8.3.20.0080.00020.16
8.3.10.0000.00823.70
8.3.00.0080.00019.38
8.2.180.0140.00416.50
8.2.170.0120.00322.96
8.2.160.0070.00720.40
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0040.01126.16
8.2.120.0050.00321.16
8.2.110.0090.00020.47
8.2.100.0130.00018.34
8.2.90.0000.00719.21
8.2.80.0040.00417.97
8.2.70.0040.00417.50
8.2.60.0000.00917.93
8.2.50.0060.00318.07
8.2.40.0080.00019.88
8.2.30.0000.00818.05
8.2.20.0000.00817.74
8.2.10.0050.00218.03
8.2.00.0030.00617.66
8.1.280.0170.00325.92
8.1.270.0040.00423.80
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.03
8.1.230.0070.00419.16
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.25
8.1.190.0000.00817.13
8.1.180.0030.00518.10
8.1.170.0050.00318.46
8.1.160.0040.00422.08
8.1.150.0040.00418.89
8.1.140.0040.00417.50
8.1.130.0030.00317.83
8.1.120.0040.00417.37
8.1.110.0050.00217.47
8.1.100.0030.00317.44
8.1.90.0000.00717.45
8.1.80.0000.00717.52
8.1.70.0040.00417.43
8.1.60.0060.00617.56
8.1.50.0040.00417.53
8.1.40.0020.00517.40
8.1.30.0090.00017.52
8.1.20.0060.00317.52
8.1.10.0040.00417.57
8.1.00.0000.00717.53
8.0.300.0040.00418.77
8.0.290.0000.00816.63
8.0.280.0020.00518.51
8.0.270.0030.00317.20
8.0.260.0030.00317.30
8.0.250.0070.00017.00
8.0.240.0040.00416.95
8.0.230.0070.00016.95
8.0.220.0000.00816.79
8.0.210.0000.00716.77
8.0.200.0030.00316.94
8.0.190.0000.00816.85
8.0.180.0040.00416.97
8.0.170.0040.00416.92
8.0.160.0050.00316.88
8.0.150.0050.00216.85
8.0.140.0000.00716.81
8.0.130.0050.00013.27
8.0.120.0040.00416.87
8.0.110.0000.00716.93
8.0.100.0030.00516.95
8.0.90.0000.00716.79
8.0.80.0160.00616.82
8.0.70.0000.00717.00
8.0.60.0000.00716.86
8.0.50.0000.00816.75
8.0.30.0090.01317.12
8.0.20.0090.00917.40
8.0.10.0000.00816.96
8.0.00.0100.00716.75
7.4.330.0000.00515.00
7.4.320.0030.00316.51
7.4.300.0060.00016.60
7.4.290.0050.00216.51
7.4.280.0090.00016.42
7.4.270.0000.00716.60
7.4.260.0000.00716.56
7.4.250.0000.00716.40
7.4.240.0020.00616.58
7.4.230.0030.00316.67
7.4.220.0060.01016.54
7.4.210.0120.00616.70
7.4.200.0070.00016.71
7.4.160.0040.01216.52
7.4.150.0210.00517.40
7.4.140.0100.00717.86
7.4.130.0110.00616.57
7.4.120.0170.00316.42
7.4.110.0100.00716.59
7.4.100.0130.00316.59
7.4.90.0110.00616.41
7.4.80.0160.00619.39
7.4.70.0130.01016.38
7.4.60.0070.01616.29
7.4.50.0000.00816.43
7.4.40.0170.00416.41
7.4.30.0070.01116.36
7.4.00.0070.00714.93
7.3.330.0060.00013.14
7.3.320.0030.00313.29
7.3.310.0000.00716.20
7.3.300.0000.00716.14
7.3.290.0100.01016.33
7.3.280.0100.01016.32
7.3.270.0100.01117.40
7.3.260.0230.00016.50
7.3.250.0090.00716.56
7.3.240.0070.01316.53
7.3.230.0030.01516.39
7.3.210.0140.01016.45
7.3.200.0090.01219.39
7.3.190.0100.00716.60
7.3.180.0060.01016.33
7.3.170.0140.00716.49
7.3.160.0090.01316.56
7.2.330.0100.00716.77
7.2.320.0090.00716.78
7.2.310.0070.01416.80
7.2.300.0100.00716.70
7.2.290.0200.00316.62
7.2.80.0070.00716.70
7.2.60.0030.01016.86
7.1.200.0160.00015.88
7.1.70.0060.00617.09
7.1.60.0070.01819.46
7.1.50.0090.00316.64
7.1.00.0100.07022.28
7.0.200.0000.00816.82
7.0.140.0030.07321.95
7.0.60.0100.05319.96
7.0.50.0170.07717.89
7.0.40.0030.04720.09
7.0.30.0200.04320.16
7.0.20.0170.04720.19
7.0.10.0030.06320.12
7.0.00.0100.07020.19
5.6.280.0000.07720.90
5.6.210.0130.06320.48
5.6.200.0200.07018.27
5.6.190.0030.04320.55
5.6.180.0530.05320.53
5.6.170.0270.07320.47
5.6.160.0030.04720.47
5.6.150.0100.04318.18
5.6.140.0030.09018.14
5.6.130.0030.04718.18
5.6.120.0070.07720.94
5.6.110.0170.08021.02
5.6.100.0170.05321.04
5.6.90.0170.06720.98
5.6.80.0000.04720.54
5.5.350.0300.07020.42
5.5.340.0100.07717.98
5.5.330.0130.03720.29
5.5.320.0230.04020.33
5.5.310.0200.03720.30
5.5.300.0070.06017.96
5.5.290.0170.07317.94
5.5.280.0100.08320.78
5.5.270.0070.04020.86
5.5.260.0030.08320.73
5.5.250.0030.07020.46
5.5.240.0200.03320.16
5.4.450.0130.04319.46
5.4.440.0100.04719.46
5.4.430.0070.03319.32
5.4.420.0230.04019.32
5.4.410.0100.04719.29
5.4.400.0130.03319.17
5.4.390.0130.03319.14
5.4.380.0370.07718.70
5.4.370.0270.05718.73
5.4.360.0230.05718.46
5.4.350.0430.06318.62
5.4.340.0430.04718.73
5.4.320.0060.03612.51
5.4.310.0100.03412.51
5.4.300.0060.03712.52
5.4.290.0040.04012.51
5.4.280.0060.03612.41
5.4.270.0040.04012.41
5.4.260.0080.03612.41
5.4.250.0050.03912.41
5.4.240.0120.03312.41
5.4.230.0060.03812.39
5.4.220.0060.03712.40
5.4.210.0080.03812.39
5.4.200.0050.03912.40
5.4.190.0070.03612.40
5.4.180.0030.04012.39
5.4.170.0070.03612.41
5.4.160.0030.03912.40
5.4.150.0090.03412.39
5.4.140.0060.03912.07
5.4.130.0100.03612.07
5.4.120.0100.04312.02
5.4.110.0080.03512.02
5.4.100.0060.04212.02
5.4.90.0080.03812.02
5.4.80.0120.03412.02
5.4.70.0050.03612.02
5.4.60.0090.03212.02
5.4.50.0080.03412.01
5.4.40.0050.04512.00
5.4.30.0050.03612.00
5.4.20.0090.03312.00
5.4.10.0090.03312.00
5.4.00.0060.03611.50
5.3.290.0030.04312.80
5.3.280.0070.03812.71
5.3.270.0090.03712.72
5.3.260.0070.04612.72
5.3.250.0080.03512.72
5.3.240.0070.03712.72
5.3.230.0070.03712.71
5.3.220.0090.03512.68
5.3.210.0060.03912.68
5.3.200.0030.03912.68
5.3.190.0050.03812.68
5.3.180.0070.03712.68
5.3.170.0100.03412.67
5.3.160.0050.03812.68
5.3.150.0050.04312.67
5.3.140.0080.03512.66
5.3.130.0110.04112.66
5.3.120.0060.04712.66
5.3.110.0080.03812.66
5.3.100.0070.03712.13
5.3.90.0080.03812.11
5.3.80.0050.03912.10
5.3.70.0060.03712.10
5.3.60.0050.03812.09
5.3.50.0040.04112.03
5.3.40.0080.03712.03
5.3.30.0070.03511.99
5.3.20.0070.03511.77
5.3.10.0070.03911.74
5.3.00.0050.03811.73
5.2.170.0040.0329.22
5.2.160.0050.0299.22
5.2.150.0070.0299.23
5.2.140.0070.0299.22
5.2.130.0040.0309.18
5.2.120.0050.0289.18
5.2.110.0040.0309.19
5.2.100.0050.0299.19
5.2.90.0070.0279.18
5.2.80.0060.0329.18
5.2.70.0060.0349.18
5.2.60.0050.0339.13
5.2.50.0060.0309.11
5.2.40.0060.0379.08
5.2.30.0050.0309.06
5.2.20.0060.0289.04
5.2.10.0050.0288.95
5.2.00.0050.0288.82
5.1.60.0070.0218.09
5.1.50.0020.0298.09
5.1.40.0030.0268.08
5.1.30.0030.0278.43
5.1.20.0070.0328.45
5.1.10.0090.0228.17
5.1.00.0060.0248.16
5.0.50.0040.0206.64
5.0.40.0050.0186.51
5.0.30.0010.0346.32
5.0.20.0020.0236.29
5.0.10.0030.0216.27
5.0.00.0030.0306.27
4.4.90.0060.0124.78
4.4.80.0030.0154.76
4.4.70.0010.0174.75
4.4.60.0050.0134.75
4.4.50.0040.0164.77
4.4.40.0040.0244.70
4.4.30.0020.0164.76
4.4.20.0060.0124.84
4.4.10.0060.0124.85
4.4.00.0010.0274.75
4.3.110.0030.0154.67
4.3.100.0040.0134.67
4.3.90.0050.0124.64
4.3.80.0010.0264.59
4.3.70.0030.0204.63
4.3.60.0020.0164.63
4.3.50.0030.0164.62
4.3.40.0020.0254.54
4.3.30.0010.0173.30
4.3.20.0030.0153.28
4.3.10.0010.0173.24
4.3.00.0030.01714.87

preferences:
49.02 ms | 400 KiB | 5 Q