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); $fileName = $rc->getFileName(); print $fileName."\n"; if ('systemlib.php' !== basename($fileName)) { $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.40.0100.00618.79
8.3.30.0070.00719.22
8.3.20.0040.00420.19
8.3.10.0080.00023.66
8.3.00.0040.00419.26
8.2.170.0070.00722.96
8.2.160.0110.00418.91
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0080.00021.09
8.2.110.0030.00620.25
8.2.100.0060.00618.16
8.2.90.0050.00319.34
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0050.00319.95
8.2.30.0040.00418.04
8.2.20.0040.00417.62
8.2.10.0040.00418.18
8.2.00.0060.00317.74
8.1.270.0030.00623.83
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.98
8.1.230.0090.00319.08
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0000.00917.13
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0040.00418.50
8.1.160.0000.00722.06
8.1.150.0040.00418.88
8.1.140.0040.00417.40
8.1.130.0000.00717.86
8.1.120.0000.00717.38
8.1.110.0000.00717.34
8.1.100.0050.00217.41
8.1.90.0040.00417.28
8.1.80.0040.00417.42
8.1.70.0030.00317.38
8.1.60.0070.00417.58
8.1.50.0030.00517.50
8.1.40.0080.00017.41
8.1.30.0030.00517.46
8.1.20.0000.00817.63
8.1.10.0040.00417.55
8.1.00.0000.00717.40
8.0.300.0000.00718.77
8.0.290.0050.00316.75
8.0.280.0030.00318.40
8.0.270.0030.00317.16
8.0.260.0000.00617.13
8.0.250.0000.00716.91
8.0.240.0000.00716.96
8.0.230.0060.00016.84
8.0.220.0000.00816.91
8.0.210.0030.00316.79
8.0.200.0070.00016.94
8.0.190.0030.00616.91
8.0.180.0030.00316.95
8.0.170.0000.00716.86
8.0.160.0070.00016.92
8.0.150.0000.00716.78
8.0.140.0000.00916.71
8.0.130.0000.00513.35
8.0.120.0040.00416.90
8.0.110.0000.00716.78
8.0.100.0090.00016.67
8.0.90.0040.00416.76
8.0.80.0160.00616.91
8.0.70.0040.00416.80
8.0.60.0000.00716.73
8.0.50.0030.00316.77
8.0.30.0130.00916.97
8.0.20.0140.01017.40
8.0.10.0050.00216.85
8.0.00.0090.00916.76
7.4.330.0000.00515.04
7.4.320.0000.00616.52
7.4.300.0030.00316.47
7.4.290.0040.00416.43
7.4.280.0000.00916.54
7.4.270.0000.00716.53
7.4.260.0070.00016.48
7.4.250.0030.00316.61
7.4.240.0040.00316.55
7.4.230.0000.00716.58
7.4.220.0030.01816.57
7.4.210.0090.00616.50
7.4.200.0050.00216.61
7.4.160.0090.00616.46
7.4.150.0070.01417.40
7.4.140.0140.00317.86
7.4.130.0110.00916.49
7.4.120.0080.00816.44
7.4.110.0090.00916.61
7.4.100.0110.00616.44
7.4.90.0140.00316.52
7.4.80.0170.00019.39
7.4.70.0070.01316.63
7.4.60.0060.01016.47
7.4.50.0030.00516.50
7.4.40.0120.00416.27
7.4.30.0160.00016.55
7.4.10.0090.00616.21
7.4.00.0130.00315.73
7.3.330.0050.00013.27
7.3.320.0050.00013.16
7.3.310.0030.00316.37
7.3.300.0030.00316.32
7.3.290.0090.00916.33
7.3.280.0100.00716.27
7.3.270.0040.01517.40
7.3.260.0180.00716.27
7.3.250.0110.00916.49
7.3.240.0110.01116.32
7.3.230.0100.00616.52
7.3.210.0100.00716.51
7.3.200.0100.00719.39
7.3.190.0060.01416.49
7.3.180.0090.00616.61
7.3.170.0130.00416.48
7.3.160.0190.00816.39
7.3.130.0030.01016.26
7.3.120.0130.00616.32
7.3.110.0050.00816.32
7.3.100.0030.01016.60
7.3.90.0070.00716.59
7.3.80.0090.00616.46
7.3.70.0000.00916.42
7.3.60.0130.00316.34
7.3.50.0040.00716.34
7.3.40.0080.00716.44
7.3.30.0140.00716.32
7.3.20.0030.00718.23
7.3.10.0000.01018.25
7.3.00.0040.01118.33
7.2.330.0100.00716.50
7.2.320.0060.01216.86
7.2.310.0140.00716.84
7.2.300.0140.00716.73
7.2.290.0060.01216.90
7.2.260.0120.00916.79
7.2.250.0000.01816.71
7.2.240.0130.00316.66
7.2.230.0060.01216.36
7.2.220.0070.00716.71
7.2.210.0070.00716.91
7.2.200.0000.01616.53
7.2.190.0090.00916.61
7.2.180.0070.00316.53
7.2.170.0100.00316.62
7.2.160.0120.00916.59
7.2.150.0100.00318.61
7.2.140.0060.01018.61
7.2.130.0090.00618.55
7.2.120.0080.00418.56
7.2.110.0110.00418.49
7.2.100.0030.01018.44
7.2.90.0060.00918.36
7.2.80.0060.00918.38
7.2.70.0000.01518.49
7.2.60.0100.00817.47
7.2.50.0000.01518.23
7.2.40.0080.00418.55
7.2.30.0060.00918.46
7.2.20.0070.00418.29
7.2.10.0110.00718.43
7.2.00.0060.01018.98
7.1.330.0090.00617.51
7.1.320.0100.00317.30
7.1.310.0030.00717.32
7.1.300.0030.01017.22
7.1.290.0030.01617.48
7.1.280.0040.01117.35
7.1.270.0040.00717.59
7.1.260.0060.00617.38
7.1.250.0060.00617.20
7.1.240.0000.01217.32
7.1.230.0060.00917.22
7.1.220.0090.00617.03
7.1.210.0030.00917.23
7.1.200.0040.01116.48
7.1.190.0040.00417.25
7.1.180.0070.00317.30
7.1.170.0000.01417.22
7.1.160.0030.00917.17
7.1.150.0060.00917.36
7.1.140.0100.00317.29
7.1.130.0000.01417.18
7.1.120.0100.00317.12
7.1.110.0090.00617.31
7.1.100.0030.01117.79
7.1.90.0040.00717.27
7.1.80.0040.01217.31
7.1.70.0030.00917.18
7.1.60.0070.01518.40
7.1.50.0090.01016.93
7.1.40.0040.00717.31
7.1.30.0040.00817.33
7.1.20.0050.00517.29
7.1.10.0040.00817.07
7.1.00.0070.04219.81
7.0.330.0120.00017.18
7.0.320.0090.00016.94
7.0.310.0100.00316.97
7.0.300.0030.01317.02
7.0.290.0030.00617.05
7.0.280.0060.00916.89
7.0.270.0100.00016.93
7.0.260.0070.01116.84
7.0.250.0110.01117.00
7.0.240.0070.01016.94
7.0.230.0100.00016.92
7.0.220.0060.00617.06
7.0.210.0000.01217.00
7.0.200.0030.00616.83
7.0.190.0060.00916.98
7.0.180.0090.00016.96
7.0.170.0040.00817.00
7.0.160.0060.00917.04
7.0.150.0100.00717.00
7.0.140.0060.03819.58
7.0.130.0090.00616.88
7.0.120.0000.01116.96
7.0.110.0030.00616.89
7.0.100.0030.01017.05
7.0.90.0130.00316.92
7.0.80.0040.00717.00
7.0.70.0090.00617.21
7.0.60.0070.04518.40
7.0.50.0050.04217.48
7.0.40.0120.03917.51
7.0.30.0100.02817.48
7.0.20.0170.02617.55
7.0.10.0110.04417.62
7.0.00.0030.03217.51
5.6.400.0090.00615.99
5.6.390.0060.00315.52
5.6.380.0040.01116.30
5.6.370.0030.00716.02
5.6.360.0030.01316.06
5.6.350.0100.00615.86
5.6.340.0030.00715.63
5.6.330.0120.00015.81
5.6.320.0030.01416.22
5.6.310.0060.00316.15
5.6.300.0090.00915.99
5.6.290.0080.00415.73
5.6.280.0050.03718.55
5.6.270.0030.00616.00
5.6.260.0100.00016.15
5.6.250.0060.00915.95
5.6.240.0040.00715.90
5.6.230.0030.01015.75
5.6.220.0060.01015.97
5.6.210.0100.03818.27
5.6.200.0050.02817.11
5.6.190.0070.03918.22
5.6.180.0210.03018.20
5.6.170.0130.02418.25
5.6.160.0080.02718.15
5.6.150.0110.02816.99
5.6.140.0060.02617.07
5.6.130.0150.01817.18
5.6.120.0070.04318.37
5.6.110.0080.04318.46
5.6.100.0100.04218.47
5.6.90.0080.04218.42
5.6.80.0070.04118.28
5.6.70.0070.01116.09
5.6.60.0060.00615.83
5.6.50.0000.01416.07
5.6.40.0040.00715.96
5.6.30.0030.00616.02
5.6.20.0060.01216.06
5.6.10.0140.00316.03
5.6.00.0040.01115.82
5.5.380.0000.01315.95
5.5.370.0060.00615.71
5.5.360.0030.01315.86
5.5.350.0050.03418.12
5.5.340.0030.02516.79
5.5.330.0100.03717.94
5.5.320.0780.03318.03
5.5.310.0200.04118.02
5.5.300.0050.04216.93
5.5.290.0080.03916.83
5.5.280.0050.02918.38
5.5.270.0050.04718.27
5.5.260.0090.02518.27
5.5.250.0110.02818.15
5.5.240.0180.03717.99
5.5.230.0000.01415.63
5.5.220.0040.01115.58
5.5.210.0040.00715.79
5.5.200.0030.00915.73
5.5.190.0070.00715.70
5.5.180.0040.01415.75
5.5.170.0110.00415.75
5.5.160.0090.00315.71
5.5.150.0110.00416.02
5.5.140.0060.01015.82
5.5.130.0120.00415.79
5.5.120.0040.00715.81
5.5.110.0090.00315.52
5.5.100.0090.00615.64
5.5.90.0040.01115.86
5.5.80.0030.01415.69
5.5.70.0070.00315.81
5.5.60.0060.00615.62
5.5.50.0070.00715.62
5.5.40.0030.01015.89
5.5.30.0060.00915.66
5.5.20.0070.00715.81
5.5.10.0080.00315.76
5.5.00.0030.01015.52
5.4.450.0330.02816.74
5.4.440.0170.03316.72
5.4.430.0280.02116.64
5.4.420.0400.02216.59
5.4.410.0280.02316.57
5.4.400.0150.02516.58
5.4.390.0220.03016.57
5.4.380.0250.02216.65
5.4.370.0370.01716.51
5.4.360.0180.02016.54
5.4.350.0280.02516.52
5.4.340.0400.02016.59
5.4.330.0000.01213.98
5.4.320.0370.01916.59
5.4.310.0140.02216.60
5.4.300.0220.02816.41
5.4.290.0170.02316.60
5.4.280.0220.03516.55
5.4.270.0130.02016.59
5.4.260.0510.01816.47
5.4.250.0520.01716.52
5.4.240.0370.02616.52
5.4.230.0270.02716.48
5.4.220.0460.02016.55
5.4.210.0250.02116.55
5.4.200.0500.02116.60
5.4.190.0300.02816.47
5.4.180.0130.02216.52
5.4.170.0320.02316.50
5.4.160.0180.02816.58
5.4.150.0300.02516.55
5.4.140.0140.02515.15
5.4.130.0400.02215.19
5.4.120.0430.02215.17
5.4.110.0380.02515.19
5.4.100.0280.02215.15
5.4.90.0480.02215.14
5.4.80.0330.02315.14
5.4.70.0150.02715.28
5.4.60.0360.02515.26
5.4.50.0410.02015.25
5.4.40.0390.02515.10
5.4.30.0420.03015.10
5.4.20.0420.02015.19
5.4.10.0280.02415.19
5.4.00.0230.02614.95
5.3.290.0500.03715.27
5.3.280.0730.04315.27
5.3.270.0430.03715.27
5.3.260.0870.04315.27
5.3.250.0330.04015.27
5.3.240.0300.05315.26
5.3.230.0530.04015.26
5.3.220.0530.05315.26
5.3.210.0300.05015.26
5.3.200.0870.04315.26
5.3.190.0570.03015.26
5.3.180.0700.04315.26
5.3.170.0630.04315.26
5.3.160.0600.04015.26
5.3.150.0570.03715.26
5.3.140.0730.04015.26
5.3.130.0270.04015.26
5.3.120.0630.04015.26
5.3.110.0670.03015.26
5.3.100.1070.03315.26
5.3.90.0330.04315.26
5.3.80.0530.04315.26
5.3.70.0500.03315.26
5.3.60.0570.04015.26
5.3.50.0600.02715.26
5.3.40.0400.04315.26
5.3.30.0430.02715.26
5.3.20.0500.04015.26
5.3.10.0500.02715.26
5.3.00.0770.03715.26
5.2.170.0700.02715.26
5.2.160.0530.03315.26
5.2.150.0300.04315.26
5.2.140.0570.04715.26
5.2.130.0500.02315.26
5.2.120.0600.02015.26
5.2.110.0400.03015.26
5.2.100.0400.02715.26
5.2.90.0270.03315.26
5.2.80.0530.03015.26
5.2.70.0330.03315.26
5.2.60.0470.03315.26
5.2.50.0430.05715.26
5.2.40.0200.02715.26
5.2.30.0330.03315.26
5.2.20.0570.01715.26
5.2.10.0370.02315.26
5.2.00.0400.02315.26
5.1.60.0570.02015.26
5.1.50.0400.02015.26
5.1.40.0230.02315.26
5.1.30.0600.02315.25
5.1.20.0570.02015.25
5.1.10.0370.03015.25
5.1.00.0270.03015.25
5.0.50.0400.01315.25
5.0.40.0200.02015.25
5.0.30.0300.02715.25
5.0.20.0170.02715.25
5.0.10.0030.02315.25
5.0.00.0030.03015.25
4.4.90.0130.01715.26
4.4.80.0170.02015.26
4.4.70.0330.01715.26
4.4.60.0170.01315.26
4.4.50.0070.01715.26
4.4.40.0170.02715.26
4.4.30.0200.01715.26
4.4.20.0130.01715.25
4.4.10.0070.01715.25
4.4.00.0300.03315.25
4.3.110.0070.01715.25
4.3.100.0200.01315.25
4.3.90.0200.02315.25
4.3.80.0070.02315.25
4.3.70.0030.02315.25
4.3.60.0170.01015.25
4.3.50.0330.01315.25
4.3.40.0230.02015.25
4.3.30.0200.01315.25
4.3.20.0130.01715.25
4.3.10.0200.01015.25
4.3.00.0000.02715.25

preferences:
47.53 ms | 400 KiB | 5 Q