3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ # ... properties & methods # then we have targetFunc() protected static function grandparentFn(){ // some action } } class B extends A{ protected static function parentFn(){ // some action } } class C extends B{ } //C::parentFn(); // it fails .... (expected, due to protected) C::grandparentFn(); // it works .... ????

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.30.0110.00719.38
8.5.20.0110.00919.58
8.5.10.0120.00616.64
8.5.00.0160.00520.14
8.4.180.0110.01119.72
8.4.170.0120.01120.54
8.4.160.0130.00923.84
8.4.150.0080.00416.95
8.4.140.0130.00717.67
8.4.130.0060.00620.50
8.4.120.0130.00624.33
8.4.110.0080.01118.65
8.4.100.0090.00819.00
8.4.90.0100.00920.65
8.4.80.0060.00318.63
8.4.70.0020.00719.53
8.4.60.0080.01218.82
8.4.50.0090.00920.42
8.4.40.0170.00317.75
8.4.30.0040.00420.35
8.4.20.0100.01020.57
8.4.10.0030.00619.80
8.3.300.0120.01020.75
8.3.290.0130.00820.82
8.3.280.0120.00720.66
8.3.270.0090.01016.56
8.3.260.0100.00616.52
8.3.250.0130.00518.58
8.3.240.0110.01016.85
8.3.230.0120.00816.54
8.3.220.0160.00319.10
8.3.210.0100.00816.49
8.3.200.0030.00616.52
8.3.190.0040.00517.14
8.3.180.0110.00716.68
8.3.170.0090.00917.07
8.3.160.0040.01418.52
8.3.150.0000.01620.49
8.3.140.0070.01117.22
8.3.130.0060.01218.37
8.3.120.0040.01118.54
8.3.110.0040.00416.63
8.3.100.0130.00618.54
8.3.90.0150.00418.29
8.3.80.0050.00518.55
8.3.70.0120.00316.75
8.3.60.0120.00618.40
8.3.50.0140.00217.50
8.3.40.0060.01218.60
8.3.30.0000.01418.79
8.3.20.0080.00020.90
8.3.10.0040.00423.71
8.3.00.0070.00020.77
8.2.300.0110.01021.91
8.2.290.0070.00820.24
8.2.280.0100.00918.53
8.2.270.0120.00617.12
8.2.260.0120.00616.57
8.2.250.0090.00018.69
8.2.240.0030.00618.75
8.2.230.0000.00820.94
8.2.220.0060.01324.06
8.2.210.0070.01026.77
8.2.200.0040.00418.54
8.2.190.0140.00718.42
8.2.180.0130.01016.63
8.2.170.0060.00919.02
8.2.160.0040.01122.96
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00417.97
8.2.120.0040.00426.35
8.2.110.0030.00620.50
8.2.100.0040.00717.72
8.2.90.0040.00417.75
8.2.80.0060.00317.97
8.2.70.0000.00817.91
8.2.60.0030.00519.82
8.2.50.0000.00818.10
8.2.40.0040.00419.12
8.2.30.0030.00519.19
8.2.20.0040.00417.86
8.2.10.0030.00619.18
8.2.00.0000.00918.22
8.1.340.0110.01017.69
8.1.330.0120.00721.77
8.1.320.0080.01116.31
8.1.310.0090.00918.41
8.1.300.0080.00820.18
8.1.290.0030.00618.88
8.1.280.0090.00625.92
8.1.270.0040.00420.37
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.84
8.1.230.0060.00620.87
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.13
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0060.00318.81
8.1.150.0000.00818.60
8.1.140.0070.00018.93
8.1.130.0070.00020.13
8.1.120.0030.00317.25
8.1.110.0030.00517.38
8.1.100.0070.00017.37
8.1.90.0040.00417.31
8.1.80.0040.00417.31
8.1.70.0030.00717.32
8.1.60.0040.00417.48
8.1.50.0060.00317.50
8.1.40.0040.00417.49
8.1.30.0060.00317.47
8.1.20.0040.00417.55
8.1.10.0000.00817.47
8.1.00.0040.00417.43
8.0.300.0000.00821.59
8.0.290.0080.00316.75
8.0.280.0070.00018.25
8.0.270.0030.00317.15
8.0.260.0100.00018.36
8.0.250.0070.00016.98
8.0.240.0030.00516.82
8.0.230.0040.00416.89
8.0.220.0000.00716.90
8.0.210.0040.00416.77
8.0.200.0000.00716.93
8.0.190.0020.00516.94
8.0.180.0060.00316.90
8.0.170.0040.00416.83
8.0.160.0070.00017.00
8.0.150.0030.00316.70
8.0.140.0000.00716.84
8.0.130.0060.00013.33
8.0.120.0050.00216.83
8.0.110.0000.00716.93
8.0.100.0040.00416.82
8.0.90.0000.00716.81
8.0.80.0050.01016.91
8.0.70.0050.00316.73
8.0.60.0000.00816.76
8.0.50.0040.00416.70
8.0.30.0120.00416.88
8.0.20.0080.01117.06
8.0.10.0040.00416.79
8.0.00.0150.00316.72
7.4.330.0040.00016.67
7.4.320.0000.00616.36
7.4.300.0050.00216.33
7.4.290.0000.00716.34
7.4.280.0040.00416.53
7.4.270.0080.00016.54
7.4.260.0000.00716.48
7.4.250.0070.00016.54
7.4.240.0000.00716.51
7.4.230.0070.00016.53
7.4.220.0040.00416.53
7.4.210.0090.00816.53
7.4.200.0070.00016.33
7.4.160.0090.00716.41
7.4.130.0070.01116.65
7.4.120.0120.00616.56
7.4.110.0140.00916.64
7.4.100.0180.00316.51
7.4.90.0160.00316.33
7.4.80.0100.01019.39
7.4.70.0090.01216.36
7.4.60.0110.00816.41
7.4.50.0060.00316.55
7.4.40.0100.00616.59
7.4.00.0070.01115.02
7.3.330.0000.00513.16
7.3.320.0000.00513.40
7.3.310.0070.00016.31
7.3.300.0030.00316.32
7.3.290.0020.00516.22
7.3.280.0110.01016.27
7.3.260.0100.00816.39
7.3.240.0080.00916.40
7.3.230.0030.01516.28
7.3.210.0100.00616.33
7.3.200.0070.01016.26
7.3.190.0180.00316.17
7.3.180.0120.00616.18
7.3.170.0030.01416.20
7.3.160.0080.00816.46
7.3.40.0060.00514.76
7.3.30.0090.00614.69
7.3.20.0030.01116.60
7.3.10.0030.01216.40
7.3.00.0080.00916.54
7.2.330.0130.00916.55
7.2.320.0100.00716.65
7.2.310.0030.01716.52
7.2.300.0100.01016.61
7.2.290.0110.01116.26
7.2.170.0110.00714.80
7.2.160.0090.01414.64
7.2.150.0090.00716.71
7.2.140.0110.00616.53
7.2.130.0100.00816.80
7.2.120.0090.00816.77
7.2.110.0090.00416.63
7.2.100.0070.00716.70
7.2.90.0090.00816.74
7.2.80.0100.00716.64
7.2.70.0080.00516.76
7.2.60.0090.00616.62
7.2.50.0080.00516.61
7.2.40.0080.00516.67
7.2.30.0050.00716.63
7.2.20.0080.00616.59
7.2.10.0130.00416.69
7.2.00.0030.01116.67
7.1.280.0000.01115.50
7.1.270.0070.00815.57
7.1.260.0110.00515.49
7.1.250.0060.00715.47
7.1.240.0150.00815.73
7.1.230.0140.01115.57
7.1.220.0160.00415.49
7.1.210.0120.00815.49
7.1.200.0150.00515.72
7.1.190.0160.01715.64
7.1.180.0120.00615.66
7.1.170.0250.00415.59
7.1.160.0180.00415.56
7.1.150.0100.01015.37
7.1.140.0190.00315.38
7.1.130.0150.00615.59
7.1.120.0210.00315.57
7.1.110.0130.00715.52
7.1.100.0200.00315.52
7.1.90.0110.01115.60
7.1.80.0140.01015.56
7.1.70.0140.00915.48
7.1.60.0090.00915.73
7.1.50.0200.01115.50
7.1.40.0090.01215.42
7.1.30.0180.00315.58
7.1.20.0190.00615.54
7.1.10.0140.01015.46
7.1.00.0270.00315.70
7.0.330.0170.00615.22
7.0.320.0120.00715.41
7.0.310.0090.01015.34
7.0.300.0160.00015.25
7.0.290.0120.01215.00
7.0.280.0090.01415.33
7.0.270.0160.00915.23
7.0.260.0140.00415.28
7.0.250.0160.00415.21
7.0.240.0160.00615.36
7.0.230.0160.00914.91
7.0.220.0120.00615.45
7.0.210.0170.01015.30
7.0.200.0170.01015.14
7.0.190.0240.00515.36
7.0.180.0170.00715.27
7.0.170.0240.00715.21
7.0.160.0240.00015.45
7.0.150.0140.01115.21
7.0.140.0150.01515.13
7.0.130.0220.00915.23
7.0.120.0200.01115.46
7.0.110.0170.00614.94
7.0.100.0230.00315.39
7.0.90.0180.00415.07
7.0.80.0180.00215.17
7.0.70.0200.00515.00
7.0.60.0140.01215.02
7.0.50.0130.01015.25
7.0.40.0210.00315.51
7.0.30.0100.01415.21
7.0.20.0210.00315.36
7.0.10.0140.00915.37
7.0.00.0070.01015.35
5.6.400.0160.01013.98
5.6.390.0100.02314.04
5.6.380.0150.00913.88
5.6.370.0110.00714.02
5.6.360.0110.00413.75
5.6.350.0100.00714.05
5.6.340.0140.00714.25
5.6.330.0080.01114.19
5.6.320.0160.00314.09
5.6.310.0120.00614.26
5.6.300.0120.00914.30
5.6.290.0190.01414.28
5.6.280.0120.01814.17
5.6.270.0100.01413.93
5.6.260.0100.01414.38
5.6.250.0120.01114.16
5.6.240.0140.01414.39
5.6.230.0180.00314.17
5.6.220.0000.01814.25
5.6.210.0150.00814.25
5.6.200.0120.00814.11
5.6.190.0080.01514.16
5.6.180.0170.01414.34
5.6.170.0220.00414.38
5.6.160.0120.01214.00
5.6.150.0040.02614.22
5.6.140.0180.01113.94
5.6.130.0110.01614.01
5.6.120.0180.00414.32
5.6.110.0170.00814.02
5.6.100.0210.00314.07
5.6.90.0140.00513.91
5.6.80.0070.01714.18
5.6.70.0160.01613.99
5.6.60.0100.01314.09
5.6.50.0040.01113.88
5.6.40.0210.01014.11
5.6.30.0140.01713.99
5.6.20.0070.01013.84
5.6.10.0150.00413.95
5.6.00.0130.00413.88
5.5.380.0230.01014.24
5.5.370.0090.01414.18
5.5.360.0160.00614.00
5.5.350.0140.01114.31
5.5.340.0210.01214.17
5.5.330.0160.00214.13
5.5.320.0150.01113.97
5.5.310.0170.00814.14
5.5.300.0060.01313.72
5.5.290.0150.01214.04
5.5.280.0180.00914.16
5.5.270.0100.02014.25
5.5.260.0100.01414.14
5.5.250.0160.00714.00
5.5.240.0110.01513.71
5.5.230.0090.00914.02
5.5.220.0050.01614.13
5.5.210.0150.01113.77
5.5.200.0120.00413.80
5.5.190.0150.00714.11
5.5.180.0140.01013.80
5.5.170.0120.01814.16
5.5.160.0200.00313.89
5.5.150.0140.00513.84
5.5.140.0080.01114.19
5.5.130.0040.02113.52
5.5.120.0160.00013.85
5.5.110.0170.01714.04
5.5.100.0150.00614.23
5.5.90.0140.01113.86
5.5.80.0200.00313.92
5.5.70.0090.01413.59
5.5.60.0080.01514.22
5.5.50.0090.00913.93
5.5.40.0080.00814.09
5.5.30.0090.00913.57
5.5.20.0150.00814.06
5.5.10.0090.00714.34
5.5.00.0160.01013.63
5.4.450.0150.00910.83
5.4.440.0130.01210.80
5.4.430.0170.00010.95
5.4.420.0130.00610.58
5.4.410.0080.00410.80
5.4.400.0090.00910.42
5.4.390.0080.00810.38
5.4.380.0080.00510.76
5.4.370.0140.01010.70
5.4.360.0090.00610.41
5.4.350.0150.00210.33
5.4.340.0180.00410.77
5.4.330.0030.00710.91
5.4.320.0060.00810.68
5.4.310.0110.00310.94
5.4.300.0140.00010.55
5.4.290.0140.00410.94
5.4.280.0090.00410.69
5.4.270.0060.00710.69
5.4.260.0040.01210.90
5.4.250.0150.00310.68
5.4.240.0140.00510.75
5.4.230.0060.00911.09
5.4.220.0130.00710.82
5.4.210.0060.00610.89
5.4.200.0180.00610.41
5.4.190.0090.00510.87
5.4.180.0160.00410.41
5.4.170.0120.00010.74
5.4.160.0190.00010.69
5.4.150.0090.00610.51
5.4.140.0100.00510.51
5.4.130.0090.00310.90
5.4.120.0110.00810.68
5.4.110.0190.00010.54
5.4.100.0110.00310.91
5.4.90.0150.00510.79
5.4.80.0070.01310.77
5.4.70.0090.00810.83
5.4.60.0080.00510.55
5.4.50.0150.01110.51
5.4.40.0120.00610.95
5.4.30.0110.00710.65
5.4.20.0150.01010.58
5.4.10.0150.00410.60
5.4.00.0110.00610.42
5.3.290.0140.00310.24
5.3.280.0130.00310.20
5.3.270.0070.00410.39
5.3.260.0190.00010.14
5.3.250.0080.00510.35
5.3.240.0110.01210.29
5.3.230.0090.00910.07
5.3.220.0120.00710.25
5.3.210.0090.00310.36
5.3.200.0100.00010.31
5.3.190.0170.00410.38
5.3.180.0100.00310.29
5.3.170.0040.00810.48
5.3.160.0060.01210.54
5.3.150.0070.01110.26
5.3.140.0040.00710.41
5.3.130.0160.00010.36
5.3.120.0000.01310.46
5.3.110.0050.00810.37
5.3.100.0050.01010.38
5.3.90.0120.00010.48
5.3.80.0070.00710.14
5.3.70.0140.01010.30
5.3.60.0140.00810.42
5.3.50.0100.00510.13
5.3.40.0090.00610.33
5.3.30.0120.00310.30
5.3.20.0070.01110.30
5.3.10.0050.00910.14
5.3.00.0140.0039.84
5.2.170.0110.0009.38
5.2.160.0060.0089.42
5.2.150.0050.0089.40
5.2.140.0120.0039.33
5.2.130.0080.0089.29
5.2.120.0140.0039.32
5.2.110.0130.0059.02
5.2.100.0060.0039.16
5.2.90.0080.0089.37
5.2.80.0040.0079.19
5.2.70.0050.0059.23
5.2.60.0090.0008.89
5.2.50.0110.0039.36
5.2.40.0120.0069.24
5.2.30.0060.0129.26
5.2.20.0060.0049.14
5.2.10.0080.0009.08
5.2.00.0040.0048.94
5.1.60.0100.0078.33
5.1.50.0050.0058.34
5.1.40.0100.0078.32
5.1.30.0150.0008.53
5.1.20.0060.0088.45
5.1.10.0040.0048.42
5.1.00.0050.0038.21
5.0.50.0050.0068.21
5.0.40.0040.0048.21
5.0.30.0070.0008.21
5.0.20.0120.0008.21
5.0.10.0060.0008.21
5.0.00.0000.0088.21
4.4.90.0030.0038.21
4.4.80.0050.0058.21
4.4.70.0030.0038.21
4.4.60.0060.0008.21
4.4.50.0060.0068.21
4.4.40.0080.0008.21
4.4.30.0040.0048.21
4.4.20.0050.0058.21
4.4.10.0100.0008.21
4.4.00.0080.0038.21
4.3.110.0000.0058.21
4.3.100.0060.0068.21
4.3.90.0070.0008.21
4.3.80.0070.0028.21
4.3.70.0060.0008.21
4.3.60.0060.0008.21
4.3.50.0050.0038.21
4.3.40.0040.0028.21
4.3.30.0040.0048.21
4.3.20.0000.0068.21
4.3.10.0000.0058.21
4.3.00.0030.0068.21

preferences:
63.23 ms | 2572 KiB | 5 Q