3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Grandparent{ protected static $data = array( 'default', ); protected static function filter(){ var_dump(self::$data); } } class ParentClass extends Grandparent{ protected static $data = array( 'one', 'two', ); } class Child extends ParentClass{ } child::filter();

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.0100.01016.75
8.3.50.0100.00621.14
8.3.40.0110.00718.82
8.3.30.0060.00919.09
8.3.20.0000.00820.34
8.3.10.0040.00423.54
8.3.00.0090.00318.76
8.2.180.0070.01416.50
8.2.170.0150.00422.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0050.00319.36
8.2.110.0040.00422.22
8.2.100.0080.00417.78
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0080.00017.93
8.2.50.0030.00618.07
8.2.40.0000.00919.76
8.2.30.0060.00318.19
8.2.20.0040.00417.59
8.2.10.0040.00417.94
8.2.00.0000.00919.48
8.1.280.0100.00325.92
8.1.270.0040.00423.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.91
8.1.230.0100.00319.21
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0080.00317.35
8.1.190.0000.00817.25
8.1.180.0000.00818.10
8.1.170.0030.00518.25
8.1.160.0000.00721.86
8.1.150.0050.00218.50
8.1.140.0000.00717.23
8.1.130.0030.00317.71
8.1.120.0040.00317.24
8.1.110.0000.00817.36
8.1.100.0000.00717.35
8.1.90.0000.00717.38
8.1.80.0040.00417.25
8.1.70.0000.00717.30
8.1.60.0000.00817.46
8.1.50.0040.00417.38
8.1.40.0050.00217.48
8.1.30.0080.00017.47
8.1.20.0040.00417.54
8.1.10.0040.00417.49
8.1.00.0000.01117.46
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0040.00418.30
8.0.270.0040.00417.11
8.0.260.0030.00317.15
8.0.250.0000.00716.96
8.0.240.0040.00416.88
8.0.230.0000.00716.97
8.0.220.0030.00316.79
8.0.210.0000.00716.85
8.0.200.0050.00216.98
8.0.190.0040.00416.93
8.0.180.0050.00316.87
8.0.170.0000.00816.93
8.0.160.0000.00816.91
8.0.150.0040.00716.82
8.0.140.0000.00816.86
8.0.130.0060.00313.34
8.0.120.0040.00416.83
8.0.110.0030.00516.94
8.0.100.0030.00616.71
8.0.90.0000.00816.79
8.0.80.0080.00816.85
8.0.70.0040.00416.87
8.0.60.0040.00416.76
8.0.50.0040.00416.74
8.0.30.0100.01017.12
8.0.20.0110.01217.40
8.0.10.0040.00416.90
8.0.00.0130.01016.59
7.4.330.0000.00515.00
7.4.320.0030.00316.48
7.4.300.0030.00316.51
7.4.290.0000.00616.45
7.4.280.0000.00616.41
7.4.270.0000.00816.39
7.4.260.0050.00516.32
7.4.250.0040.00416.29
7.4.240.0050.00216.43
7.4.230.0030.00316.56
7.4.220.0120.00616.58
7.4.210.0000.01416.48
7.4.200.0040.00316.26
7.4.160.0060.01216.48
7.4.150.0110.00717.40
7.4.140.0120.00517.86
7.4.130.0140.00616.47
7.4.120.0110.00916.46
7.4.110.0110.00716.63
7.4.100.0070.01116.77
7.4.90.0030.01816.41
7.4.80.0000.02319.39
7.4.70.0150.00816.46
7.4.60.0120.00616.34
7.4.50.0050.00016.43
7.4.40.0100.00616.43
7.4.30.0030.01316.62
7.4.00.0060.01214.81
7.3.330.0020.00213.25
7.3.320.0020.00213.11
7.3.310.0070.00016.24
7.3.300.0030.00316.11
7.3.290.0070.01316.32
7.3.280.0080.00816.26
7.3.270.0070.01617.40
7.3.260.0150.00316.52
7.3.250.0160.00116.41
7.3.240.0120.00616.34
7.3.230.0070.01016.39
7.3.210.0070.01516.37
7.3.200.0060.01419.39
7.3.190.0060.00916.40
7.3.180.0110.00716.26
7.3.170.0060.00916.59
7.3.160.0130.00316.34
7.3.120.0110.00714.93
7.3.110.0100.00714.76
7.3.100.0050.00814.82
7.3.90.0070.00514.88
7.3.80.0050.00814.67
7.3.70.0070.00814.78
7.3.60.0070.00614.79
7.3.50.0030.00814.60
7.3.40.0030.01014.75
7.3.30.0060.00714.70
7.3.20.0050.00716.50
7.3.10.0060.00716.63
7.3.00.0050.01016.45
7.2.330.0180.00416.59
7.2.320.0080.00816.52
7.2.310.0170.00016.33
7.2.300.0030.01416.65
7.2.290.0090.00916.45
7.2.250.0140.00514.71
7.2.240.0100.00914.74
7.2.230.0030.01014.84
7.2.220.0040.01014.85
7.2.210.0030.01314.77
7.2.200.0060.01014.94
7.2.190.0090.00614.86
7.2.180.0010.01114.87
7.2.170.0100.00514.79
7.2.160.0030.00714.66
7.2.150.0070.00316.81
7.2.140.0040.01416.55
7.2.130.0080.01016.68
7.2.120.0090.00416.57
7.2.110.0100.00516.52
7.2.100.0070.00716.51
7.2.90.0050.01216.44
7.2.80.0130.00616.71
7.2.70.0110.00716.69
7.2.60.0070.00516.67
7.2.50.0020.01216.61
7.2.40.0030.00916.70
7.2.30.0060.00816.57
7.2.20.0050.01016.75
7.2.10.0040.00816.55
7.2.00.0050.00917.57
7.1.330.0020.01415.47
7.1.320.0060.00615.59
7.1.310.0040.00915.66
7.1.300.0080.00515.63
7.1.290.0020.01115.57
7.1.280.0040.00715.54
7.1.270.0090.00415.61
7.1.260.0030.00915.52
7.1.250.0050.00815.43
7.1.200.0040.00815.53
7.1.100.0060.00618.09
7.1.70.0040.00416.73
7.1.60.0030.01419.70
7.1.50.0160.01616.76
7.1.00.0070.07322.35
7.0.200.0080.00316.55
7.0.140.0030.06722.18
7.0.60.0070.03720.08
7.0.50.0100.07717.85
7.0.40.0070.05020.04
7.0.30.0170.04020.16
7.0.20.0300.06020.20
7.0.10.0300.07320.06
7.0.00.0070.04020.33
5.6.210.0130.07320.71
5.6.200.0100.07718.22
5.6.190.0070.09020.43
5.6.180.0000.07020.64
5.6.170.0230.08320.50
5.6.160.0030.04720.46
5.6.150.0070.04018.17
5.6.140.0030.04018.18
5.6.130.0170.07018.18
5.6.120.0030.04321.10
5.6.110.0000.09021.11
5.6.100.0100.07720.97
5.6.90.0100.08321.00
5.6.80.0170.07320.50
5.6.70.0330.07020.35
5.5.350.0030.08320.34
5.5.340.0030.04018.02
5.5.330.0070.05320.13
5.5.320.0270.08720.30
5.5.310.0330.07020.37
5.5.300.0100.03317.92
5.5.290.0100.08017.97
5.5.280.0030.04320.80
5.5.270.0070.06320.79
5.5.260.0070.07720.89
5.5.250.0170.06320.46
5.5.240.0200.06320.17
5.4.450.0330.05037.18
5.4.440.0130.04733.66
5.4.430.0170.05733.62
5.4.420.0630.03733.61
5.4.410.0230.03731.27
5.4.400.0170.03731.27
5.4.390.0530.04331.25
5.4.380.0170.05718.72
5.4.370.0130.05318.62
5.4.360.0200.06018.75
5.4.350.0170.06018.74
5.4.340.0200.04718.77
5.4.320.0100.04112.50
5.4.310.0040.03812.50
5.4.300.0090.04612.50
5.4.290.0080.04212.50
5.4.280.0060.03512.40
5.4.270.0030.04012.40
5.4.260.0110.03812.40
5.4.250.0080.04212.39
5.4.240.0050.03612.39
5.4.230.0130.03212.39
5.4.220.0100.03812.39
5.4.210.0050.03612.39
5.4.200.0080.04212.39
5.4.190.0070.03812.38
5.4.180.0090.03712.38
5.4.170.0070.04012.39
5.4.160.0060.03612.39
5.4.150.0030.03812.38
5.4.140.0070.03512.07
5.4.130.0060.03612.06
5.4.120.0060.03512.02
5.4.110.0040.03712.01
5.4.100.0040.03612.01
5.4.90.0050.03712.01
5.4.80.0090.03312.01
5.4.70.0050.03512.01
5.4.60.0050.03612.01
5.4.50.0030.04012.00
5.4.40.0070.03312.00
5.4.30.0050.03611.99
5.4.20.0070.03411.99
5.4.10.0060.03811.99
5.4.00.0070.03411.49
5.3.290.0060.04212.80
5.3.280.0020.04112.71
5.3.270.0070.04012.72
5.3.260.0060.03812.72
5.3.250.0060.04312.72
5.3.240.0020.04012.72
5.3.230.0050.04512.71
5.3.220.0050.04112.68
5.3.210.0080.04012.68
5.3.200.0050.03712.68
5.3.190.0090.03712.68
5.3.180.0070.03712.67
5.3.170.0060.03812.67
5.3.160.0060.03612.68
5.3.150.0040.03912.67
5.3.140.0060.03612.66
5.3.130.0080.03612.66
5.3.120.0070.04212.66
5.3.110.0060.03912.66
5.3.100.0060.03612.12
5.3.90.0070.03512.11
5.3.80.0070.04012.09
5.3.70.0070.04612.10
5.3.60.0070.03512.08
5.3.50.0050.03612.02
5.3.40.0060.04212.02
5.3.30.0070.03711.98
5.3.20.0110.03411.77
5.3.10.0040.03611.73
5.3.00.0070.04211.72
5.2.170.0040.0319.23
5.2.160.0050.0329.22
5.2.150.0060.0319.22
5.2.140.0040.0319.22
5.2.130.0060.0359.18
5.2.120.0030.0309.18
5.2.110.0050.0299.19
5.2.100.0030.0309.18
5.2.90.0020.0319.18
5.2.80.0030.0339.18
5.2.70.0050.0309.17
5.2.60.0040.0309.13
5.2.50.0050.0299.10
5.2.40.0070.0349.07
5.2.30.0020.0329.05
5.2.20.0040.0289.04
5.2.10.0050.0268.95
5.2.00.0050.0288.81
5.1.60.0020.0278.09
5.1.50.0050.0288.09
5.1.40.0060.0238.07
5.1.30.0050.0318.42
5.1.20.0030.0288.44
5.1.10.0060.0248.17
5.1.00.0010.0288.17
5.0.50.0060.0176.64
5.0.40.0070.0166.50
5.0.30.0040.0306.32
5.0.20.0040.0196.28
5.0.10.0060.0186.26
5.0.00.0030.0316.25
4.4.90.0030.0164.78
4.4.80.0050.0144.75
4.4.70.0030.0164.76
4.4.60.0030.0164.75
4.4.50.0040.0144.77
4.4.40.0020.0274.71
4.4.30.0020.0254.76
4.4.20.0000.0204.85
4.4.10.0020.0164.85
4.4.00.0030.0244.76
4.3.110.0030.0154.67
4.3.100.0020.0154.66
4.3.90.0040.0134.63
4.3.80.0040.0234.59
4.3.70.0020.0154.63
4.3.60.0030.0144.63
4.3.50.0040.0144.63
4.3.40.0030.0234.54
4.3.30.0020.0163.30
4.3.20.0010.0173.28
4.3.10.0010.0163.24
4.3.00.0000.02030.96

preferences:
42.5 ms | 401 KiB | 5 Q