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((new ReflectionClass($t))->getTraitNames());

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.0070.01116.49
8.3.50.0060.01322.11
8.3.40.0040.01118.71
8.3.30.0120.00618.52
8.3.20.0070.00020.33
8.3.10.0040.00423.54
8.3.00.0000.00819.25
8.2.180.0070.00716.48
8.2.170.0110.00422.96
8.2.160.0120.00320.35
8.2.150.0040.00424.18
8.2.140.0030.00324.66
8.2.130.0040.00417.63
8.2.120.0030.00626.35
8.2.110.0030.00620.34
8.2.100.0040.00717.92
8.2.90.0050.00319.22
8.2.80.0060.00317.97
8.2.70.0090.00017.50
8.2.60.0060.00317.80
8.2.50.0080.00018.07
8.2.40.0040.00419.28
8.2.30.0000.00720.50
8.2.20.0030.00617.67
8.2.10.0070.00018.06
8.2.00.0070.00017.94
8.1.280.0070.00725.92
8.1.270.0070.00323.92
8.1.260.0000.00728.09
8.1.250.0020.00528.09
8.1.240.0000.00923.88
8.1.230.0070.00419.44
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.11
8.1.190.0060.00317.23
8.1.180.0000.00718.10
8.1.170.0040.00418.59
8.1.160.0000.00822.06
8.1.150.0050.00318.87
8.1.140.0050.00319.57
8.1.130.0040.00417.61
8.1.120.0070.00017.46
8.1.110.0000.00817.43
8.1.100.0040.00417.47
8.1.90.0000.00717.33
8.1.80.0030.00617.45
8.1.70.0030.00317.27
8.1.60.0050.00317.48
8.1.50.0110.00017.54
8.1.40.0000.00817.42
8.1.30.0000.00817.61
8.1.20.0030.00517.66
8.1.10.0030.00717.58
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.49
8.0.270.0030.00317.22
8.0.260.0060.00017.23
8.0.250.0030.00316.98
8.0.240.0030.00316.95
8.0.230.0000.00716.84
8.0.220.0030.00316.79
8.0.210.0060.00316.80
8.0.200.0070.00016.91
8.0.190.0040.00416.97
8.0.180.0070.00016.95
8.0.170.0040.00416.92
8.0.160.0030.00317.02
8.0.150.0030.00616.89
8.0.140.0110.00016.84
8.0.130.0030.00313.40
8.0.120.0000.00816.83
8.0.110.0070.00016.96
8.0.100.0080.00016.75
8.0.90.0040.00416.79
8.0.80.0030.01116.80
8.0.70.0030.00616.77
8.0.60.0000.00716.91
8.0.50.0000.00816.91
8.0.30.0070.00817.29
8.0.20.0100.01017.40
8.0.10.0040.00416.80
8.0.00.0100.00916.89
7.4.330.0020.00216.84
7.4.320.0030.00316.62
7.4.300.0030.00316.43
7.4.290.0030.00316.50
7.4.280.0080.00016.50
7.4.270.0030.00316.45
7.4.260.0030.00316.57
7.4.250.0030.00516.38
7.4.240.0000.00716.57
7.4.230.0000.00716.67
7.4.220.0030.02216.62
7.4.210.0000.01416.63
7.4.200.0070.00016.39
7.4.160.0070.01316.48
7.4.150.0130.00317.40
7.4.140.0090.01217.86
7.4.130.0070.01016.51
7.4.120.0070.01016.51
7.4.110.0060.01216.38
7.4.100.0090.00916.50
7.4.90.0060.01316.56
7.4.80.0070.01119.39
7.4.70.0140.01116.52
7.4.60.0090.00916.50
7.4.50.0070.01116.27
7.4.40.0040.01316.64
7.4.30.0130.00916.51
7.4.00.0090.00314.86
7.3.330.0000.00513.10
7.3.320.0050.00013.24
7.3.310.0050.00316.27
7.3.300.0080.00016.09
7.3.290.0090.00816.19
7.3.280.0110.00316.29
7.3.270.0210.00017.40
7.3.260.0100.00716.26
7.3.240.0110.00816.14
7.3.230.0100.00716.39
7.3.210.0060.00916.20
7.3.200.0200.00316.53
7.3.190.0180.00316.38
7.3.180.0100.00716.48
7.3.170.0120.00616.27
7.3.160.0040.01616.43
7.3.10.0080.00716.56
7.3.00.0070.00516.41
7.2.330.0040.01316.70
7.2.320.0130.00316.62
7.2.310.0180.00316.76
7.2.300.0100.00716.30
7.2.290.0130.00316.75
7.2.130.0080.00716.93
7.2.120.0060.00716.76
7.2.110.0070.00716.75
7.2.100.0050.00716.72
7.2.90.0050.01016.86
7.2.80.0080.00616.81
7.2.70.0090.00316.78
7.2.60.0080.00316.97
7.2.50.0080.00516.92
7.2.40.0080.00516.83
7.2.30.0000.01116.96
7.2.20.0080.00516.73
7.2.10.0040.01016.96
7.2.00.0010.01216.87
7.1.250.0020.00815.65
7.1.70.0000.01017.26
7.1.60.0120.01219.48
7.1.50.0000.02216.80
7.1.00.0030.07322.31
7.0.200.0180.00416.32
7.0.60.0070.07720.05
7.0.50.0130.07717.90
7.0.40.0170.07720.14
7.0.30.0400.07720.06
7.0.20.0300.06320.21
7.0.10.0030.09720.24
7.0.00.0100.04320.07
5.6.280.0000.04021.11
5.6.210.0230.06320.47
5.6.200.0100.08018.18
5.6.190.0070.06320.33
5.6.180.0300.06320.58
5.6.170.0270.07720.71
5.6.160.0130.08020.57
5.6.150.0130.06718.21
5.6.140.0070.05318.14
5.6.130.0100.08318.17
5.6.120.0030.04721.00
5.6.110.0170.08020.98
5.6.100.0070.06721.01
5.6.90.0030.04321.02
5.6.80.0000.04320.36
5.5.350.3530.03320.47
5.5.340.0230.06317.98
5.5.330.0070.08320.21
5.5.320.0130.08020.42
5.5.310.0170.04320.39
5.5.300.0030.09317.98
5.5.290.0070.05017.95
5.5.280.0030.08320.78
5.5.270.0130.03320.87
5.5.260.0130.05720.96
5.5.250.0130.06720.46
5.5.240.0330.06720.04

preferences:
54.28 ms | 401 KiB | 5 Q