3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait foo { protected $foo; protected function foo() { return $this->foo; } } trait bar { use foo; public 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.0070.01016.75
8.3.50.0100.00822.05
8.3.40.0110.00718.70
8.3.30.0140.00018.59
8.3.20.0000.00820.33
8.3.10.0040.00423.52
8.3.00.0030.00519.38
8.2.180.0090.00618.17
8.2.170.0060.00922.96
8.2.160.0060.00820.44
8.2.150.0060.00325.66
8.2.140.0040.00424.66
8.2.130.0050.00317.50
8.2.120.0040.00426.35
8.2.110.0100.00019.27
8.2.100.0060.00617.50
8.2.90.0080.00019.05
8.2.80.0050.00317.97
8.2.70.0030.00617.63
8.2.60.0030.00518.03
8.2.50.0000.00818.07
8.2.40.0050.00319.34
8.2.30.0070.00020.61
8.2.20.0090.00017.67
8.2.10.0040.00418.12
8.2.00.0070.00017.93
8.1.280.0140.00425.92
8.1.270.0030.00623.84
8.1.260.0070.00028.09
8.1.250.0000.00828.09
8.1.240.0070.00319.22
8.1.230.0060.00617.42
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00717.36
8.1.190.0060.00317.82
8.1.180.0040.00418.10
8.1.170.0000.00718.70
8.1.160.0000.00821.97
8.1.150.0040.00418.93
8.1.140.0000.00819.58
8.1.130.0030.00317.61
8.1.120.0000.00717.42
8.1.110.0000.00717.34
8.1.100.0040.00417.30
8.1.90.0040.00417.47
8.1.80.0040.00417.33
8.1.70.0000.00717.34
8.1.60.0060.00317.64
8.1.50.0000.00817.44
8.1.40.0090.00017.50
8.1.30.0040.00417.56
8.1.20.0000.00717.64
8.1.10.0000.00817.51
8.1.00.0050.00317.44
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0040.00418.43
8.0.270.0000.00717.21
8.0.260.0000.00817.28
8.0.250.0030.00317.00
8.0.240.0000.00716.96
8.0.230.0050.00516.94
8.0.220.0040.00416.75
8.0.210.0040.00416.77
8.0.200.0030.00316.82
8.0.190.0030.00516.99
8.0.180.0000.00716.79
8.0.170.0030.00716.83
8.0.160.0050.00316.81
8.0.150.0000.00716.79
8.0.140.0040.00416.79
8.0.130.0050.00213.36
8.0.120.0040.00416.86
8.0.110.0070.00016.84
8.0.100.0040.00416.75
8.0.90.0000.00716.77
8.0.80.0090.00916.84
8.0.70.0050.00216.88
8.0.60.0040.00416.94
8.0.50.0000.00716.74
8.0.30.0130.00816.88
8.0.20.0070.01117.40
8.0.10.0020.00517.01
8.0.00.0120.00716.85
7.4.330.0020.00216.84
7.4.320.0000.00716.60
7.4.300.0000.00616.51
7.4.290.0030.00316.50
7.4.280.0000.00816.48
7.4.270.0030.00316.61
7.4.260.0000.00716.43
7.4.250.0050.00316.36
7.4.240.0020.00516.53
7.4.230.0000.00716.48
7.4.220.0090.00916.55
7.4.210.0100.01016.61
7.4.200.0000.00716.34
7.4.160.0150.00016.45
7.4.150.0060.01217.40
7.4.140.0080.01217.86
7.4.130.0080.01116.60
7.4.120.0100.00816.51
7.4.110.0070.01016.48
7.4.100.0150.00616.52
7.4.90.0100.00716.59
7.4.80.0060.01019.39
7.4.70.0100.00716.47
7.4.60.0000.01516.47
7.4.50.0070.01016.21
7.4.40.0030.01316.40
7.4.30.0190.00316.70
7.4.00.0110.00714.74
7.3.330.0030.00313.22
7.3.320.0040.00413.26
7.3.310.0030.00316.30
7.3.300.0000.00716.26
7.3.290.0090.00716.27
7.3.280.0070.00816.33
7.3.270.0030.01317.40
7.3.260.0120.00316.31
7.3.250.0130.00916.34
7.3.240.0100.00816.31
7.3.230.0030.01416.39
7.3.210.0090.00616.28
7.3.200.0060.00916.38
7.3.190.0030.01816.25
7.3.180.0120.01016.46
7.3.170.0030.01416.32
7.3.160.0140.00716.32
7.2.330.0030.01416.71
7.2.320.0100.01316.71
7.2.310.0140.00616.60
7.2.300.0060.01216.73
7.2.290.0140.00416.60
7.2.60.0070.00716.86
7.2.00.0090.00619.61
7.1.200.0000.01215.41
7.1.100.0060.00618.14
7.1.70.0000.01216.93
7.1.60.0060.01619.12
7.1.50.0100.00316.73
7.1.00.0130.06722.45
7.0.200.0060.00616.73
7.0.60.0000.03321.73
7.0.50.0000.04717.88
7.0.40.0070.08720.11
7.0.30.0230.04720.19
7.0.20.0170.06320.09
7.0.10.0100.08720.26
7.0.00.0170.08020.11
5.6.280.0030.05021.04
5.6.210.0000.05020.70
5.6.200.0070.05318.27
5.6.190.0000.05020.57
5.6.180.0000.04020.50
5.6.170.0230.04320.62
5.6.160.0000.05320.54
5.6.150.0000.07318.14
5.6.140.0070.06018.28
5.6.130.0030.06718.15
5.6.120.0100.08721.00
5.6.110.0070.06721.01
5.6.100.0130.06721.09
5.6.90.0070.04021.11
5.6.80.0070.04020.52
5.5.350.3600.04720.39
5.5.340.0130.03017.99
5.5.330.0130.08320.35
5.5.320.0170.04720.34
5.5.310.0230.07020.34
5.5.300.0030.07318.07
5.5.290.0030.04318.08
5.5.280.0130.04020.80
5.5.270.0170.07320.68
5.5.260.0100.06320.87
5.5.250.0100.03320.50
5.5.240.0230.07020.04

preferences:
88.1 ms | 401 KiB | 5 Q