3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait ProtectedTestTrait { protected $test; } class ProtectedTestBase { use ProtectedTestTrait; } class ProtectedTestChild extends ProtectedTestBase { public function execute() { $this->test = 'blah'; } } $protectedChild = new ProtectedTestChild(); echo $protectedChild->execute(); var_dump($protectedChild);

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.0130.00616.75
8.3.50.0140.00716.30
8.3.40.0070.00718.85
8.3.30.0110.00318.59
8.3.20.0040.00420.63
8.3.10.0070.00021.76
8.3.00.0000.00819.53
8.2.180.0090.00916.35
8.2.170.0060.01622.96
8.2.160.0070.00720.26
8.2.150.0070.00025.66
8.2.140.0030.00624.66
8.2.130.0030.00520.43
8.2.120.0040.00426.35
8.2.110.0110.01119.30
8.2.100.0080.00417.72
8.2.90.0090.00018.02
8.2.80.0030.00518.03
8.2.70.0080.00017.93
8.2.60.0060.00318.09
8.2.50.0030.00518.10
8.2.40.0040.00422.16
8.2.30.0030.00521.14
8.2.20.0000.00718.12
8.2.10.0080.00017.94
8.2.00.0000.00818.04
8.1.280.0040.01125.92
8.1.270.0080.00022.19
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0090.00022.54
8.1.230.0000.01122.45
8.1.220.0040.00717.76
8.1.210.0040.00418.77
8.1.200.0000.00917.47
8.1.190.0060.00317.25
8.1.180.0040.00418.10
8.1.170.0030.00618.57
8.1.160.0030.00518.93
8.1.150.0000.00820.63
8.1.140.0000.01119.57
8.1.130.0000.00718.89
8.1.120.0030.00317.47
8.1.110.0000.00717.35
8.1.100.0040.00417.36
8.1.90.0050.00317.43
8.1.80.0100.00017.41
8.1.70.0070.00017.44
8.1.60.0040.00417.49
8.1.50.0000.00817.53
8.1.40.0040.00417.49
8.1.30.0070.00017.52
8.1.20.0040.00417.63
8.1.10.0060.00317.48
8.1.00.0000.00817.37
8.0.300.0000.00719.52
8.0.290.0000.00816.63
8.0.280.0030.00418.41
8.0.270.0040.00417.30
8.0.260.0030.00316.82
8.0.250.0000.00716.87
8.0.240.0040.00416.79
8.0.230.0000.00816.92
8.0.220.0000.00816.79
8.0.210.0000.00816.89
8.0.200.0050.00216.93
8.0.190.0080.00016.98
8.0.180.0000.00716.96
8.0.170.0050.00216.88
8.0.160.0040.00316.93
8.0.150.0030.00316.86
8.0.140.0030.00516.83
8.0.130.0060.00013.37
8.0.120.0000.00916.84
8.0.110.0040.00416.79
8.0.100.0040.00416.96
8.0.90.0040.00416.85
8.0.80.0100.01016.89
8.0.70.0040.00416.96
8.0.60.0000.00716.94
8.0.50.0000.00816.79
8.0.30.0080.00817.25
8.0.20.0150.01017.40
8.0.10.0040.00417.13
8.0.00.0090.01516.60
7.4.330.0000.00515.55
7.4.320.0030.00316.59
7.4.300.0060.00016.51
7.4.290.0060.00316.61
7.4.280.0000.00716.59
7.4.270.0040.00416.64
7.4.260.0000.00613.30
7.4.250.0000.00716.36
7.4.240.0000.00716.53
7.4.230.0070.00016.71
7.4.220.0150.01216.46
7.4.210.0130.00616.61
7.4.200.0060.00016.69
7.4.160.0090.00616.41
7.4.150.0070.01017.40
7.4.140.0120.00717.86
7.4.130.0200.00016.62
7.4.120.0100.01016.69
7.4.110.0150.00316.55
7.4.100.0100.00716.53
7.4.90.0100.00716.39
7.4.80.0060.01019.39
7.4.70.0110.00516.43
7.4.60.0030.01316.42
7.4.50.0070.00716.37
7.4.40.0160.00016.22
7.4.30.0120.00416.41
7.4.00.0070.01014.76
7.3.330.0050.00013.29
7.3.320.0060.00013.37
7.3.310.0070.00016.20
7.3.300.0030.00316.27
7.3.290.0100.00416.27
7.3.280.0080.00816.30
7.3.270.0060.01117.40
7.3.260.0110.00716.42
7.3.250.0110.01116.44
7.3.240.0110.00716.35
7.3.230.0090.00916.27
7.3.210.0030.01316.42
7.3.200.0030.01216.25
7.3.190.0080.00816.28
7.3.180.0070.01016.30
7.3.170.0030.01316.25
7.3.160.0100.00716.46
7.3.00.0030.01016.73
7.2.330.0090.00916.69
7.2.320.0070.01016.50
7.2.310.0100.01016.80
7.2.300.0120.00416.74
7.2.290.0070.01416.67
7.2.130.0040.01216.75
7.2.120.0000.01316.97
7.2.110.0060.00616.96
7.2.100.0060.00617.08
7.2.90.0040.00416.95
7.2.80.0090.00616.99
7.2.70.0060.00616.79
7.2.60.0050.00916.93
7.2.50.0060.00616.90
7.2.40.0030.01016.84
7.2.30.0040.01117.09
7.2.20.0040.01116.85
7.2.10.0070.01016.92
7.2.00.0080.00718.16
7.1.250.0140.00015.83
7.1.240.0070.00315.33
7.1.230.0140.00015.87
7.1.220.0060.00315.55
7.1.210.0000.01715.65
7.1.200.0040.00615.67
7.1.190.0040.00815.47
7.1.180.0030.00715.82
7.1.170.0070.00715.80
7.1.160.0150.00015.89
7.1.150.0060.00315.73
7.1.140.0110.00015.64
7.1.130.0060.00915.80
7.1.120.0060.00615.70
7.1.110.0060.00615.74
7.1.100.0020.01016.80
7.1.90.0060.00615.92
7.1.80.0060.00615.71
7.1.70.0060.00616.37
7.1.60.1500.01024.46
7.1.50.1370.01224.25
7.1.40.1650.00924.14
7.1.30.1470.01024.17
7.1.20.1000.01324.14
7.1.10.1100.01315.31
7.1.00.1120.00815.19
7.0.330.0040.00715.20
7.0.320.0030.01015.05
7.0.310.0030.00715.26
7.0.300.0090.00315.03
7.0.290.0090.00614.96
7.0.280.0060.00614.84
7.0.270.0000.00814.93
7.0.260.0080.00014.83
7.0.250.0000.00915.53
7.0.240.0070.00715.24
7.0.230.0000.00915.05
7.0.220.0100.00315.19
7.0.210.0030.00714.75
7.0.200.1960.00814.95
7.0.190.2290.01015.06
7.0.180.1220.01214.90
7.0.170.1940.00914.89
7.0.160.1670.01214.97
7.0.150.1030.00814.82
7.0.140.0830.01014.97
7.0.130.0920.00814.89
7.0.120.1070.01015.08
7.0.110.1060.01214.85
7.0.100.0930.01315.06
7.0.90.0970.00614.92
7.0.80.0750.01215.02
7.0.70.0720.01014.76
7.0.60.0920.01214.75
7.0.50.0930.01115.08
7.0.40.0820.01113.96
7.0.30.0680.00813.87
7.0.20.0920.00713.84
7.0.10.0800.00414.04
7.0.00.0850.00813.86
5.6.380.0070.00713.85

preferences:
43.71 ms | 401 KiB | 5 Q