3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T1 { public function m(){ echo "t1 trait"; } } trait T2 { public function n(){ 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.0100.01016.38
8.3.50.0150.00322.11
8.3.40.0070.00718.59
8.3.30.0140.00018.77
8.3.20.0040.00420.16
8.3.10.0000.00823.61
8.3.00.0080.00019.25
8.2.180.0100.00718.29
8.2.170.0070.00722.96
8.2.160.0070.00720.58
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0060.00317.63
8.2.120.0040.00426.35
8.2.110.0090.00019.39
8.2.100.0090.00317.91
8.2.90.0040.00419.11
8.2.80.0040.00417.97
8.2.70.0030.00717.38
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0030.00519.34
8.2.30.0030.00320.64
8.2.20.0050.00517.74
8.2.10.0050.00318.05
8.2.00.0040.00418.06
8.1.280.0070.00725.92
8.1.270.0060.00323.83
8.1.260.0050.00228.09
8.1.250.0040.00428.09
8.1.240.0080.00021.28
8.1.230.0080.00417.52
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0070.00417.23
8.1.190.0050.00317.36
8.1.180.0050.00518.10
8.1.170.0040.00418.76
8.1.160.0080.00021.91
8.1.150.0000.00718.92
8.1.140.0050.00319.58
8.1.130.0000.00717.63
8.1.120.0020.00517.36
8.1.110.0000.00717.44
8.1.100.0040.00417.35
8.1.90.0040.00417.35
8.1.80.0000.00717.44
8.1.70.0030.00317.29
8.1.60.0000.00917.58
8.1.50.0000.00817.42
8.1.40.0050.00217.40
8.1.30.0060.00317.61
8.1.20.0040.00417.54
8.1.10.0040.00417.54
8.1.00.0030.00517.45
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0000.00718.53
8.0.270.0040.00417.17
8.0.260.0030.00317.17
8.0.250.0030.00516.93
8.0.240.0000.00716.92
8.0.230.0020.00516.96
8.0.220.0040.00416.95
8.0.210.0030.00316.92
8.0.200.0070.00016.88
8.0.190.0000.00716.86
8.0.180.0040.00416.76
8.0.170.0040.00416.97
8.0.160.0080.00016.99
8.0.150.0050.00216.90
8.0.140.0000.00716.77
8.0.130.0060.00013.36
8.0.120.0040.00416.83
8.0.110.0000.00716.88
8.0.100.0000.00716.69
8.0.90.0040.00416.72
8.0.80.0130.00316.87
8.0.70.0000.00716.90
8.0.60.0000.00716.85
8.0.50.0040.00416.85
8.0.30.0080.00917.13
8.0.20.0090.01117.40
8.0.10.0040.00417.07
8.0.00.0080.01016.89
7.4.330.0000.00616.84
7.4.320.0030.00316.50
7.4.300.0030.00316.56
7.4.290.0000.00816.46
7.4.280.0070.00016.63
7.4.270.0030.00316.57
7.4.260.0080.00016.53
7.4.250.0040.00416.33
7.4.240.0020.00516.51
7.4.230.0000.00716.39
7.4.220.0160.00616.45
7.4.210.0070.00716.69
7.4.200.0030.00316.64
7.4.160.0100.00716.34
7.4.150.0060.01217.40
7.4.140.0130.00917.86
7.4.130.0110.00616.51
7.4.120.0100.01116.61
7.4.110.0070.01616.42
7.4.100.0200.00516.64
7.4.90.0140.00616.47
7.4.80.0090.00919.39
7.4.70.0090.00916.50
7.4.60.0130.00316.46
7.4.50.0080.00316.33
7.4.40.0110.00616.53
7.4.30.0160.00616.51
7.4.00.0180.00015.12
7.3.330.0030.00313.23
7.3.320.0030.00213.27
7.3.310.0030.00316.14
7.3.300.0000.00716.25
7.3.290.0120.00416.18
7.3.280.0100.01016.21
7.3.270.0090.00917.40
7.3.260.0140.00316.38
7.3.250.0140.00416.37
7.3.240.0160.00016.25
7.3.230.0030.01416.39
7.3.210.0110.00616.57
7.3.200.0090.01216.23
7.3.190.0100.00816.52
7.3.180.0140.00316.38
7.3.170.0100.00916.38
7.3.160.0170.00316.23
7.2.330.0120.00616.30
7.2.320.0120.00916.72
7.2.310.0070.01116.63
7.2.300.0060.01516.45
7.2.290.0100.00716.63
7.1.70.0050.00216.88
7.1.60.0030.02019.48
7.1.50.0070.01417.08
7.1.00.0100.06722.48
7.0.200.0350.00714.91
7.0.60.0030.05019.91
7.0.50.0070.04317.86
7.0.40.0030.05020.18
7.0.30.0230.03720.23
7.0.20.0330.03720.26
7.0.10.0100.06720.20
7.0.00.0130.07720.22
5.6.280.0000.05320.86
5.6.210.0100.08320.62
5.6.200.0100.07018.16
5.6.190.0100.06720.53
5.6.180.0400.06320.77
5.6.170.0330.08020.58
5.6.160.0030.05720.51
5.6.150.0030.05318.18
5.6.140.0070.08018.24
5.6.130.0100.08318.21
5.6.120.0070.04321.05
5.6.110.0070.09020.97
5.6.100.0200.07721.00
5.6.90.0030.06021.04
5.6.80.0030.04020.49
5.5.350.4000.03720.35
5.5.340.0100.03317.98
5.5.330.0130.08020.41
5.5.320.0030.04020.31
5.5.310.0300.05320.27
5.5.300.0070.06717.98
5.5.290.0100.06318.07
5.5.280.0030.04720.96
5.5.270.0030.05720.96
5.5.260.0070.05720.85
5.5.250.0130.07320.63
5.5.240.0400.06320.37

preferences:
49.27 ms | 401 KiB | 5 Q