3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Grandparent{ protected static $data = array( 'default', ); public 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.0130.00316.38
8.3.50.0110.00821.09
8.3.40.0110.00718.59
8.3.30.0070.00718.89
8.3.20.0070.00020.16
8.3.10.0080.00023.61
8.3.00.0120.00018.96
8.2.180.0130.01016.32
8.2.170.0110.00722.96
8.2.160.0100.00320.39
8.2.150.0070.00024.18
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00019.26
8.2.110.0110.00622.12
8.2.100.0060.00617.75
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0060.00317.47
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0000.00919.95
8.2.30.0020.00518.06
8.2.20.0030.00517.60
8.2.10.0040.00418.05
8.2.00.0040.00419.31
8.1.280.0120.00625.92
8.1.270.0070.00423.96
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0070.01423.99
8.1.230.0070.00419.00
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0040.00418.45
8.1.160.0050.00521.95
8.1.150.0000.00718.40
8.1.140.0080.00017.32
8.1.130.0000.00717.63
8.1.120.0040.00417.40
8.1.110.0000.00717.29
8.1.100.0000.00717.34
8.1.90.0000.00717.35
8.1.80.0040.00417.35
8.1.70.0000.00817.17
8.1.60.0040.00417.50
8.1.50.0060.00317.41
8.1.40.0040.00417.46
8.1.30.0040.00417.49
8.1.20.0070.00017.55
8.1.10.0030.00517.50
8.1.00.0110.00017.46
8.0.300.0000.00718.77
8.0.290.0000.00716.58
8.0.280.0070.00018.29
8.0.270.0050.00317.13
8.0.260.0030.00317.14
8.0.250.0070.00016.82
8.0.240.0030.00316.80
8.0.230.0040.00416.86
8.0.220.0070.00016.75
8.0.210.0000.00816.80
8.0.200.0030.00316.77
8.0.190.0080.00016.89
8.0.180.0000.00916.75
8.0.170.0000.00816.84
8.0.160.0040.00416.86
8.0.150.0040.00416.83
8.0.140.0000.00716.73
8.0.130.0060.00313.23
8.0.120.0040.00416.63
8.0.110.0000.00716.74
8.0.100.0070.00016.88
8.0.90.0040.00416.54
8.0.80.0090.00616.74
8.0.70.0050.00316.79
8.0.60.0000.00716.77
8.0.50.0000.00816.76
8.0.30.0060.01217.05
8.0.20.0140.00517.40
8.0.10.0000.00716.95
8.0.00.0140.00716.81
7.4.330.0060.00015.02
7.4.320.0060.00016.50
7.4.300.0060.00016.54
7.4.290.0070.00016.48
7.4.280.0030.00316.44
7.4.270.0070.00016.54
7.4.260.0000.00716.43
7.4.250.0000.00816.39
7.4.240.0050.00216.41
7.4.230.0040.00416.58
7.4.220.0130.01016.48
7.4.210.0090.01016.34
7.4.200.0070.00016.63
7.4.160.0100.00716.47
7.4.150.0140.00317.40
7.4.140.0070.01317.86
7.4.130.0050.01316.55
7.4.120.0110.00916.44
7.4.110.0090.00916.22
7.4.100.0070.01016.61
7.4.90.0150.00316.47
7.4.80.0120.00619.39
7.4.70.0090.00616.47
7.4.60.0070.01016.45
7.4.50.0030.00316.26
7.4.40.0080.01416.55
7.4.30.0030.01216.55
7.4.00.0090.00814.76
7.3.330.0000.00513.23
7.3.320.0020.00213.14
7.3.310.0050.00216.16
7.3.300.0070.00016.19
7.3.290.0100.00316.30
7.3.280.0090.00916.33
7.3.270.0100.00717.40
7.3.260.0100.01416.24
7.3.250.0070.01116.31
7.3.240.0040.01516.21
7.3.230.0100.00716.47
7.3.210.0140.00316.37
7.3.200.0160.00319.39
7.3.190.0180.00016.48
7.3.180.0120.00316.37
7.3.170.0160.00016.39
7.3.160.0070.00716.50
7.3.120.0050.01114.77
7.3.110.0090.00614.71
7.3.100.0030.01014.72
7.3.90.0090.00614.64
7.3.80.0070.00714.31
7.3.70.0060.01014.38
7.3.60.0060.00814.64
7.3.50.0040.01114.52
7.3.40.0040.00814.71
7.3.30.0000.01414.52
7.3.20.0100.00616.57
7.3.10.0110.00416.48
7.3.00.0030.00716.75
7.2.330.0120.00616.53
7.2.320.0110.00616.59
7.2.310.0120.00616.64
7.2.300.0100.00616.59
7.2.290.0080.01516.23
7.2.250.0140.00414.63
7.2.240.0040.01114.83
7.2.230.0110.00414.60
7.2.220.0040.01114.41
7.2.210.0060.01014.92
7.2.200.0000.01414.63
7.2.190.0030.01315.06
7.2.180.0100.00714.95
7.2.170.0100.00714.80
7.2.00.0060.00919.43
7.1.330.0070.00715.70
7.1.320.0090.00615.69
7.1.310.0040.01415.85
7.1.300.0070.00715.48
7.1.290.0070.00315.64
7.1.280.0060.01015.31
7.1.270.0060.00615.41
7.1.260.0060.00315.88
7.1.100.0040.01118.00
7.1.70.0050.00317.14
7.1.60.0100.01019.70
7.1.50.0160.01316.80
7.1.00.0100.07022.37
7.0.200.0030.00716.66
7.0.140.0000.07321.95
7.0.60.0030.05719.87
7.0.50.0030.07017.94
7.0.40.0100.06320.17
7.0.30.0570.06320.24
7.0.20.0200.03720.10
7.0.10.0100.08320.09
7.0.00.0070.08020.07
5.6.280.0000.07721.11
5.6.210.0070.07320.50
5.6.200.0070.05318.14
5.6.190.0230.07020.48
5.6.180.3170.04720.33
5.6.170.0300.07320.43
5.6.160.0130.06320.46
5.6.150.0100.04718.16
5.6.140.0100.03318.17
5.6.130.0030.08318.28
5.6.120.0430.03321.02
5.6.110.0100.04720.98
5.6.100.0100.06320.98
5.6.90.0100.08020.93
5.6.80.0070.06320.41
5.6.70.0330.05720.53
5.5.350.0330.07320.50
5.5.340.0070.08017.96
5.5.330.0130.07320.43
5.5.320.0300.04320.46
5.5.310.0300.07320.30
5.5.300.0070.08717.95
5.5.290.0030.07017.95
5.5.280.0170.07720.80
5.5.270.0100.03720.86
5.5.260.0170.06720.79
5.5.250.0100.06720.58
5.5.240.0330.06720.24
5.4.450.1030.07319.02
5.4.440.1130.05719.44
5.4.430.0100.07719.38
5.4.420.0930.06319.54
5.4.410.1230.05019.09
5.4.400.1030.05018.84
5.4.390.0970.06719.16
5.4.380.0170.05718.68
5.4.370.0170.06018.73
5.4.360.0170.07018.78
5.4.350.0270.05018.68
5.4.340.0170.06018.71
5.4.320.0070.03412.51
5.4.310.0120.03812.50
5.4.300.0040.03712.51
5.4.290.0060.03712.49
5.4.280.0060.03512.40
5.4.270.0040.03812.40
5.4.260.0090.03412.39
5.4.250.0070.03612.39
5.4.240.0060.03812.39
5.4.230.0050.03712.39
5.4.220.0040.03712.39
5.4.210.0080.03212.39
5.4.200.0050.03812.39
5.4.190.0110.03612.39
5.4.180.0080.03912.38
5.4.170.0080.03712.39
5.4.160.0070.03512.39
5.4.150.0070.03512.39
5.4.140.0060.03712.07
5.4.130.0060.03512.05
5.4.120.0040.04212.01
5.4.110.0080.03812.01
5.4.100.0080.03712.01
5.4.90.0080.03712.01
5.4.80.0050.04012.01
5.4.70.0070.03812.01
5.4.60.0080.03212.01
5.4.50.0090.03912.01
5.4.40.0060.03511.99
5.4.30.0080.03412.00
5.4.20.0080.03312.00
5.4.10.0060.03512.00
5.4.00.0060.03511.48
5.3.290.0030.04312.80
5.3.280.0100.03812.71
5.3.270.0090.03912.73
5.3.260.0080.03712.71
5.3.250.0130.05012.72
5.3.240.0090.03312.72
5.3.230.0070.03812.71
5.3.220.0070.03612.68
5.3.210.0050.04212.68
5.3.200.0050.03712.68
5.3.190.0060.03812.68
5.3.180.0100.03212.68
5.3.170.0050.03612.67
5.3.160.0060.03712.68
5.3.150.0070.03612.67
5.3.140.0070.03712.66
5.3.130.0100.03412.66
5.3.120.0060.03912.66
5.3.110.0040.04012.66
5.3.100.0100.04512.11
5.3.90.0080.03612.10
5.3.80.0080.03512.09
5.3.70.0090.04012.09
5.3.60.0090.03812.09
5.3.50.0080.03812.02
5.3.40.0090.03812.02
5.3.30.0070.03411.98
5.3.20.0030.03811.77
5.3.10.0070.03311.73
5.3.00.0020.04011.71
5.2.170.0040.0329.22
5.2.160.0060.0279.22
5.2.150.0020.0339.22
5.2.140.0070.0329.22
5.2.130.0070.0299.18
5.2.120.0070.0299.18
5.2.110.0040.0299.18
5.2.100.0040.0299.18
5.2.90.0030.0319.18
5.2.80.0050.0309.17
5.2.70.0030.0319.17
5.2.60.0050.0299.13
5.2.50.0040.0339.09
5.2.40.0040.0299.07
5.2.30.0060.0299.05
5.2.20.0030.0319.04
5.2.10.0040.0408.94
5.2.00.0060.0268.80
5.1.60.0060.0228.09
5.1.50.0060.0258.09
5.1.40.0070.0218.07
5.1.30.0050.0248.41
5.1.20.0060.0248.43
5.1.10.0070.0238.16
5.1.00.0060.0298.16
5.0.50.0050.0246.64
5.0.40.0040.0196.50
5.0.30.0020.0336.31
5.0.20.0020.0216.28
5.0.10.0030.0206.26
5.0.00.0040.0306.25
4.4.90.0010.0174.78
4.4.80.0030.0154.76
4.4.70.0030.0154.75
4.4.60.0020.0184.75
4.4.50.0030.0174.77
4.4.40.0020.0254.71
4.4.30.0030.0154.76
4.4.20.0040.0174.84
4.4.10.0030.0154.85
4.4.00.0020.0264.75
4.3.110.0010.0174.67
4.3.100.0020.0154.67
4.3.90.0020.0214.64
4.3.80.0020.0264.58
4.3.70.0040.0174.63
4.3.60.0020.0214.63
4.3.50.0030.0164.63
4.3.40.0020.0244.54
4.3.30.0020.0223.30
4.3.20.0030.0193.28
4.3.10.0010.0163.24
4.3.00.0170.0206.97

preferences:
42.15 ms | 401 KiB | 5 Q