3v4l.org

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

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.0090.00616.63
8.3.50.0050.01221.92
8.3.40.0090.00918.72
8.3.30.0110.00418.57
8.3.20.0050.00320.39
8.3.10.0040.00423.51
8.3.00.0100.00019.25
8.2.180.0080.01118.06
8.2.170.0060.00922.96
8.2.160.0030.01020.55
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0100.00017.50
8.2.120.0040.00426.35
8.2.110.0090.00322.32
8.2.100.0080.00317.78
8.2.90.0080.00019.09
8.2.80.0080.00017.97
8.2.70.0050.00517.38
8.2.60.0000.00817.91
8.2.50.0100.00018.07
8.2.40.0040.00419.26
8.2.30.0000.00720.55
8.2.20.0050.00517.69
8.2.10.0060.00318.11
8.2.00.0000.00717.98
8.1.280.0150.00425.92
8.1.270.0060.00323.71
8.1.260.0000.00728.09
8.1.250.0060.00328.09
8.1.240.0140.00723.78
8.1.230.0040.00820.94
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0030.00617.35
8.1.180.0050.00318.10
8.1.170.0000.00818.61
8.1.160.0050.00321.97
8.1.150.0030.00518.81
8.1.140.0080.00019.39
8.1.130.0040.00417.58
8.1.120.0040.00417.41
8.1.110.0040.00417.33
8.1.100.0040.00417.29
8.1.90.0050.00217.34
8.1.80.0060.00317.39
8.1.70.0070.00017.35
8.1.60.0000.00917.54
8.1.50.0030.00617.39
8.1.40.0030.00617.48
8.1.30.0030.00517.59
8.1.20.0040.00417.45
8.1.10.0000.00817.30
8.1.00.0080.00017.18
8.0.300.0080.00018.77
8.0.290.0030.00616.75
8.0.280.0070.00018.30
8.0.270.0080.00017.08
8.0.260.0000.00717.09
8.0.250.0000.00716.86
8.0.240.0030.00316.91
8.0.230.0040.00416.97
8.0.220.0000.00816.88
8.0.210.0000.00716.83
8.0.200.0040.00416.95
8.0.190.0000.00816.87
8.0.180.0050.00216.93
8.0.170.0040.00416.85
8.0.160.0000.00716.89
8.0.150.0000.00716.81
8.0.140.0040.00416.82
8.0.130.0030.00313.38
8.0.120.0000.00816.91
8.0.110.0000.00716.93
8.0.100.0040.00416.96
8.0.90.0070.00016.89
8.0.80.0040.01116.85
8.0.70.0040.00416.88
8.0.60.0080.00016.79
8.0.50.0040.00416.71
8.0.30.0090.00717.11
8.0.20.0100.00817.40
8.0.10.0000.00716.84
8.0.00.0080.00916.81
7.4.330.0000.00616.66
7.4.320.0030.00316.59
7.4.300.0030.00316.45
7.4.290.0070.00016.59
7.4.280.0070.00016.36
7.4.270.0080.00016.44
7.4.260.0000.00816.42
7.4.250.0050.00316.51
7.4.240.0040.00416.50
7.4.230.0050.00216.43
7.4.220.0090.00916.58
7.4.210.0070.00716.46
7.4.200.0030.00316.24
7.4.160.0150.00016.13
7.4.150.0140.00717.40
7.4.140.0080.01117.86
7.4.130.0120.01016.48
7.4.120.0070.01116.43
7.4.110.0140.00716.52
7.4.100.0130.00716.59
7.4.90.0030.01616.19
7.4.80.0040.01419.39
7.4.70.0150.00316.61
7.4.60.0060.00916.45
7.4.50.0120.00316.54
7.4.40.0030.01316.52
7.4.30.0140.00316.44
7.4.10.0140.00314.74
7.4.00.0030.01315.07
7.3.330.0060.00013.01
7.3.320.0050.00013.02
7.3.310.0040.00416.26
7.3.300.0070.00016.11
7.3.290.0070.00716.21
7.3.280.0120.00816.26
7.3.270.0100.00717.40
7.3.260.0140.00316.18
7.3.250.0130.00916.33
7.3.240.0100.01016.36
7.3.230.0100.00716.39
7.3.210.0090.00616.38
7.3.200.0050.01016.43
7.3.190.0160.00316.30
7.3.180.0040.01216.54
7.3.170.0080.00916.27
7.3.160.0120.00916.35
7.3.130.0030.01614.59
7.3.120.0070.01114.88
7.3.110.0000.01614.72
7.3.100.0060.00814.56
7.3.90.0050.01214.70
7.3.80.0030.00914.59
7.3.70.0040.00914.52
7.3.60.0050.01014.78
7.3.50.0040.01214.52
7.3.40.0090.00814.77
7.3.30.0040.01114.60
7.3.20.0110.00316.54
7.3.10.0090.00616.41
7.3.00.0100.00816.56
7.2.330.0070.01016.66
7.2.320.0100.00616.33
7.2.310.0100.00716.54
7.2.300.0090.01416.40
7.2.290.0060.01216.24
7.2.260.0000.01914.91
7.2.250.0100.00814.66
7.2.240.0050.01314.71
7.2.230.0050.01014.92
7.2.220.0070.01114.97
7.2.210.0050.00914.89
7.2.200.0080.00914.76
7.2.190.0040.01214.84
7.2.180.0110.00514.80
7.2.170.0090.00614.67
7.2.160.0030.01214.59
7.2.150.0050.00516.50
7.2.140.0030.01016.60
7.2.130.0090.00816.34
7.2.120.0100.01016.66
7.2.110.0100.00716.35
7.2.100.0090.01016.69
7.2.90.0130.00616.55
7.2.80.0080.01016.61
7.2.70.0080.01316.52
7.2.60.0130.00416.59
7.2.50.0050.01216.56
7.2.40.0080.00516.43
7.2.30.0070.00816.61
7.2.20.0020.01016.66
7.2.10.0050.00616.47
7.2.00.0060.00717.48
7.1.330.0070.00715.71
7.1.320.0080.00615.64
7.1.310.0060.00715.76
7.1.300.0030.00915.62
7.1.290.0070.00715.45
7.1.280.0070.00715.71
7.1.270.0070.00515.43
7.1.260.0060.00815.69
7.1.250.0010.01315.46
7.1.240.0030.01015.85
7.1.230.0030.00815.56
7.1.220.0030.00715.44
7.1.210.0040.00815.32
7.1.200.0050.00715.75
7.1.190.0050.00515.69
7.1.180.0000.01615.76
7.1.170.0030.00715.75
7.1.160.0030.00615.53
7.1.150.0090.00615.41
7.1.140.0030.01415.64
7.1.130.0070.01015.68
7.1.120.0030.00615.82
7.1.110.0030.01215.74
7.1.100.0060.00616.72
7.1.90.0070.01015.89
7.1.80.0030.01015.41
7.1.70.0030.00816.46
7.1.60.0050.01217.54
7.1.50.0060.01116.01
7.1.40.0090.00615.60
7.1.30.0090.00915.48
7.1.20.0040.01515.48
7.1.10.0000.01315.38
7.1.00.0070.04019.06
7.0.330.0070.00415.30
7.0.320.0000.01315.30
7.0.310.0070.00715.31
7.0.300.0030.01315.33
7.0.290.0040.00415.40
7.0.280.0090.00315.33
7.0.270.0000.01415.34
7.0.260.0030.01015.21
7.0.250.0040.00415.39
7.0.240.0070.00315.28
7.0.230.0080.00415.26
7.0.220.0060.00315.37
7.0.210.0030.01015.18
7.0.200.0130.00214.92
7.0.190.0070.00315.05
7.0.180.0120.00015.31
7.0.170.0030.00515.33
7.0.160.0090.00615.06
7.0.150.0110.00415.41
7.0.140.0000.01115.33
7.0.130.0030.01015.32
7.0.120.0000.00815.41
7.0.110.0000.01515.22
7.0.100.0040.00415.36
7.0.90.0030.01015.41
7.0.80.0030.00615.27
7.0.70.0040.01215.18
7.0.60.0070.04617.59
7.0.50.0050.04516.63
7.0.40.0110.03616.64
7.0.30.0100.04316.87
7.0.20.0150.04516.71
7.0.10.0080.03716.91
7.0.00.0130.04016.79
5.6.400.0060.00614.48
5.6.390.0030.01014.07
5.6.380.0090.00613.93
5.6.370.0090.00614.40
5.6.360.0000.01014.48
5.6.350.0130.00314.51
5.6.340.0110.00714.18
5.6.330.0030.01213.81
5.6.320.0000.01013.66
5.6.310.0040.00813.79
5.6.300.0100.00614.14
5.6.290.0000.01114.06
5.6.280.0070.00314.20
5.6.270.0000.01713.92
5.6.260.0040.01114.27
5.6.250.0050.00513.92
5.6.240.0000.01114.02
5.6.230.0090.00313.99
5.6.220.0070.01013.84
5.6.210.0050.04417.34
5.6.200.0070.04516.11
5.6.190.0100.03317.45
5.6.180.0180.04317.22
5.6.170.0120.02917.29
5.6.160.0070.04017.23
5.6.150.0070.03316.18
5.6.140.0050.04316.13
5.6.130.0040.04316.11
5.6.120.0050.02017.59
5.6.110.0070.04917.54
5.6.100.0060.03717.64
5.6.90.0060.04117.58
5.6.80.0070.02017.36
5.6.70.0030.01014.03
5.6.60.0000.00914.27
5.6.50.0000.00813.98
5.6.40.0070.00714.06
5.6.30.0030.00914.35
5.6.20.0060.00614.08
5.6.10.0090.00614.20
5.6.00.0030.01314.35
5.5.380.0120.00314.41
5.5.370.0040.00713.80
5.5.360.0070.00714.22
5.5.350.2050.02017.25
5.5.340.0060.02316.10
5.5.330.0060.04717.33
5.5.320.0070.04317.08
5.5.310.0100.02317.17
5.5.300.0100.04016.02
5.5.290.0000.05015.98
5.5.280.0040.04417.48
5.5.270.0070.02417.31
5.5.260.0080.03817.64
5.5.250.0070.04217.33
5.5.240.0150.03316.97
5.5.230.0030.00914.14
5.5.220.0040.00413.88
5.5.210.0040.00813.99
5.5.200.0070.00714.20
5.5.190.0110.00314.11
5.5.180.0000.01214.15
5.5.170.0070.01014.26
5.5.160.0040.00414.08
5.5.150.0060.00914.22
5.5.140.0070.00414.07
5.5.130.0070.01014.09
5.5.120.0060.00613.67
5.5.110.0120.00013.80
5.5.100.0030.00914.10
5.5.90.0060.01214.01
5.5.80.0110.00413.89
5.5.70.0080.00814.29
5.5.60.0030.01613.91
5.5.50.0060.00913.91
5.5.40.0070.00314.22
5.5.30.0040.00814.20
5.5.20.0060.00914.21
5.5.10.0040.00714.10
5.5.00.0030.00914.03

preferences:
52.52 ms | 401 KiB | 5 Q