3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static $data = ['a']; static function getData() { return self::$data; } } class B extends A { static $data = ['b']; static function getData() { return array_merge(parent::getData(), self::$data); } } class C extends B { static $data = ['c']; static function getData() { return array_merge(parent::getData(), self::$data); } } class D extends B { static $data = ['d']; static function getData() { return array_merge(parent::getData(), self::$data); } } $a = new A; $b = new B; $c = new C; $d = new D; var_dump($a::getData()); // Array('a'); var_dump($b::getData()); // Array('a', 'b'); var_dump($c::getData()); // Array('a', 'b', 'c'); var_dump($d::getData()); // Array('a', 'b', 'd');

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.10.0110.00720.09
8.5.00.0100.01020.20
8.4.160.0100.01122.41
8.4.150.0020.00014.05
8.4.140.0150.00617.46
8.4.130.0140.00717.70
8.4.120.0130.01020.21
8.4.110.0100.01022.50
8.4.100.0080.00917.79
8.4.90.0110.00718.57
8.4.80.0070.00617.61
8.4.70.0080.00417.79
8.4.60.0110.00918.55
8.4.50.0130.00819.47
8.4.40.0050.01017.63
8.4.30.0120.00619.70
8.4.20.0170.00317.59
8.4.10.0140.00717.46
8.3.290.0120.01220.93
8.3.280.0120.01818.43
8.3.270.0050.00316.77
8.3.260.0110.00916.57
8.3.250.0110.00718.68
8.3.240.0120.00816.27
8.3.230.0100.00816.42
8.3.220.0050.00517.09
8.3.210.0120.00816.66
8.3.200.0030.00616.49
8.3.190.0050.00417.07
8.3.180.0130.00616.27
8.3.170.0060.00618.81
8.3.160.0040.00416.59
8.3.150.0140.00418.98
8.3.140.0030.00618.91
8.3.130.0070.01018.40
8.3.120.0000.00920.69
8.3.110.0060.00320.94
8.3.100.0000.00816.50
8.3.90.0130.00618.16
8.3.80.0040.00418.55
8.3.70.0100.00316.38
8.3.60.0180.00416.75
8.3.50.0190.00521.93
8.3.40.0070.00718.68
8.3.30.0040.01119.14
8.3.20.0000.00820.33
8.3.10.0060.00321.89
8.3.00.0100.00019.38
8.2.300.0140.00522.07
8.2.290.0090.00920.50
8.2.280.0040.00420.07
8.2.270.0130.00617.23
8.2.260.0040.00418.92
8.2.250.0000.00816.66
8.2.240.0060.00318.84
8.2.230.0070.00422.58
8.2.220.0060.00324.06
8.2.210.0070.01126.77
8.2.200.0000.00916.63
8.2.190.0060.00916.85
8.2.180.0090.00918.54
8.2.170.0110.00422.96
8.2.160.0130.00320.32
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0030.00520.82
8.2.110.0040.00421.04
8.2.100.0040.00817.47
8.2.90.0000.00720.59
8.2.80.0000.00820.49
8.2.70.0050.00317.63
8.2.60.0000.00817.50
8.2.50.0000.00817.55
8.2.40.0030.00619.78
8.2.30.0040.00418.00
8.2.20.0030.00517.59
8.2.10.0000.00817.96
8.2.00.0050.00218.02
8.1.330.0050.00620.30
8.1.320.0120.00816.11
8.1.310.0150.00316.66
8.1.300.0090.00916.41
8.1.290.0040.00418.88
8.1.280.0120.00325.92
8.1.270.0100.00023.99
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0040.00422.20
8.1.230.0070.00420.85
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0040.00417.35
8.1.190.0000.00717.22
8.1.180.0060.00318.10
8.1.170.0040.00417.62
8.1.160.0040.00421.93
8.1.150.0090.00018.77
8.1.140.0040.00417.34
8.1.130.0030.00517.58
8.1.120.0000.00717.47
8.1.110.0000.00717.45
8.1.100.0040.00417.35
8.1.90.0070.00017.45
8.1.80.0000.00817.35
8.1.70.0020.00517.43
8.1.60.0060.00317.63
8.1.50.0030.00517.43
8.1.40.0040.00417.60
8.1.30.0080.00017.74
8.1.20.0050.00317.67
8.1.10.0000.00817.67
8.1.00.0000.00717.46
8.0.300.0040.00420.16
8.0.290.0040.00416.58
8.0.280.0030.00518.32
8.0.270.0000.00717.12
8.0.260.0030.00317.27
8.0.250.0070.00016.93
8.0.240.0060.00316.93
8.0.230.0040.00416.92
8.0.220.0000.00716.87
8.0.210.0070.00016.74
8.0.200.0000.00616.90
8.0.190.0000.00716.98
8.0.180.0000.00716.91
8.0.170.0060.00316.69
8.0.160.0000.00716.76
8.0.150.0030.00516.74
8.0.140.0090.00016.79
8.0.130.0060.00013.24
8.0.120.0040.00416.80
8.0.110.0000.00716.70
8.0.100.0040.00416.63
8.0.90.0050.00216.79
8.0.80.0090.00916.88
8.0.70.0030.00316.91
8.0.60.0060.00316.90
8.0.50.0060.00316.89
8.0.30.0110.00817.09
8.0.20.0150.00517.40
8.0.10.0000.00916.89
8.0.00.0100.00716.99
7.4.330.0000.00515.04
7.4.320.0000.00716.57
7.4.300.0040.00416.54
7.4.290.0000.00716.53
7.4.280.0070.00016.42
7.4.270.0070.00016.48
7.4.260.0030.00516.38
7.4.250.0030.00316.39
7.4.240.0040.00416.58
7.4.230.0030.00316.43
7.4.220.0100.00716.62
7.4.210.0070.00916.56
7.4.200.0050.00216.64
7.4.160.0130.00616.31
7.4.150.0110.01117.40
7.4.140.0150.00517.86
7.4.130.0160.00616.50
7.4.120.0060.01116.65
7.4.110.0090.00916.59
7.4.100.0170.00816.59
7.4.90.0030.01616.70
7.4.80.0100.00719.39
7.4.70.0060.01216.41
7.4.60.0090.00616.44
7.4.50.0090.00016.51
7.4.40.0160.00616.37
7.4.30.0160.00616.47
7.4.00.0040.01014.87
7.3.330.0000.00513.41
7.3.320.0030.00313.35
7.3.310.0030.00316.27
7.3.300.0040.00416.36
7.3.290.0000.00716.26
7.3.280.0080.00916.40
7.3.270.0040.01417.40
7.3.260.0120.00616.43
7.3.240.0090.00916.38
7.3.230.0130.00416.47
7.3.210.0110.00516.67
7.3.200.0120.01519.39
7.3.190.0060.01316.49
7.3.180.0130.00316.48
7.3.170.0070.01616.55
7.3.160.0110.00816.38
7.3.120.0060.01314.88
7.3.110.0030.01514.75
7.3.100.0080.00814.49
7.3.90.0030.00714.86
7.3.80.0060.00314.75
7.3.70.0030.01014.79
7.3.60.0040.00914.98
7.3.50.0060.00614.80
7.3.40.0030.01214.86
7.3.30.0000.01014.80
7.3.20.0140.00016.79
7.3.10.0090.00516.61
7.3.00.0060.00716.56
7.2.330.0120.00616.41
7.2.320.0090.01316.79
7.2.310.0130.01016.69
7.2.300.0050.01116.59
7.2.290.0140.01016.37
7.2.250.0060.01014.84
7.2.240.0000.01714.68
7.2.230.0060.01015.13
7.2.220.0040.00815.34
7.2.210.0040.01115.15
7.2.200.0030.01515.14
7.2.190.0060.00614.99
7.2.180.0030.01015.19
7.2.170.0100.00914.87
7.2.130.0050.00816.60
7.2.120.0060.00416.83
7.2.110.0060.00616.62
7.2.100.0020.01116.62
7.2.90.0140.00416.71
7.2.80.0090.00416.69
7.2.70.0000.01516.66
7.2.60.0050.00716.79
7.2.50.0040.00916.81
7.2.40.0070.00816.53
7.2.30.0050.00716.63
7.2.20.0080.00816.76
7.2.10.0080.00816.79
7.2.00.0040.00817.78
7.1.330.0070.00715.78
7.1.320.0060.00315.90
7.1.310.0030.01215.86
7.1.300.0000.00815.66
7.1.290.0110.00315.43
7.1.280.0070.00715.50
7.1.270.0100.00415.50
7.1.260.0070.00715.82
7.1.250.0000.01015.38
7.1.200.0040.00415.89
7.1.100.0360.01817.89
7.1.70.0000.01116.96
7.1.60.0090.01519.59
7.1.50.0060.00616.91
7.1.00.0030.07022.51
7.0.200.0000.00816.82
7.0.60.0070.06719.93
7.0.50.0100.05017.93
7.0.40.0000.07719.96
7.0.30.0230.04320.27
7.0.20.0230.05020.22
7.0.10.0030.07320.10
7.0.00.0130.07320.07
5.6.280.0070.07021.11
5.6.210.0100.07320.48
5.6.200.0030.06018.16
5.6.190.0100.06020.41
5.6.180.0100.04720.67
5.6.170.0200.05720.46
5.6.160.0130.07720.57
5.6.150.0100.04718.27
5.6.140.0100.08318.23
5.6.130.0130.06718.29
5.6.120.0030.08721.05
5.6.110.0200.06720.96
5.6.100.0070.08021.00
5.6.90.0100.07721.02
5.6.80.0130.03320.41
5.5.350.0270.05320.34
5.5.340.0000.04317.98
5.5.330.0070.08020.27
5.5.320.0130.04020.35
5.5.310.0270.04320.41
5.5.300.0070.08017.98
5.5.290.0070.07018.07
5.5.280.0100.06020.97
5.5.270.0000.07020.81
5.5.260.0100.05720.80
5.5.250.0170.05720.67
5.5.240.0000.06720.27
5.4.450.0830.03719.32
5.4.440.0430.07019.45
5.4.430.1030.00019.62
5.4.420.1030.00019.61
5.4.410.1030.00019.40
5.4.400.1130.00019.03
5.4.390.1130.00019.06
5.4.380.1130.00019.20
5.4.370.1130.00019.06
5.4.360.1130.00018.88
5.4.350.1130.00019.03
5.4.340.1200.00019.19
5.4.320.1170.00019.22
5.4.310.1170.00019.07
5.4.300.1000.00019.22
5.4.290.1000.00019.32
5.4.280.1030.00018.86
5.4.270.1000.00019.09
5.4.260.0970.00019.09
5.4.250.1000.00019.17
5.4.240.1200.00019.21
5.4.230.1000.00019.20
5.4.220.1030.00018.92
5.4.210.1170.00019.29
5.4.200.1070.00016.64
5.4.190.1000.00019.11
5.4.180.1000.00019.06
5.4.170.1200.00019.17
5.4.160.1230.00019.28
5.4.150.1130.00018.96
5.4.140.1070.00016.41
5.4.130.0970.00016.53
5.4.120.0970.00016.40
5.4.110.0930.00016.30
5.4.100.0970.00016.64
5.4.90.0970.00016.46
5.4.80.1100.00016.47
5.4.70.1130.00016.46
5.4.60.1200.00016.43
5.4.50.1230.00016.23
5.4.40.1200.00016.43
5.4.30.1100.00016.38
5.4.20.1200.00016.43
5.4.10.1100.00016.41
5.4.00.1070.00016.01
5.3.290.1170.00014.71
5.3.280.1100.00014.53
5.3.270.1130.00014.58
5.3.260.1170.00014.71
5.3.250.1100.00014.63
5.3.240.1130.00014.71
5.3.230.1100.00014.45
5.3.220.1130.00014.59
5.3.210.1130.00014.62
5.3.200.0970.00014.57
5.3.190.0970.00014.49
5.3.180.0970.00014.57
5.3.170.0970.00014.54
5.3.160.1000.00014.64
5.3.150.1000.00014.48
5.3.140.1200.00014.56
5.3.130.1200.00014.44
5.3.120.1000.00014.46
5.3.110.1200.00014.65
5.3.100.1100.00014.08
5.3.90.1100.00013.98
5.3.80.1070.00014.00
5.3.70.1200.00013.92
5.3.60.1070.00013.91
5.3.50.1300.00013.95
5.3.40.1100.00014.09
5.3.30.1100.00013.76
5.3.20.1070.00013.75
5.3.10.1100.00013.57
5.3.00.1100.00013.54
5.2.170.0930.00011.25
5.2.160.0930.00011.14
5.2.150.0930.00011.30
5.2.140.1170.00011.30
5.2.130.0900.00011.00
5.2.120.0930.00011.08
5.2.110.0900.00011.20
5.2.100.0900.00011.01
5.2.90.0930.00011.24
5.2.80.0800.00011.25
5.2.70.0770.00011.00
5.2.60.0970.00011.01
5.2.50.0900.00011.16
5.2.40.0800.00010.95
5.2.30.0800.00010.91
5.2.20.0830.00010.91
5.2.10.0800.00010.86
5.2.00.0730.00010.70
5.1.60.0630.00010.07
5.1.50.0730.0009.88
5.1.40.0770.0009.95
5.1.30.0770.00010.23
5.1.20.0800.00010.33
5.1.10.0770.0009.99
5.1.00.0870.0009.99
5.0.50.0530.0008.70
5.0.40.0470.0008.40
5.0.30.0630.0008.14
5.0.20.0500.0008.24
5.0.10.0430.0008.08
5.0.00.0570.0008.15
4.4.90.0430.0005.94
4.4.80.0370.0005.77
4.4.70.0400.0005.85
4.4.60.0370.0005.83
4.4.50.0370.0005.91
4.4.40.0470.0005.86
4.4.30.0370.0005.77
4.4.20.0370.0005.88
4.4.10.0370.0005.83
4.4.00.0570.0005.93
4.3.110.0430.0005.76
4.3.100.0430.0005.77
4.3.90.0430.0005.79
4.3.80.0530.0005.75
4.3.70.0400.0005.80
4.3.60.0400.0005.74
4.3.50.0400.0005.78
4.3.40.0530.0005.72
4.3.30.0370.0004.52
4.3.20.0370.0004.53
4.3.10.0330.0004.51
4.3.00.0000.01715.44

preferences:
135.39 ms | 403 KiB | 5 Q