3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait foo { protected $foo; protected function foo() { return $this->foo; } } trait bar { use foo; protected function bar() { return $this->foo().'bar'; } } class A { use foo; public function __construct($foo) { $this->foo = $foo; } } class B extends A { use bar; } $b = new B('foo'); $b->bar();

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.00716.63
8.3.50.0070.01118.05
8.3.40.0140.00418.88
8.3.30.0070.00718.79
8.3.20.0000.00720.30
8.3.10.0030.00523.71
8.3.00.0040.00419.51
8.2.180.0110.00718.63
8.2.170.0060.00922.96
8.2.160.0110.00320.52
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00417.75
8.2.120.0040.00426.35
8.2.110.0030.00621.06
8.2.100.0060.00617.63
8.2.90.0040.00419.09
8.2.80.0060.00617.97
8.2.70.0030.00517.63
8.2.60.0080.00017.80
8.2.50.0040.00418.07
8.2.40.0000.00819.38
8.2.30.0000.00720.53
8.2.20.0040.00517.83
8.2.10.0070.00018.11
8.2.00.0000.00717.93
8.1.280.0070.01125.92
8.1.270.0060.00323.83
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0030.00621.32
8.1.230.0040.00717.83
8.1.220.0070.00017.76
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0000.00817.70
8.1.180.0040.00418.10
8.1.170.0030.00618.78
8.1.160.0040.00422.05
8.1.150.0000.00718.86
8.1.140.0000.00819.62
8.1.130.0030.00317.70
8.1.120.0040.00417.50
8.1.110.0030.00317.36
8.1.100.0000.00717.48
8.1.90.0040.00317.41
8.1.80.0000.00817.46
8.1.70.0070.00017.43
8.1.60.0040.00417.47
8.1.50.0030.00617.48
8.1.40.0040.00417.55
8.1.30.0060.00317.60
8.1.20.0000.00717.63
8.1.10.0030.00617.64
8.1.00.0040.00417.52
8.0.300.0040.00418.77
8.0.290.0050.00216.75
8.0.280.0030.00318.32
8.0.270.0000.00717.25
8.0.260.0030.00317.14
8.0.250.0000.00717.02
8.0.240.0040.00416.89
8.0.230.0070.00316.92
8.0.220.0000.00716.95
8.0.210.0040.00416.99
8.0.200.0040.00416.91
8.0.190.0000.00816.89
8.0.180.0060.00316.84
8.0.170.0080.00316.93
8.0.160.0040.00416.96
8.0.150.0080.00016.96
8.0.140.0040.00416.88
8.0.130.0060.00013.31
8.0.120.0000.00916.94
8.0.110.0000.00816.92
8.0.100.0070.00016.94
8.0.90.0030.00316.77
8.0.80.0030.01616.90
8.0.70.0000.00816.97
8.0.60.0000.00816.97
8.0.50.0030.00517.01
8.0.30.0040.01417.08
8.0.20.0110.00717.40
8.0.10.0040.00417.04
8.0.00.0080.00916.69
7.4.330.0050.00016.84
7.4.320.0070.00016.58
7.4.300.0000.00616.49
7.4.290.0000.00716.41
7.4.280.0000.00816.51
7.4.270.0050.00216.61
7.4.260.0070.00016.50
7.4.250.0080.00016.47
7.4.240.0020.00516.55
7.4.230.0070.00016.41
7.4.220.0100.01016.42
7.4.210.0030.01216.54
7.4.200.0030.00316.58
7.4.160.0060.00916.83
7.4.150.0070.01417.40
7.4.140.0100.01117.86
7.4.130.0100.00816.51
7.4.120.0090.00816.57
7.4.110.0040.01416.54
7.4.100.0150.00316.44
7.4.90.0100.01016.50
7.4.80.0100.00719.39
7.4.70.0100.01316.62
7.4.60.0070.01016.50
7.4.50.0100.00716.39
7.4.40.0120.00816.59
7.4.30.0060.01616.57
7.4.00.0070.00714.71
7.3.330.0050.00013.36
7.3.320.0040.00413.37
7.3.310.0040.00416.44
7.3.300.0070.00016.41
7.3.290.0060.01016.33
7.3.280.0050.01116.39
7.3.270.0140.01017.40
7.3.260.0110.00616.39
7.3.250.0120.00816.36
7.3.240.0100.01016.36
7.3.230.0090.00916.39
7.3.210.0120.00616.46
7.3.200.0070.01016.59
7.3.190.0110.00516.58
7.3.180.0100.01016.62
7.3.170.0030.01316.50
7.3.160.0080.00816.53
7.3.120.0050.01314.57
7.3.110.0070.00614.73
7.3.100.0070.00714.81
7.3.90.0070.00614.67
7.3.80.0040.00714.95
7.3.70.0070.00814.62
7.3.60.0060.00714.82
7.3.50.0060.00814.78
7.3.40.0060.00814.65
7.3.30.0000.01314.70
7.3.20.0080.00516.30
7.3.10.0100.00916.56
7.3.00.0050.01016.54
7.2.330.0080.00916.67
7.2.320.0030.01616.62
7.2.310.0070.01016.38
7.2.300.0130.00616.67
7.2.290.0060.01216.50
7.2.240.0030.00614.82
7.2.230.0070.00915.06
7.2.220.0050.01014.94
7.2.210.0030.00914.88
7.2.200.0090.00714.81
7.2.190.0060.00715.05
7.2.180.0080.00515.00
7.2.170.0020.01114.90
7.2.160.0070.00515.09
7.2.150.0020.00916.84
7.2.140.0080.00816.90
7.2.130.0040.01016.87
7.2.120.0090.00516.82
7.2.110.0030.01016.71
7.2.100.0070.00716.80
7.2.90.0080.00816.87
7.2.80.0090.00816.84
7.2.70.0080.00716.82
7.2.60.0040.01116.75
7.2.50.0040.00716.52
7.2.40.0030.00816.89
7.2.30.0070.00716.87
7.2.20.0050.00916.86
7.2.10.0000.01116.68
7.2.00.0080.00517.73
7.1.330.0020.01215.70
7.1.320.0080.00515.69
7.1.310.0060.00715.86
7.1.300.0030.01115.62
7.1.290.0050.00515.56
7.1.280.0110.00315.63
7.1.270.0050.00515.54
7.1.260.0040.00715.77
7.1.250.0040.00815.68
7.1.200.0040.00815.64
7.1.100.0000.01118.08
7.1.70.0000.00817.22
7.1.60.0080.01519.12
7.1.50.0070.01416.80
7.1.00.0000.08022.31
7.0.200.0040.00416.84
7.0.60.0070.08720.01
7.0.50.0070.08017.86
7.0.40.0030.04320.13
7.0.30.0130.04720.08
7.0.20.0400.07320.08
7.0.10.0030.04720.23
7.0.00.0030.08020.19
5.6.280.0000.06721.13
5.6.210.0100.05320.55
5.6.200.0100.07318.22
5.6.190.0100.07320.41
5.6.180.0370.03720.47
5.6.170.0030.05320.48
5.6.160.0000.05320.48
5.6.150.0070.07718.14
5.6.140.0070.08018.22
5.6.130.0100.04318.24
5.6.120.0100.04320.98
5.6.110.0100.07021.12
5.6.100.0070.07721.09
5.6.90.0130.08021.13
5.6.80.0030.08020.52
5.5.350.4230.03720.31
5.5.340.0030.08317.95
5.5.330.0100.07720.53
5.5.320.0070.07020.42
5.5.310.0230.08020.27
5.5.300.0130.03018.04
5.5.290.0000.09018.03
5.5.280.0000.09020.88
5.5.270.0100.03720.96
5.5.260.0000.04720.79
5.5.250.0100.04020.54
5.5.240.0070.08020.15

preferences:
44.83 ms | 400 KiB | 5 Q