3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { #protected $a; protected $b="bla"; } class B { use A; public function setUp() { $this->b = "bla"; } } class C extends B { use A; protected $b="bla"; }

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.5.00.0110.01119.94
8.4.150.0010.00114.05
8.4.140.0110.01117.24
8.4.130.0150.00417.85
8.4.120.0130.00624.26
8.4.110.0110.01122.24
8.4.100.0110.00918.58
8.4.90.0110.00619.02
8.4.80.0100.00918.72
8.4.70.0140.00717.72
8.4.60.0130.00717.46
8.4.50.0130.00817.73
8.4.40.0380.00616.91
8.4.30.0370.01017.15
8.4.20.0410.00917.20
8.4.10.0550.00017.18
8.3.280.0100.01218.15
8.3.270.0130.00616.61
8.3.260.0070.00916.80
8.3.250.0120.00618.80
8.3.240.0130.00516.98
8.3.230.0140.00616.54
8.3.220.0120.00519.10
8.3.210.0090.00918.41
8.3.200.0040.00416.84
8.3.190.0100.00916.36
8.3.180.0120.00816.48
8.3.170.0420.00716.13
8.3.160.0400.00516.13
8.3.150.0350.00616.13
8.3.140.0430.01016.13
8.3.130.0350.00416.28
8.3.120.0320.00916.13
8.3.110.0360.00416.17
8.3.100.0370.00916.21
8.3.90.0370.00916.19
8.3.80.0370.00916.23
8.3.70.0340.01116.29
8.3.60.0370.00316.13
8.3.50.0360.01116.30
8.3.40.0290.00417.11
8.3.30.0330.00317.10
8.3.20.0270.00917.05
8.3.10.0210.01517.06
8.3.00.0180.00417.29
8.2.290.0040.00420.36
8.2.280.0090.00816.36
8.2.270.0290.00916.13
8.2.260.0290.00916.13
8.2.250.0220.01616.22
8.2.240.0300.00716.14
8.2.230.0320.00716.13
8.2.220.0360.00316.13
8.2.210.0450.01016.35
8.2.200.0340.00716.13
8.2.190.0330.00616.62
8.2.180.0270.01216.38
8.2.170.0390.00817.26
8.2.160.0320.01417.26
8.2.150.0360.00417.55
8.2.140.0290.01217.52
8.2.130.0380.00317.23
8.2.120.0260.01317.50
8.2.110.0360.00417.52
8.2.100.0280.00617.65
8.2.90.0280.01117.59
8.2.80.0350.00417.58
8.2.70.0350.00417.34
8.2.60.0300.00917.39
8.2.50.0280.01117.45
8.2.40.0240.01217.41
8.2.30.0240.01217.23
8.2.20.0300.00717.30
8.2.10.0290.00617.40
8.2.00.0330.00417.31
8.1.330.0030.00421.57
8.1.320.0070.00915.88
8.1.310.0230.01116.13
8.1.300.0290.01016.13
8.1.290.0370.00016.13
8.1.280.0330.00616.13
8.1.270.0210.01417.15
8.1.260.0310.00617.27
8.1.250.0250.00316.99
8.1.240.0230.02016.85
8.1.230.0320.00817.25
8.1.220.0320.00417.26
8.1.210.0320.00317.14
8.1.200.0270.00917.08
8.1.190.0310.00417.13
8.1.180.0290.00616.99
8.1.170.0350.00317.09
8.1.160.0360.00017.02
8.1.150.0340.00717.11
8.1.140.0270.00817.08
8.1.130.0270.00917.18
8.1.120.0280.00617.19
8.1.110.0200.00917.11
8.1.100.0280.00717.15
8.1.90.0310.00317.02
8.1.80.0260.01017.08
8.1.70.0250.00717.16
8.1.60.0320.00317.30
8.1.50.0270.00917.06
8.1.40.0250.01117.30
8.1.30.0310.00517.41
8.1.20.0310.00417.26
8.1.10.0280.00717.11
8.1.00.0280.00816.95
8.0.300.0300.00616.50
8.0.290.0270.00916.23
8.0.280.0220.01516.42
8.0.270.0370.00016.48
8.0.260.0230.01016.55
8.0.250.0100.00716.60
8.0.240.0180.00916.43
8.0.230.0350.00716.34
8.0.220.0310.00016.40
8.0.210.0260.01116.20
8.0.200.0280.00316.46
8.0.190.0220.01316.67
8.0.180.0320.00416.41
8.0.170.0250.01116.62
8.0.160.0210.01516.59
8.0.150.0320.00316.52
8.0.140.0270.00816.22
8.0.130.0190.01516.53
8.0.120.0280.00616.27
8.0.110.0310.00316.47
8.0.100.0270.00816.48
8.0.90.0310.00316.51
8.0.80.0210.01316.34
8.0.70.0310.00316.45
8.0.60.0280.00616.33
8.0.50.0300.00416.28
8.0.30.0320.00316.63
8.0.20.0260.00816.59
8.0.10.0280.00616.41
8.0.00.0270.00816.82
7.4.330.0270.00616.29
7.4.320.0160.01616.13
7.4.300.0200.01316.19
7.4.290.0230.01016.15
7.4.280.0290.00316.22
7.4.270.0320.00716.23
7.4.260.0290.00716.29
7.4.250.0320.00016.36
7.4.240.0350.00016.13
7.4.230.0290.00316.17
7.4.220.0220.01116.13
7.4.210.0230.00616.28
7.4.200.0270.00616.24
7.4.190.0230.01016.15
7.4.180.0230.00916.18
7.4.160.0220.01116.26
7.4.150.0320.00316.13
7.4.140.0180.00616.29
7.4.130.0280.00616.13
7.4.120.0300.00316.13
7.4.110.0240.00916.20
7.4.100.0220.00716.26
7.4.90.0210.01116.13
7.4.80.0180.01516.17
7.4.70.0220.01116.13
7.4.60.0240.00916.19
7.4.50.0260.00716.13
7.4.40.0270.00316.13
7.4.30.0330.00016.13
7.4.20.0260.00716.13
7.4.10.0290.00016.13
7.4.00.0260.00016.13
7.3.330.0140.00416.13
7.3.320.0240.00816.13
7.3.310.0280.00416.13
7.3.300.0320.00016.13
7.3.290.0250.00716.13
7.3.280.0240.00816.13
7.3.270.0290.00816.13
7.3.260.0530.00316.13
7.3.250.0300.00316.13
7.3.240.0290.00416.13
7.3.230.0290.00316.13
7.3.220.0300.00316.13
7.3.210.0300.00316.13
7.3.200.0270.00716.13
7.3.190.0290.00416.13
7.3.180.0250.00916.13
7.3.170.0170.01716.13
7.3.160.0330.00016.13
7.3.150.0230.01016.13
7.3.140.0270.00716.13
7.3.130.0230.01116.13
7.3.120.0230.00916.13
7.3.110.0280.00416.13
7.3.100.0270.00416.13
7.3.90.0260.00616.19
7.3.80.0150.00816.13
7.3.70.0000.01516.13
7.3.60.0240.00316.14
7.3.50.0110.01116.13
7.3.40.0120.00616.13
7.3.30.0240.00816.13
7.3.20.0360.00017.92
7.3.10.0250.00417.93
7.3.00.0150.01817.73
7.2.340.0270.00416.21
7.2.330.0240.00716.13
7.2.320.0240.00716.13
7.2.310.0240.00816.13
7.2.300.0190.01216.13
7.2.290.0210.01016.13
7.2.280.0240.01416.13
7.2.270.0380.00416.13
7.2.260.0240.00816.13
7.2.250.0250.00616.13
7.2.240.0210.01016.13
7.2.230.0250.00716.13
7.2.220.0220.01116.13
7.2.210.0230.01016.16
7.2.200.0180.01416.32
7.2.190.0180.01116.13
7.2.180.0220.00416.13
7.2.170.0290.00016.13
7.2.160.0240.00816.27
7.2.150.0270.00617.78
7.2.140.0240.00817.96
7.2.130.0210.01117.97
7.2.120.0260.00618.12
7.2.110.0260.00917.97
7.2.100.0280.00417.96
7.2.90.0280.00417.83
7.2.80.0240.00718.00
7.2.70.0320.00418.16
7.2.60.0050.00917.88
7.2.50.0170.00318.24
7.2.40.0060.01318.16
7.2.30.0290.00717.92
7.2.20.0190.01218.00
7.2.10.0250.00918.24
7.2.00.0220.00617.95
7.1.330.0260.00717.02
7.1.320.0200.00616.93
7.1.310.0170.00816.91
7.1.300.0210.00317.05
7.1.290.0190.01116.76
7.1.280.0290.00417.13
7.1.270.0300.00016.88
7.1.260.0230.00517.06
7.1.250.0250.00316.68
7.1.240.0180.01116.97
7.1.230.0250.00417.23
7.1.220.0150.00616.89
7.1.210.0260.00317.02
7.1.200.0250.00416.93
7.1.190.0310.00016.86
7.1.180.0260.00316.93
7.1.170.0210.00816.94
7.1.160.0250.00316.83
7.1.150.0250.00616.83
7.1.140.0290.00016.88
7.1.130.0230.01016.97
7.1.120.0220.00016.78
7.1.110.0090.00417.09
7.1.100.0360.00016.65
7.1.90.0310.00616.90
7.1.80.0180.01116.74
7.1.70.0250.00616.67
7.1.60.0250.00417.16
7.1.50.0120.01716.99
7.1.40.0210.00916.90
7.1.30.0320.00016.70
7.1.20.0250.00616.68
7.1.10.0240.00416.84
7.1.00.0320.00016.73
7.0.330.0210.00916.57
7.0.320.0270.00316.55
7.0.310.0220.00616.82
7.0.300.0190.00816.59
7.0.290.0160.01216.55
7.0.280.0200.00716.52
7.0.270.0260.00416.34
7.0.260.0240.00316.84
7.0.250.0330.00016.83
7.0.240.0240.00716.64
7.0.230.0250.00316.88
7.0.220.0200.01016.59
7.0.210.0210.00716.82
7.0.200.0200.00816.70
7.0.190.0190.00816.68
7.0.180.0180.00916.81
7.0.170.0190.01016.78
7.0.160.0200.00816.77
7.0.150.0210.00916.55
7.0.140.0200.01016.83
7.0.130.0250.00316.61
7.0.120.0230.00516.51
7.0.110.0170.01016.77
7.0.100.0220.00616.78
7.0.90.0240.00416.65
7.0.80.0220.00616.18
7.0.70.0260.00316.52
7.0.60.0210.00616.44
7.0.50.0240.00316.54
7.0.40.0220.00616.59
7.0.30.0300.00616.71
7.0.20.0280.00416.44
7.0.10.0260.00316.42
7.0.00.0180.01216.32
5.6.400.0290.00016.13
5.6.390.0230.00916.13
5.6.380.0320.00016.13
5.6.370.0200.00916.13
5.6.360.0180.01116.13
5.6.350.0220.00716.13
5.6.340.0160.01016.13
5.6.330.0190.00916.13
5.6.320.0230.00616.13
5.6.310.0220.00616.13
5.6.300.0180.01016.13
5.6.290.0190.01116.13
5.6.280.0210.00716.13
5.6.270.0220.00716.13
5.6.260.0260.00416.13
5.6.250.0300.00416.13
5.6.240.0200.01016.13
5.6.230.0190.01016.13
5.6.220.0140.01416.13
5.6.210.0230.01016.13
5.6.200.0200.01016.13
5.6.190.0210.00716.13
5.6.180.0250.00416.13
5.6.170.0160.01316.13
5.6.160.0140.01416.13
5.6.150.0260.00316.13
5.6.140.0180.01116.13
5.6.130.0350.00616.13
5.6.120.0210.00716.13
5.6.110.0130.01716.13
5.6.100.0160.01316.13
5.6.90.0210.00716.13
5.6.80.0180.01116.13
5.6.70.0170.01016.13
5.6.60.0240.00316.13
5.6.50.0210.00716.13
5.6.40.0200.00816.13
5.6.30.0280.00016.13
5.6.20.0160.01216.13
5.6.10.0210.00716.13
5.6.00.0100.01716.13
5.5.380.0140.01416.13
5.5.370.0190.00916.13
5.5.360.0280.00016.13
5.5.350.0300.00016.13
5.5.340.0160.01316.13
5.5.330.0270.00316.13
5.5.320.0190.01016.13
5.5.310.0180.01116.13
5.5.300.0200.00816.13
5.5.290.0160.01216.13
5.5.280.0220.00616.13
5.5.270.0190.00916.13
5.5.260.0250.00316.13
5.5.250.0170.00916.13
5.5.240.0210.00716.13
5.5.230.0180.00916.13
5.5.220.0230.01216.13
5.5.210.0250.01016.13
5.5.200.0200.00716.13
5.5.190.0210.00316.13
5.5.180.0210.00416.13
5.5.170.0210.00616.13
5.5.160.0170.00916.13
5.5.150.0240.00316.13
5.5.140.0170.01016.13
5.5.130.0260.00316.13
5.5.120.0240.00316.13
5.5.110.0140.01416.13
5.5.100.0240.00316.13
5.5.90.0210.00916.13
5.5.80.0300.00016.13
5.5.70.0200.00816.13
5.5.60.0260.00316.13
5.5.50.0200.00816.13
5.5.40.0250.00616.13
5.5.30.0240.00416.13
5.5.20.0180.00916.13
5.5.10.0220.00516.13
5.5.00.0250.00316.13
5.4.450.0080.01216.13
5.4.440.0160.00416.13
5.4.430.0120.00616.13
5.4.420.0160.00616.13
5.4.410.0150.00716.13
5.4.400.0190.00316.13
5.4.390.0140.00716.13
5.4.380.0150.00616.13
5.4.370.0170.00616.13
5.4.360.0180.00616.13
5.4.350.0150.00716.13
5.4.340.0170.00616.13
5.4.330.0190.00416.13
5.4.320.0190.00416.13
5.4.310.0170.00616.13
5.4.300.0170.00616.13
5.4.290.0190.00316.13
5.4.280.0160.00616.13
5.4.270.0180.00416.13
5.4.260.0190.00316.13
5.4.250.0160.00616.13
5.4.240.0100.01016.13
5.4.230.0190.00416.13
5.4.220.0190.00316.13
5.4.210.0160.00816.13
5.4.200.0200.00016.13
5.4.190.0200.00016.13
5.4.180.0100.00716.13
5.4.170.0060.00316.13
5.4.160.0070.00416.13
5.4.150.0110.00416.13
5.4.140.0090.00016.13
5.4.130.0220.00016.13
5.4.120.0150.00616.13
5.4.110.0160.00416.13
5.4.100.0170.00316.13
5.4.90.0180.00616.13
5.4.80.0210.00016.13
5.4.70.0130.00716.13
5.4.60.0250.00416.13
5.4.50.0190.00316.13
5.4.40.0210.00416.13
5.4.30.0220.00316.13
5.4.20.0180.00016.13
5.4.10.0180.00416.13
5.4.00.0120.00916.13
5.3.290.0120.00916.13
5.3.280.0190.00316.13
5.3.270.0140.00816.13
5.3.260.0150.00716.13
5.3.250.0160.00616.13
5.3.240.0180.00316.13
5.3.230.0180.00016.13
5.3.220.0220.00016.13
5.3.210.0140.00816.13
5.3.200.0210.00016.13
5.3.190.0110.01116.13
5.3.180.0170.00616.13
5.3.170.0190.00416.13
5.3.160.0160.00616.13
5.3.150.0150.00716.13
5.3.140.0170.00616.13
5.3.130.0140.00716.13
5.3.120.0190.00316.13
5.3.110.0180.00416.13
5.3.100.0160.00416.13
5.3.90.0170.00416.13
5.3.80.0210.00016.13
5.3.70.0210.00016.13
5.3.60.0180.00316.13
5.3.50.0140.00716.13
5.3.40.0170.00416.13
5.3.30.0140.00716.13
5.3.20.0160.00516.13
5.3.10.0120.01616.13
5.3.00.0130.00616.13
5.2.170.0150.00216.13
5.2.160.0130.00516.13
5.2.150.0100.00716.13
5.2.140.0110.00716.13
5.2.130.0090.00916.13
5.2.120.0090.00916.13
5.2.110.0130.00516.13
5.2.100.0110.00716.13
5.2.90.0150.00316.13
5.2.80.0140.00316.13
5.2.70.0150.00316.13
5.2.60.0110.00716.13
5.2.50.0140.00316.13
5.2.40.0140.00416.13
5.2.30.0090.00916.13
5.2.20.0090.00816.13
5.2.10.0130.00416.13
5.2.00.0130.00416.13
5.1.60.0150.00016.13
5.1.50.0160.00016.13
5.1.40.0120.00316.13
5.1.30.0160.00316.13
5.1.20.0170.00016.13
5.1.10.0150.00016.13
5.1.00.0120.00316.13
5.0.50.0080.00516.13
5.0.40.0080.00516.13
5.0.30.0070.00716.13
5.0.20.0130.00016.13
5.0.10.0130.00016.13
5.0.00.0070.00716.13
4.4.90.0050.00316.13
4.4.80.0070.00016.13
4.4.70.0040.00416.13
4.4.60.0060.00216.13
4.4.50.0080.00016.13
4.4.40.0040.00416.13
4.4.30.0060.00316.13
4.4.20.0100.00016.13
4.4.10.0100.00016.13
4.4.00.0080.00016.13
4.3.110.0080.00016.13
4.3.100.0060.00216.13
4.3.90.0070.00016.13
4.3.80.0040.00416.13
4.3.70.0080.00016.13
4.3.60.0020.00516.13
4.3.50.0070.00016.13
4.3.40.0080.00016.13
4.3.30.0060.00016.13
4.3.20.0040.00216.13
4.3.10.0060.00016.13
4.3.00.0000.00616.13

preferences:
33.2 ms | 403 KiB | 5 Q