3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected function test() { } } class ChildA extends A { public function test($b) { } }

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.70.0070.00716.58
8.3.60.0120.00616.36
8.3.50.0110.00621.20
8.3.40.0120.00418.67
8.3.30.0130.00019.11
8.3.20.0080.00020.20
8.3.10.0080.00023.61
8.3.00.0080.00019.07
8.2.180.0060.00916.50
8.2.170.0090.00622.96
8.2.160.0160.00320.38
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0000.00820.91
8.2.110.0040.00422.11
8.2.100.0090.00319.45
8.2.90.0040.00419.11
8.2.80.0080.00017.97
8.2.70.0000.00817.38
8.2.60.0040.00417.92
8.2.50.0040.00418.07
8.2.40.0000.00819.95
8.2.30.0030.00518.21
8.2.20.0030.00517.54
8.2.10.0070.00017.83
8.2.00.0090.00017.56
8.1.280.0030.01025.92
8.1.270.0080.00023.99
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00923.80
8.1.230.0030.00719.07
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0080.00417.10
8.1.190.0060.00317.10
8.1.180.0070.00418.10
8.1.170.0040.00418.59
8.1.160.0040.00421.82
8.1.150.0030.00618.43
8.1.140.0040.00417.26
8.1.130.0040.00417.68
8.1.120.0000.00717.23
8.1.110.0070.00017.31
8.1.100.0080.00017.36
8.1.90.0040.00417.25
8.1.80.0000.00817.34
8.1.70.0050.00317.29
8.1.60.0030.00517.51
8.1.50.0000.01017.37
8.1.40.0000.00717.29
8.1.30.0040.00417.59
8.1.20.0030.00517.38
8.1.10.0040.00417.40
8.1.00.0030.00517.20
8.0.300.0040.00418.77
8.0.290.0020.00517.05
8.0.280.0000.00718.25
8.0.270.0000.00917.05
8.0.260.0000.00617.00
8.0.250.0030.00316.88
8.0.240.0040.00416.80
8.0.230.0070.00016.81
8.0.220.0000.00616.73
8.0.210.0030.00316.86
8.0.200.0050.00316.80
8.0.190.0040.00416.95
8.0.180.0040.00416.78
8.0.170.0030.00616.83
8.0.160.0030.00316.88
8.0.150.0050.00216.72
8.0.140.0040.00416.81
8.0.130.0030.00313.29
8.0.120.0080.00016.77
8.0.110.0000.00716.67
8.0.100.0000.00816.67
8.0.90.0030.00316.89
8.0.80.0100.01016.75
8.0.70.0080.00016.94
8.0.60.0070.00016.87
8.0.50.0000.00816.77
8.0.30.0070.01416.93
8.0.20.0150.00317.40
8.0.10.0040.00416.88
8.0.00.0050.01316.60
7.4.330.0030.00315.00
7.4.320.0000.00716.45
7.4.300.0000.00716.46
7.4.290.0000.00816.43
7.4.280.0000.00816.38
7.4.270.0050.00216.48
7.4.260.0030.00316.41
7.4.250.0000.00816.35
7.4.240.0040.00316.48
7.4.230.0000.00816.57
7.4.220.0070.01016.34
7.4.210.0080.01016.41
7.4.200.0070.00016.49
7.4.190.0000.00816.54
7.4.160.0220.00016.29
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0100.00816.48
7.4.120.0110.00616.33
7.4.110.0130.01016.43
7.4.100.0090.01316.53
7.4.90.0100.00616.35
7.4.80.0060.01419.39
7.4.70.0030.01316.49
7.4.60.0130.00916.50
7.4.50.0040.00416.23
7.4.40.0070.01516.27
7.4.30.0030.01316.45
7.4.00.0110.00414.64
7.3.330.0000.00613.16
7.3.320.0000.00513.26
7.3.310.0000.00716.27
7.3.300.0000.00716.16
7.3.290.0100.01016.21
7.3.280.0090.00816.20
7.3.270.0070.01317.40
7.3.260.0150.00316.12
7.3.250.0090.01116.39
7.3.240.0070.01016.23
7.3.230.0100.00716.39
7.3.210.0080.01116.24
7.3.200.0080.00819.39
7.3.190.0070.01316.53
7.3.180.0030.01316.10
7.3.170.0100.00616.27
7.3.160.0040.01116.19
7.3.120.0120.00414.66
7.2.330.0180.00316.54
7.2.320.0030.01516.44
7.2.310.0060.01616.36
7.2.300.0040.01716.43
7.2.290.0100.01016.47
7.2.60.0000.01416.80
7.2.00.0060.00619.28
7.1.200.0040.00815.52
7.1.100.0080.00817.77
7.1.70.0100.00316.91
7.1.60.0150.00919.46
7.1.50.0070.01716.95
7.1.00.0070.07322.48
7.0.200.0000.00816.34
7.0.140.0000.07721.95
7.0.60.0130.08019.80
7.0.50.0100.03317.88
7.0.40.0200.06720.21
7.0.30.0230.06020.07
7.0.20.0300.06020.09
7.0.10.0070.06020.30
7.0.00.0170.07320.23
5.6.280.0030.07321.10
5.6.210.0130.06020.62
5.6.200.0070.05718.22
5.6.190.0130.03720.48
5.6.180.0000.08320.63
5.6.170.0330.07320.51
5.6.160.0100.07320.44
5.6.150.0100.07018.16
5.6.140.0070.08318.24
5.6.130.0100.08018.28
5.6.120.0130.06721.13
5.6.110.0000.05320.96
5.6.100.0100.06320.97
5.6.90.0070.08720.95
5.6.80.0070.08020.51
5.5.350.0030.08020.36
5.5.340.0070.05717.98
5.5.330.0070.05320.47
5.5.320.0000.04320.28
5.5.310.0300.06720.37
5.5.300.0030.03717.96
5.5.290.0030.04017.95
5.5.280.0070.05320.68
5.5.270.0000.09320.87
5.5.260.0070.04020.97
5.5.250.0100.08020.71
5.5.240.0070.08020.16
5.4.450.3000.04019.41
5.4.440.3200.03719.41
5.4.430.3500.04319.52
5.4.420.3100.02719.19
5.4.410.3500.04719.30
5.4.400.3130.04318.99
5.4.390.3830.03718.86
5.4.380.3270.03319.05
5.4.370.3230.04319.18
5.4.360.2870.04019.08
5.4.350.3200.04019.21
5.4.340.3000.04018.87
5.4.320.3230.02718.95
5.4.310.3230.03719.21
5.4.300.3130.04319.20
5.4.290.3200.03719.01
5.4.280.2730.04019.29
5.4.270.3230.03319.08
5.4.260.3100.04018.94
5.4.250.3130.04019.05
5.4.240.3170.03719.07
5.4.230.0470.06019.14
5.4.220.0100.03719.15
5.4.210.0070.06018.94
5.4.200.0970.05319.20
5.4.190.3130.03719.04
5.4.180.3000.04018.93
5.4.170.3230.03719.28
5.4.160.3070.02719.13
5.4.150.3230.03319.08
5.4.140.3030.04016.37
5.4.130.2170.03016.43
5.4.120.0030.04016.44
5.4.110.0030.07316.30
5.4.100.2130.04716.56
5.4.90.3470.03316.29
5.4.80.3170.03716.59
5.4.70.3200.03016.59
5.4.60.3200.03016.51
5.4.50.3470.04016.52
5.4.40.3130.03716.38
5.4.30.1500.03716.52
5.4.20.0100.07316.26
5.4.10.0030.04316.16
5.4.00.3330.03715.78
5.3.290.3000.04014.73
5.3.280.3030.03714.57
5.3.270.3170.03014.52
5.3.260.3570.05014.59
5.3.250.2970.04014.58
5.3.240.3100.03714.51
5.3.230.0670.05314.52
5.3.220.0070.04014.49
5.3.210.0130.02714.65
5.3.200.2800.04314.68
5.3.190.3530.03714.46
5.3.180.3330.04014.57
5.3.170.3230.03714.64
5.3.160.3030.03714.64
5.3.150.3300.03014.64
5.3.140.3470.03014.48
5.3.130.3330.04314.54
5.3.120.2930.03714.60
5.3.110.3200.03714.55
5.3.100.3100.03714.04
5.3.90.3130.04013.91
5.3.80.3270.03314.13
5.3.70.3270.03314.09
5.3.60.2700.03314.23
5.3.50.0030.07714.10
5.3.40.0130.06313.96
5.3.30.1200.04013.82
5.3.20.3200.03313.60
5.3.10.3130.03713.55
5.3.00.3070.05013.61
5.2.170.2600.03711.07
5.2.160.2800.03711.29
5.2.150.2870.03011.07
5.2.140.2600.03311.20
5.2.130.2400.03011.25
5.2.120.2670.02311.33
5.2.110.2770.03011.01
5.2.100.2200.03011.18
5.2.90.2700.03011.02
5.2.80.2570.03711.02
5.2.70.2700.02711.22
5.2.60.2430.02711.12
5.2.50.2470.03010.97
5.2.40.2200.03310.95
5.2.30.2130.03010.88
5.2.20.2230.02711.07
5.2.10.2070.03010.98
5.2.00.2170.02710.86
5.1.60.1900.0279.93
5.1.50.2270.03010.00
5.1.40.2230.0309.87
5.1.30.2400.03010.57
5.1.20.1630.02710.46
5.1.10.2370.0279.96
5.1.00.1870.02310.23
5.0.50.1200.0208.50
5.0.40.1030.0138.42
5.0.30.0970.0338.31
5.0.20.1030.0178.28
5.0.10.1000.0208.22
5.0.00.1070.0378.14
4.4.90.1070.0137.72
4.4.80.1030.0137.72
4.4.70.1170.0137.72
4.4.60.0970.0177.72
4.4.50.0970.0207.72
4.4.40.1170.0237.72
4.4.30.0970.0177.72
4.4.20.1000.0137.72
4.4.10.1170.0207.72
4.4.00.1200.0307.72
4.3.110.0970.0177.72
4.3.100.1270.0177.72
4.3.90.1000.0177.72
4.3.80.1230.0207.72
4.3.70.1130.0177.72
4.3.60.1070.0177.72
4.3.50.0970.0177.72
4.3.40.1000.0237.72
4.3.30.0500.0137.72
4.3.20.0570.0207.72
4.3.10.0570.0207.72
4.3.00.0600.0137.72

preferences:
34.84 ms | 401 KiB | 5 Q