3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Trait1 { public function init() { echo("Trait1 - init\n"); } } trait Trait2 { public function init() { echo("Trait2 - init\n"); } } class Test { use Trait1 { init as public method1trait1; } use Trait2 { init as public method1trait2; } final public function __construct() { $this->init(); $this->method1trait1(); $this->method1trait2(); } public function init() { echo("Test - init\n"); } } $test = new Test(); $reflection = new ReflectionClass( $test ); foreach($reflection->getTraitAliases() as $k => $v) { echo $k.' => '.$v."\n"; }

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.70.0170.00716.88
8.3.60.0000.01516.75
8.3.50.0110.00817.33
8.3.40.0120.00618.71
8.3.30.0120.00918.49
8.3.20.0050.00320.16
8.3.10.0060.00323.69
8.3.00.0090.00017.49
8.2.180.0100.01018.23
8.2.170.0000.01522.96
8.2.160.0140.00420.53
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00719.37
8.2.120.0040.00426.35
8.2.110.0030.00620.51
8.2.100.0120.00017.78
8.2.90.0000.00919.22
8.2.80.0040.00417.97
8.2.70.0030.00517.38
8.2.60.0080.00017.80
8.2.50.0040.00418.10
8.2.40.0040.00422.15
8.2.30.0080.00020.84
8.2.20.0000.00718.06
8.2.10.0040.00418.01
8.2.00.0040.00417.98
8.1.280.0090.00925.92
8.1.270.0000.00822.09
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0050.00522.19
8.1.230.0110.00019.17
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0060.00317.13
8.1.190.0000.00817.11
8.1.180.0040.00418.10
8.1.170.0030.00618.65
8.1.160.0080.00018.92
8.1.150.0000.00718.84
8.1.140.0000.00719.43
8.1.130.0070.00018.83
8.1.120.0040.00417.31
8.1.110.0000.00717.29
8.1.100.0040.00417.41
8.1.90.0000.00817.44
8.1.80.0000.00717.37
8.1.70.0000.00717.39
8.1.60.0080.00017.43
8.1.50.0030.00617.44
8.1.40.0060.00317.45
8.1.30.0020.00517.59
8.1.20.0050.00317.50
8.1.10.0060.00317.36
8.1.00.0050.00217.38
8.0.300.0050.00218.77
8.0.290.0000.00716.75
8.0.280.0030.00318.26
8.0.270.0000.00717.31
8.0.260.0030.00316.82
8.0.250.0030.00516.86
8.0.240.0030.00316.86
8.0.230.0000.00716.95
8.0.220.0000.00816.90
8.0.210.0070.00016.89
8.0.200.0070.00016.95
8.0.190.0040.00416.84
8.0.180.0040.00416.88
8.0.170.0040.00416.84
8.0.160.0050.00316.98
8.0.150.0040.00416.91
8.0.140.0070.00016.88
8.0.130.0050.00013.32
8.0.120.0040.00416.84
8.0.110.0070.00016.86
8.0.100.0040.00416.94
8.0.90.0040.00416.78
8.0.80.0100.00716.89
8.0.70.0050.00316.83
8.0.60.0000.00716.84
8.0.50.0070.00016.75
8.0.30.0110.00617.09
8.0.20.0090.01017.40
8.0.10.0050.00217.05
8.0.00.0120.00616.74
7.4.330.0050.00015.55
7.4.320.0000.00616.52
7.4.300.0000.00616.51
7.4.290.0000.00816.58
7.4.280.0000.00716.58
7.4.270.0060.00316.66
7.4.260.0030.00616.45
7.4.250.0080.00016.38
7.4.240.0040.00416.50
7.4.230.0040.00416.36
7.4.220.0170.01016.55
7.4.210.0100.01016.54
7.4.200.0070.00016.43
7.4.160.0100.00516.56
7.4.150.0170.00017.40
7.4.140.0080.01117.86
7.4.130.0160.00716.48
7.4.120.0110.01216.61
7.4.110.0090.00916.41
7.4.100.0130.00716.48
7.4.90.0100.00616.61
7.4.80.0040.01419.39
7.4.70.0180.00316.46
7.4.60.0140.00316.62
7.4.50.0060.01016.68
7.4.40.0050.01116.41
7.4.30.0140.00316.54
7.4.00.0000.01314.75
7.3.330.0070.00013.30
7.3.320.0000.00513.31
7.3.310.0030.00316.36
7.3.300.0000.00716.35
7.3.290.0050.00916.25
7.3.280.0090.00716.29
7.3.270.0070.01017.40
7.3.260.0130.00516.58
7.3.250.0140.00616.34
7.3.240.0120.01016.53
7.3.230.0110.00516.51
7.3.210.0120.00916.22
7.3.200.0090.00816.54
7.3.190.0030.01416.42
7.3.180.0090.01216.55
7.3.170.0040.01216.36
7.3.160.0040.01216.43
7.2.330.0100.00616.77
7.2.320.0100.00716.73
7.2.310.0110.00516.48
7.2.300.0100.01016.69
7.2.290.0060.01216.80
7.2.60.0110.00317.00
7.2.00.0000.01819.52
7.1.200.0030.01015.82
7.1.100.0100.00317.72
7.1.70.0060.01017.09
7.1.60.0190.01634.99
7.1.50.0150.01534.82
7.1.40.0100.02034.27
7.1.30.0210.01034.49
7.1.20.0130.01634.39
7.1.10.0030.00916.50
7.1.00.0040.00816.66
7.0.200.0030.01316.90
7.0.190.0080.00416.57
7.0.180.0030.01016.12
7.0.170.0030.01016.25
7.0.160.0080.00816.16
7.0.150.0030.00916.28
7.0.140.0000.01316.07
7.0.130.0030.01016.42
7.0.120.0090.00616.28
7.0.110.0060.00616.28
7.0.100.0050.00816.36
7.0.90.0080.00416.23
7.0.80.0000.01416.38
7.0.70.0060.00616.43
7.0.60.0040.00816.29
7.0.50.0070.00716.51
7.0.40.0040.00816.60
7.0.30.0040.01416.44
7.0.20.0030.01116.36
7.0.10.0060.00816.59
7.0.00.0100.00316.39

preferences:
80.75 ms | 401 KiB | 5 Q