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, Trait2 { Trait1::init as private method1trait1; Trait2::init insteadof Trait1; } final public function __construct() { $this->init(); $this->method1trait1(); } } $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.60.0070.01116.63
8.3.50.0100.00716.50
8.3.40.0130.00318.84
8.3.30.0090.00918.51
8.3.20.0040.00420.29
8.3.10.0040.00421.76
8.3.00.0080.00017.49
8.2.180.0120.00918.41
8.2.170.0070.00722.96
8.2.160.0050.00920.43
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0070.00020.34
8.2.120.0040.00426.35
8.2.110.0070.01019.08
8.2.100.0040.00718.22
8.2.90.0000.00819.27
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0080.00017.90
8.2.50.0030.00618.10
8.2.40.0000.00822.32
8.2.30.0030.00521.14
8.2.20.0000.00817.94
8.2.10.0080.00018.00
8.2.00.0040.00417.94
8.1.280.0120.00325.92
8.1.270.0040.00422.19
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0070.00319.21
8.1.230.0080.00317.42
8.1.220.0030.00517.74
8.1.210.0030.00718.77
8.1.200.0060.00317.23
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0030.00618.70
8.1.160.0040.00419.08
8.1.150.0000.00720.67
8.1.140.0040.00419.58
8.1.130.0070.00018.89
8.1.120.0070.00017.53
8.1.110.0000.00717.43
8.1.100.0030.00617.33
8.1.90.0040.00417.35
8.1.80.0040.00417.34
8.1.70.0000.00717.48
8.1.60.0000.00817.59
8.1.50.0040.00417.48
8.1.40.0000.00717.50
8.1.30.0040.00417.67
8.1.20.0090.00317.66
8.1.10.0040.00417.56
8.1.00.0040.00417.58
8.0.300.0000.00718.77
8.0.290.0000.00816.63
8.0.280.0070.00018.31
8.0.270.0050.00517.28
8.0.260.0000.00716.70
8.0.250.0000.00716.97
8.0.240.0000.00816.93
8.0.230.0030.00716.97
8.0.220.0070.00016.89
8.0.210.0040.00416.93
8.0.200.0000.00616.87
8.0.190.0040.00416.87
8.0.180.0000.00816.90
8.0.170.0070.00016.79
8.0.160.0090.00016.88
8.0.150.0000.00816.88
8.0.140.0050.00216.83
8.0.130.0030.00313.30
8.0.120.0060.00316.83
8.0.110.0050.00316.78
8.0.100.0040.00416.82
8.0.90.0000.00716.82
8.0.80.0110.00416.88
8.0.70.0050.00216.88
8.0.60.0050.00216.78
8.0.50.0070.00016.77
8.0.30.0070.01017.00
8.0.20.0110.01017.40
8.0.10.0050.00317.06
8.0.00.0120.01216.58
7.4.330.0050.00015.55
7.4.320.0000.00716.52
7.4.300.0040.00416.64
7.4.290.0060.00316.59
7.4.280.0000.00716.66
7.4.270.0070.00016.56
7.4.260.0030.00313.28
7.4.250.0000.00816.54
7.4.240.0000.00716.42
7.4.230.0000.00716.58
7.4.220.0060.01016.56
7.4.210.0070.01016.59
7.4.200.0040.00416.72
7.4.160.0060.01216.47
7.4.150.0100.01317.40
7.4.140.0110.00617.86
7.4.130.0160.00016.58
7.4.120.0080.01316.51
7.4.110.0090.00916.54
7.4.100.0100.00716.47
7.4.90.0070.01116.50
7.4.80.0040.01419.39
7.4.70.0130.00516.35
7.4.60.0200.00316.42
7.4.50.0030.01416.52
7.4.40.0370.02516.63
7.4.30.0090.00616.68
7.4.00.0090.00614.99
7.3.330.0000.00813.31
7.3.320.0000.00513.30
7.3.310.0000.00716.15
7.3.300.0030.00316.30
7.3.290.0040.00416.34
7.3.280.0060.01116.28
7.3.270.0100.01617.40
7.3.260.0090.00716.37
7.3.250.0110.00916.36
7.3.240.0100.01216.45
7.3.230.0030.01416.31
7.3.210.0090.00616.49
7.3.200.0130.00316.49
7.3.190.0040.01316.43
7.3.180.0130.00916.33
7.3.170.0050.01116.50
7.3.160.0040.01116.29
7.2.330.0130.00416.67
7.2.320.0060.01216.40
7.2.310.0180.00316.82
7.2.300.0110.00716.52
7.2.290.0130.00316.54
7.2.60.0080.00417.05
7.2.00.0060.00919.42
7.1.200.0000.00915.43
7.1.100.0100.00717.96
7.1.70.3770.01015.45
7.1.60.3070.01333.10
7.1.50.3800.02332.99
7.1.40.3870.01732.42
7.1.30.4630.01032.57
7.1.20.2930.01732.39
7.1.10.2800.01014.66
7.1.00.2700.01314.83
7.0.200.3870.01315.02
7.0.190.4670.01014.65
7.0.180.3630.01314.35
7.0.170.4500.01314.51
7.0.160.3300.01314.35
7.0.150.3130.01714.28
7.0.140.3470.01314.29
7.0.130.2930.01314.63
7.0.120.2630.01014.78
7.0.110.2630.01014.48
7.0.100.2570.01714.33
7.0.90.2570.01714.39
7.0.80.2730.01314.51
7.0.70.2230.01714.35
7.0.60.2130.01014.41
7.0.50.2530.02014.66
7.0.40.2230.01014.57
7.0.30.2270.00714.88
7.0.20.2330.01014.47
7.0.10.2400.01014.43
7.0.00.2770.01014.83

preferences:
41.22 ms | 400 KiB | 5 Q