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() { $this->foo = 'foo'; } } class B extends A { use bar; } $b = new B(); $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.0110.00416.75
8.3.50.0070.01121.99
8.3.40.0040.01118.96
8.3.30.0000.01518.65
8.3.20.0070.00020.17
8.3.10.0070.00023.62
8.3.00.0080.00019.38
8.2.180.0060.00918.54
8.2.170.0070.00722.96
8.2.160.0070.01120.27
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0040.00417.50
8.2.120.0040.00426.35
8.2.110.0090.00022.13
8.2.100.0030.00917.75
8.2.90.0030.00618.94
8.2.80.0050.00317.97
8.2.70.0060.00317.48
8.2.60.0040.00417.80
8.2.50.0050.00318.07
8.2.40.0000.00919.28
8.2.30.0030.00520.72
8.2.20.0040.00417.62
8.2.10.0000.00717.95
8.2.00.0020.00518.04
8.1.280.0110.00725.92
8.1.270.0000.00923.93
8.1.260.0030.00528.09
8.1.250.0080.00028.09
8.1.240.0090.00022.46
8.1.230.0070.00417.50
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.01017.47
8.1.190.0000.00817.74
8.1.180.0030.00518.10
8.1.170.0040.00418.56
8.1.160.0070.00022.02
8.1.150.0000.00718.88
8.1.140.0080.00019.45
8.1.130.0030.00317.73
8.1.120.0040.00417.48
8.1.110.0000.00717.48
8.1.100.0020.00517.49
8.1.90.0000.00717.49
8.1.80.0080.00017.43
8.1.70.0000.00717.38
8.1.60.0040.00417.58
8.1.50.0040.00417.55
8.1.40.0040.00417.48
8.1.30.0000.00817.65
8.1.20.0040.00417.60
8.1.10.0050.00317.43
8.1.00.0000.00717.41
8.0.300.0040.00418.77
8.0.290.0000.00716.61
8.0.280.0030.00318.38
8.0.270.0040.00417.22
8.0.260.0060.00017.13
8.0.250.0030.00317.04
8.0.240.0000.00717.01
8.0.230.0070.00417.05
8.0.220.0020.00516.82
8.0.210.0000.00816.99
8.0.200.0060.00016.97
8.0.190.0000.00816.91
8.0.180.0030.00516.83
8.0.170.0050.00517.01
8.0.160.0040.00417.00
8.0.150.0070.00016.90
8.0.140.0040.00416.89
8.0.130.0000.00613.32
8.0.120.0050.00316.95
8.0.110.0070.00016.79
8.0.100.0050.00216.89
8.0.90.0050.00216.80
8.0.80.0110.00416.94
8.0.70.0040.00416.73
8.0.60.0090.00016.95
8.0.50.0040.00416.80
8.0.30.0090.00917.13
8.0.20.0110.00817.40
8.0.10.0050.00316.96
8.0.00.0080.00816.76
7.4.330.0030.00316.79
7.4.320.0030.00316.61
7.4.300.0000.00616.64
7.4.290.0030.00316.51
7.4.280.0040.00416.48
7.4.270.0000.00716.43
7.4.260.0000.00716.60
7.4.250.0030.00516.57
7.4.240.0040.00416.53
7.4.230.0030.00316.57
7.4.220.0100.01016.45
7.4.210.0110.00316.45
7.4.200.0040.00416.44
7.4.160.0060.01016.44
7.4.150.0050.01417.40
7.4.140.0110.00817.86
7.4.130.0110.00616.59
7.4.120.0090.00916.49
7.4.110.0070.01016.71
7.4.100.0100.00616.69
7.4.90.0160.00916.70
7.4.80.0060.01119.39
7.4.70.0080.01116.51
7.4.60.0130.00316.40
7.4.50.0000.01516.46
7.4.40.0060.01016.57
7.4.30.0130.00716.46
7.4.00.0000.01515.18
7.3.330.0030.00313.22
7.3.320.0000.00613.23
7.3.310.0030.00316.36
7.3.300.0000.00716.32
7.3.290.0100.00816.38
7.3.280.0080.00916.35
7.3.270.0080.00817.40
7.3.260.0000.01616.32
7.3.250.0050.01316.48
7.3.240.0080.01116.49
7.3.230.0130.00316.39
7.3.210.0060.01216.53
7.3.200.0100.00716.41
7.3.190.0030.01416.54
7.3.180.0140.00716.39
7.3.170.0060.01216.41
7.3.160.0000.01516.58
7.3.120.0160.00314.87
7.3.110.0120.00315.07
7.3.100.0090.00614.81
7.3.90.0060.01014.88
7.3.80.0070.00314.64
7.3.70.0070.01014.65
7.3.60.0030.00914.67
7.3.50.0120.00014.86
7.3.40.0060.00614.37
7.3.30.0060.00914.88
7.3.20.0100.00616.43
7.3.10.0120.00316.39
7.3.00.0070.01116.63
7.2.330.0090.00916.46
7.2.320.0110.00616.67
7.2.310.0100.01416.61
7.2.300.0070.01016.77
7.2.290.0150.00616.44
7.2.240.0000.01215.06
7.2.230.0030.00715.18
7.2.220.0060.00614.59
7.2.210.0070.01114.89
7.2.200.0060.00914.99
7.2.190.0040.01114.96
7.2.180.0070.01015.02
7.2.170.0090.00614.97
7.2.160.0060.00914.95
7.2.150.0100.00617.00
7.2.140.0080.00316.84
7.2.130.0060.01316.68
7.2.120.0040.01116.81
7.2.110.0100.00716.68
7.2.100.0140.00316.99
7.2.90.0130.00317.09
7.2.80.0170.00516.71
7.2.70.0120.00316.93
7.2.60.0060.00616.75
7.2.50.0100.00716.60
7.2.40.0080.00416.86
7.2.30.0060.00616.87
7.2.20.0090.00616.66
7.2.10.0000.01316.94
7.2.00.0030.00917.09
7.1.330.0060.00815.71
7.1.320.0080.00815.75
7.1.310.0070.00715.79
7.1.300.0060.00915.25
7.1.290.0030.00715.77
7.1.280.0100.00715.38
7.1.270.0090.00615.46
7.1.260.0090.00615.68
7.1.250.0110.00315.86
7.1.200.0060.00715.35
7.1.70.0040.00417.15
7.1.60.0090.01519.12
7.1.50.0060.01616.57
7.1.00.0000.07722.45
7.0.200.0040.00416.64
7.0.60.0130.03319.97
7.0.50.0030.04717.96
7.0.40.0100.04720.09
7.0.30.0200.04020.26
7.0.20.0300.05320.12
7.0.10.0130.08320.33
7.0.00.0070.08320.15
5.6.280.0100.04020.87
5.6.210.0070.08320.67
5.6.200.0170.07318.23
5.6.190.0100.04320.67
5.6.180.0170.05020.64
5.6.170.0100.04720.53
5.6.160.0170.07320.54
5.6.150.0030.07718.23
5.6.140.0100.07718.14
5.6.130.0070.08018.15
5.6.120.0070.06720.91
5.6.110.0100.07021.03
5.6.100.0070.04020.89
5.6.90.0170.05020.99
5.6.80.0130.07320.43
5.5.350.0070.06720.47
5.5.340.0100.05018.09
5.5.330.0030.08020.21
5.5.320.0070.07320.27
5.5.310.0230.04320.51
5.5.300.0030.08317.94
5.5.290.0000.04318.02
5.5.280.0030.04020.77
5.5.270.0070.06320.68
5.5.260.0070.03720.98
5.5.250.0000.07720.47
5.5.240.0170.07020.16

preferences:
48.57 ms | 401 KiB | 5 Q