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.60.0120.00316.75
8.3.50.0030.01216.58
8.3.40.0070.01018.86
8.3.30.0000.01518.45
8.3.20.0000.00720.04
8.3.10.0050.00221.85
8.3.00.0030.00517.75
8.2.180.0040.01118.29
8.2.170.0070.00722.96
8.2.160.0100.00320.32
8.2.150.0000.00824.18
8.2.140.0070.00724.66
8.2.130.0000.00720.95
8.2.120.0110.00726.35
8.2.110.0030.00620.53
8.2.100.0110.00017.89
8.2.90.0030.00519.09
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0030.00617.91
8.2.50.0060.00318.10
8.2.40.0080.00022.05
8.2.30.0040.00419.27
8.2.20.0040.00417.88
8.2.10.0000.00918.08
8.2.00.0000.00817.93
8.1.280.0110.00725.92
8.1.270.0000.00723.96
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.79
8.1.230.0090.00317.57
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0050.00517.23
8.1.180.0030.00618.10
8.1.170.0080.00018.49
8.1.160.0040.00419.08
8.1.150.0040.00420.62
8.1.140.0040.00419.44
8.1.130.0030.00618.80
8.1.120.0040.00417.47
8.1.110.0040.00817.31
8.1.100.0070.00017.46
8.1.90.0000.00817.43
8.1.80.0040.00417.41
8.1.70.0000.00717.39
8.1.60.0030.00617.46
8.1.50.0040.00417.36
8.1.40.0000.00717.42
8.1.30.0070.00017.62
8.1.20.0000.00817.64
8.1.10.0000.00717.45
8.1.00.0000.00717.35
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00518.51
8.0.270.0000.00817.16
8.0.260.0030.00316.83
8.0.250.0000.00716.88
8.0.240.0070.00016.96
8.0.230.0040.00716.97
8.0.220.0000.00716.86
8.0.210.0030.00316.94
8.0.200.0070.00016.96
8.0.190.0040.00417.00
8.0.180.0030.00716.89
8.0.170.0000.00816.95
8.0.160.0000.00716.80
8.0.150.0080.00016.86
8.0.140.0070.00016.86
8.0.130.0000.00513.30
8.0.120.0040.00416.86
8.0.110.0000.00716.93
8.0.100.0040.00416.98
8.0.90.0040.00416.75
8.0.80.0070.01016.97
8.0.70.0030.00616.91
8.0.60.0070.00016.91
8.0.50.0060.00316.78
8.0.30.0060.01117.13
8.0.20.0090.01017.40
8.0.10.0040.00417.04
8.0.00.0120.00716.72
7.4.330.0050.00015.55
7.4.320.0030.00316.58
7.4.300.0040.00416.56
7.4.290.0090.00016.53
7.4.280.0000.00716.59
7.4.270.0030.00516.54
7.4.260.0000.00513.33
7.4.250.0070.00016.57
7.4.240.0000.00716.63
7.4.230.0000.00716.52
7.4.220.0180.01116.64
7.4.210.0090.00916.47
7.4.200.0000.00716.52
7.4.160.0120.00516.49
7.4.150.0190.00517.40
7.4.140.0090.00917.86
7.4.130.0070.01116.61
7.4.120.0100.01316.47
7.4.110.0090.01216.65
7.4.100.0030.01316.44
7.4.90.0080.00916.75
7.4.80.0120.01219.39
7.4.70.0110.00616.61
7.4.60.0070.01016.50
7.4.50.0110.00716.54
7.4.40.0120.00616.36
7.4.30.0060.01416.63
7.4.00.0080.00915.14
7.3.330.0000.00513.13
7.3.320.0030.00313.23
7.3.310.0070.00016.30
7.3.300.0070.00016.27
7.3.290.0030.00316.18
7.3.280.0070.00916.25
7.3.270.0150.01017.40
7.3.260.0140.00716.32
7.3.250.0120.00816.38
7.3.240.0060.01116.47
7.3.230.0100.00716.48
7.3.210.0070.01016.55
7.3.200.0070.01016.41
7.3.190.0100.00716.51
7.3.180.0030.01316.34
7.3.170.0160.00616.54
7.3.160.0160.00016.48
7.3.120.0070.01014.80
7.3.110.0070.01014.74
7.3.100.0070.00714.64
7.3.90.0100.00015.00
7.3.80.0050.00514.82
7.3.70.0100.00314.74
7.3.60.0090.00314.73
7.3.50.0070.01114.95
7.3.40.0070.00714.90
7.3.30.0030.00614.66
7.3.20.0100.00316.80
7.3.10.0110.00416.64
7.3.00.0120.00316.46
7.2.330.0090.00816.74
7.2.320.0030.01316.73
7.2.310.0100.01016.45
7.2.300.0100.00716.52
7.2.290.0030.01316.83
7.2.250.0090.00615.30
7.2.240.0060.01215.05
7.2.230.0060.00915.32
7.2.220.0070.00714.74
7.2.210.0060.00915.16
7.2.200.0030.00714.91
7.2.190.0060.01215.04
7.2.180.0070.00315.20
7.2.170.0060.01015.10
7.2.60.0060.00917.05
7.2.00.0000.01219.61
7.1.330.0070.00715.68
7.1.320.0040.01115.62
7.1.310.0030.01216.12
7.1.300.0040.01115.61
7.1.290.0000.01415.87
7.1.280.0060.01015.82
7.1.270.0030.01015.64
7.1.260.0130.00015.71
7.1.200.0120.00315.77
7.1.100.0030.00918.29
7.1.70.0040.00817.28
7.1.60.0190.00534.92
7.1.50.0170.00734.82
7.1.40.0160.01034.37
7.1.30.0160.01034.41
7.1.20.0160.00834.64
7.1.10.0030.00916.49
7.1.00.0040.00716.54
7.0.200.0030.00816.95
7.0.190.0060.00616.79
7.0.180.0060.00616.39
7.0.170.0080.00415.99
7.0.160.0060.00616.09
7.0.150.0030.00916.27
7.0.140.0060.00716.03
7.0.130.0060.00616.51
7.0.120.0090.00316.52
7.0.110.0030.01116.16
7.0.100.0060.00616.16
7.0.90.0060.00616.48
7.0.80.0030.00816.09
7.0.70.0000.01216.27
7.0.60.0040.00716.14
7.0.50.0100.00316.05
7.0.40.0080.00316.41
7.0.30.0030.00816.36
7.0.20.0040.00816.45
7.0.10.0080.00416.57
7.0.00.0030.00916.18

preferences:
43.5 ms | 400 KiB | 5 Q