3v4l.org

run code in 300+ PHP versions simultaneously
<?php class cA { /** * Test property for using direct default value */ protected static $item = 'Foo'; /** * Test property for using indirect default value */ protected static $other = 'cA'; public static function method() { print self::$item."\r\n"; // It prints 'Foo' on everyway... :( print self::$other."\r\n"; // We just think that, this one prints 'cA' only, but... :) } public static function setOther($val) { self::$other = $val; // Set a value in this scope. } } class cB extends cA { /** * Test property with redefined default value */ protected static $item = 'mesh';protected static $other = 'ani'; public static function method() { print self::$item."\r\n"; // It prints 'Foo' on everyway... :( print self::$other."\r\n"; // We just think that, this one prints 'cA' only, but... :) } public static function method_set() { self::$other = "mesh"; self::$item = "ani"; } } //cB::setOther('cB'); // It's cB::method()! cB::method_set(); cB::method(); // It's cA::method()!

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.0070.01418.43
8.3.50.0140.00321.14
8.3.40.0030.01018.85
8.3.30.0130.00320.15
8.3.20.0030.00620.58
8.3.10.0080.00020.95
8.3.00.0040.00423.50
8.2.180.0100.01016.59
8.2.170.0100.01022.96
8.2.160.0030.01220.57
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00721.05
8.2.110.0070.00319.08
8.2.100.0080.00417.72
8.2.90.0050.00219.26
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0030.00519.95
8.2.30.0050.00219.31
8.2.20.0040.00417.71
8.2.10.0040.00417.49
8.2.00.0030.00517.68
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0030.00723.79
8.1.230.0000.01120.85
8.1.220.0080.00018.77
8.1.210.0000.00719.23
8.1.200.0060.00317.35
8.1.190.0040.00417.53
8.1.180.0080.00018.10
8.1.170.0000.00818.66
8.1.160.0000.00718.79
8.1.150.0040.00418.57
8.1.140.0030.00617.49
8.1.130.0070.00017.86
8.1.120.0040.00417.50
8.1.110.0060.00317.37
8.1.100.0040.00417.36
8.1.90.0070.00017.38
8.1.80.0070.00017.47
8.1.70.0040.00417.41
8.1.60.0000.01117.56
8.1.50.0040.00417.38
8.1.40.0000.00817.51
8.1.30.0030.00617.64
8.1.20.0090.00017.54
8.1.10.0000.00717.57
8.1.00.0000.00717.39
8.0.300.0080.00019.90
8.0.290.0040.00417.04
8.0.280.0040.00418.40
8.0.270.0000.00717.25
8.0.260.0030.00616.73
8.0.250.0050.00216.94
8.0.240.0060.00316.96
8.0.230.0000.00716.92
8.0.220.0030.00316.91
8.0.210.0000.00616.86
8.0.200.0060.00016.84
8.0.190.0000.00816.95
8.0.180.0030.00316.79
8.0.170.0030.00316.82
8.0.160.0000.00716.83
8.0.150.0030.00316.80
8.0.140.0070.00016.78
8.0.130.0040.00413.36
8.0.120.0070.00016.88
8.0.110.0070.00016.78
8.0.100.0080.00016.93
8.0.90.0000.00716.93
8.0.80.0060.00916.85
8.0.70.0000.00816.84
8.0.60.0050.00216.70
8.0.50.0000.00716.77
8.0.30.0080.01117.13
8.0.20.0140.00317.40
8.0.10.0040.00416.77
8.0.00.0120.00716.90
7.4.330.0050.00015.11
7.4.320.0100.00016.39
7.4.300.0040.00416.36
7.4.290.0030.00316.49
7.4.280.0030.00316.64
7.4.270.0000.00616.61
7.4.260.0000.00513.17
7.4.250.0060.00316.42
7.4.240.0030.00316.49
7.4.230.0030.00316.38
7.4.220.0100.01016.49
7.4.210.0080.00916.52
7.4.200.0000.00716.58
7.4.190.0040.00416.43
7.4.160.0120.00416.66
7.4.150.0070.01017.40
7.4.140.0140.00717.86
7.4.130.0110.00916.54
7.4.120.0110.00916.47
7.4.110.0070.01016.59
7.4.100.0130.00816.56
7.4.90.0070.01016.69
7.4.80.0040.01519.39
7.4.70.0150.00316.54
7.4.60.0000.01816.57
7.4.50.0040.00416.55
7.4.40.0060.00622.77
7.4.30.0130.00316.54
7.4.10.0100.00614.55
7.4.00.0090.00714.79
7.3.330.0030.00313.16
7.3.320.0030.00313.32
7.3.310.0070.00016.20
7.3.300.0000.00616.31
7.3.290.0070.00616.29
7.3.280.0020.01216.22
7.3.270.0130.00417.40
7.3.260.0110.00918.24
7.3.250.0110.00816.33
7.3.240.0070.01016.22
7.3.230.0100.00616.51
7.3.210.0090.00616.60
7.3.200.0090.00819.39
7.3.190.0070.01016.15
7.3.180.0100.00716.50
7.3.170.0090.00616.53
7.3.160.0140.00316.30
7.3.130.0040.01414.71
7.3.120.0030.01214.80
7.3.110.0000.01614.94
7.3.100.0040.00714.59
7.3.90.0060.00614.97
7.3.80.0050.00514.78
7.3.70.0030.00714.77
7.3.60.0070.00714.44
7.3.50.0030.01014.45
7.3.40.0050.00314.85
7.3.30.0090.00614.48
7.3.20.0040.00416.79
7.3.10.0070.00316.64
7.3.00.0000.01216.25
7.2.330.0090.00916.70
7.2.320.0090.01416.71
7.2.310.0070.01716.64
7.2.300.0130.00416.75
7.2.290.0060.00916.38
7.2.260.0130.00615.01
7.2.250.0070.00714.86
7.2.240.0030.01015.20
7.2.230.0130.00314.71
7.2.220.0110.00715.24
7.2.210.0000.01514.87
7.2.200.0000.01315.04
7.2.190.0040.01114.91
7.2.180.0040.01214.99
7.2.170.0050.00515.17
7.2.160.0060.00914.94
7.2.150.0000.00917.07
7.2.140.0080.00816.90
7.2.130.0030.01016.67
7.2.120.0070.00716.93
7.2.110.0060.00617.05
7.2.100.0070.00716.92
7.2.90.0060.00916.98
7.2.80.0040.01116.98
7.2.70.0070.00716.88
7.2.60.0060.00616.99
7.2.50.0040.00716.67
7.2.40.0040.00717.11
7.2.30.0120.00616.90
7.2.20.0070.00716.91
7.2.10.0100.00316.69
7.2.00.0070.01018.06
7.1.330.0080.00815.64
7.1.320.0000.01215.57
7.1.310.0000.01215.91
7.1.300.0030.01015.79
7.1.290.0040.00415.48
7.1.280.0110.00015.72
7.1.270.0030.00715.57
7.1.260.0070.00715.70
7.1.250.0040.00715.75
7.1.240.0030.00615.82
7.1.230.0060.00615.55
7.1.220.0130.00015.85
7.1.210.0000.01315.65
7.1.200.0040.00715.46
7.1.190.0030.01015.49
7.1.180.0060.00915.63
7.1.170.0070.00715.69
7.1.160.0060.00615.84
7.1.150.0110.00315.66
7.1.140.0100.00315.81
7.1.130.0030.01015.80
7.1.120.0030.01015.93
7.1.110.0000.01215.59
7.1.100.0070.00416.76
7.1.90.0070.00715.47
7.1.80.0150.00015.90
7.1.70.0040.00616.33
7.1.60.0050.01217.29
7.1.50.0080.01016.12
7.1.40.0000.00915.62
7.1.30.0030.01015.67
7.1.20.0040.01115.89
7.1.10.0060.00315.82
7.1.00.0020.02119.00
7.0.330.0070.00415.38
7.0.320.0070.00715.26
7.0.310.0000.00815.38
7.0.300.0130.00015.33
7.0.290.0080.00615.43
7.0.280.0090.00615.11
7.0.270.0030.00715.14
7.0.260.0060.00815.41
7.0.250.0070.00715.43
7.0.240.0040.00415.50
7.0.230.0060.00615.19
7.0.220.0030.00915.57
7.0.210.0040.00715.53
7.0.200.0020.00715.95
7.0.190.0040.00415.44
7.0.180.0100.00315.27
7.0.170.0030.00715.50
7.0.160.0080.00415.45
7.0.150.0040.00415.19
7.0.140.0070.03518.73
7.0.130.0030.00715.16
7.0.120.0030.00715.50
7.0.110.0090.00015.34
7.0.100.0030.04517.56
7.0.90.0050.03017.68
7.0.80.0070.02617.69
7.0.70.0110.01817.76
7.0.60.0030.02917.66
7.0.50.0060.03617.76
7.0.40.0050.03516.75
7.0.30.0070.04216.77
7.0.20.0070.04716.62
7.0.10.0050.04316.81
7.0.00.0070.04716.66
5.6.400.0070.00714.26
5.6.390.0120.00314.32
5.6.380.0040.01213.99
5.6.370.0000.01114.22
5.6.360.0040.00414.47
5.6.350.0030.00614.07
5.6.340.0040.00414.48
5.6.330.0060.00314.28
5.6.320.0090.00614.65
5.6.310.0110.00414.46
5.6.300.0040.00714.31
5.6.290.0030.01014.48
5.6.280.0050.04017.79
5.6.270.0070.00714.19
5.6.260.0040.00814.39
5.6.250.0030.02817.47
5.6.240.0100.02617.52
5.6.230.0080.03717.72
5.6.220.0120.04017.48
5.6.210.0050.03517.53
5.6.200.0100.04017.71
5.6.190.0070.04517.74
5.6.180.0080.04317.69
5.6.170.0030.02617.66
5.6.160.0090.04717.76
5.6.150.0030.04517.71
5.6.140.0080.03817.87
5.6.130.0100.04217.72
5.6.120.0100.02317.65
5.6.110.0030.04117.69
5.6.100.0080.04717.74
5.6.90.0100.02017.73
5.6.80.0070.03317.14
5.6.70.0080.03517.48
5.6.60.0050.04517.39
5.6.50.0070.04517.38
5.6.40.0050.02817.37
5.6.30.0030.02517.35
5.6.20.0020.03917.47
5.6.10.0030.02817.39
5.6.00.0100.01817.28
5.5.380.0080.03117.41
5.5.370.0080.04217.38
5.5.360.0100.03817.46
5.5.350.0030.03517.17
5.5.340.0080.02117.56
5.5.330.0070.02417.55
5.5.320.0030.04217.45
5.5.310.0070.03817.63
5.5.300.0080.03817.46
5.5.290.0090.02717.45
5.5.280.0050.04617.50
5.5.270.0030.02517.53
5.5.260.0090.02317.57
5.5.250.0050.04217.33
5.5.240.0100.02517.24
5.5.230.0040.03417.26
5.5.220.0110.03017.24
5.5.210.0090.02417.28
5.5.200.0140.03817.20
5.5.190.0100.03317.28
5.5.180.0090.01817.14
5.5.170.0000.01314.11
5.5.160.0040.03317.14
5.5.150.0100.01817.16
5.5.140.0020.03517.20
5.5.130.0110.03317.32
5.5.120.0050.02317.13
5.5.110.0070.02017.16
5.5.100.0090.02017.03
5.5.90.0060.02917.10
5.5.80.0050.03817.15
5.5.70.0070.02917.09
5.5.60.0050.03217.15
5.5.50.0050.02517.22
5.5.40.0080.02517.21
5.5.30.0080.02717.08
5.5.20.0000.02917.24
5.5.10.0100.03717.17
5.5.00.0030.02417.00
5.4.450.0070.03615.59
5.4.440.0070.04115.43
5.4.430.0080.02715.59
5.4.420.0120.03215.52
5.4.410.0090.03715.43
5.4.400.0030.04315.28
5.4.390.0030.02615.40
5.4.380.0070.03815.33
5.4.370.0080.02215.36
5.4.360.0120.03015.43
5.4.350.0030.03915.38
5.4.340.0050.02115.29
5.4.330.0030.00811.63
5.4.320.0020.02215.39
5.4.310.0020.02415.25
5.4.300.0050.02215.38
5.4.290.0050.03315.38
5.4.280.0050.02915.43
5.4.270.0020.02315.39
5.4.260.0060.01815.40
5.4.250.0020.02415.34
5.4.240.0030.02115.34
5.4.230.0030.03115.33
5.4.220.0030.02415.38
5.4.210.0030.03015.33
5.4.200.0070.03915.33
5.4.190.0080.03315.39
5.4.180.0060.02515.39
5.4.170.0060.02115.41
5.4.160.0010.03115.32
5.4.150.0100.02515.39
5.4.140.0060.01814.01
5.4.130.0050.03513.89
5.4.120.0060.02313.97
5.4.110.0040.02714.08
5.4.100.0080.03614.00
5.4.90.0030.02614.02
5.4.80.0070.02414.00
5.4.70.0030.02314.09
5.4.60.0060.04014.06
5.4.50.0040.02213.94
5.4.40.0050.03914.06
5.4.30.0080.01813.94
5.4.20.0030.03314.06
5.4.10.0060.03614.03
5.4.00.0050.02513.71
5.3.290.0050.04213.39
5.3.280.0080.01813.39
5.3.270.0060.04313.39
5.3.260.0050.02213.39
5.3.250.0020.04113.39
5.3.240.0050.03813.39
5.3.230.0080.02013.39
5.3.220.0050.03213.39
5.3.210.0030.02313.39
5.3.200.0070.04413.39
5.3.190.0040.02013.39
5.3.180.0070.01813.39
5.3.170.0030.02313.39
5.3.160.0010.03613.39
5.3.150.0070.03213.39
5.3.140.0070.02713.39
5.3.130.0070.02713.39
5.3.120.0040.01713.39
5.3.110.0040.03913.39
5.3.100.0090.02213.39
5.3.90.0070.02413.39
5.3.80.0050.03313.39
5.3.70.0050.03513.39
5.3.60.0050.02713.39
5.3.50.0050.03713.39
5.3.40.0070.01713.39
5.3.30.0070.03113.39
5.3.20.0050.02713.39
5.3.10.0070.02513.39
5.3.00.0050.04313.39
5.2.170.0030.06015.15
5.2.160.0000.03315.15
5.2.150.0100.02315.15
5.2.140.0030.06015.15
5.2.130.0070.04715.15
5.2.120.0030.02315.15
5.2.110.0030.04015.15
5.2.100.0030.06315.15
5.2.90.0030.04715.15
5.2.80.0000.04315.15
5.2.70.0000.04715.15
5.2.60.0000.04315.15
5.2.50.0070.03015.15
5.2.40.0000.03015.15
5.2.30.0000.03015.15
5.2.20.0030.02715.15
5.2.10.0130.02015.15
5.2.00.0000.03015.15
5.1.60.0000.02315.15
5.1.50.0100.02715.15
5.1.40.0030.02315.15
5.1.30.0030.03015.15
5.1.20.0070.05315.15
5.1.10.0100.03315.15
5.1.00.0030.02315.15
5.0.50.0070.02315.15
5.0.40.0000.02315.15
5.0.30.0030.03715.15
5.0.20.0130.01315.15
5.0.10.0000.02015.15
5.0.00.0000.03015.15
4.4.90.0000.03715.15
4.4.80.0000.01715.15
4.4.70.0000.02015.15
4.4.60.0070.01015.15
4.4.50.0030.01315.15
4.4.40.0070.03715.15
4.4.30.0000.02315.15
4.4.20.0030.02315.15
4.4.10.0070.01715.15
4.4.00.0000.02315.15
4.3.110.0000.01715.15
4.3.100.0000.01715.15
4.3.90.0000.01715.15
4.3.80.0030.02315.15
4.3.70.0000.01715.15
4.3.60.0000.01315.15
4.3.50.0030.01315.15
4.3.40.0030.02015.15
4.3.30.0000.01715.15
4.3.20.0030.01315.15
4.3.10.0000.01715.15
4.3.00.0000.01315.15

preferences:
65.59 ms | 400 KiB | 5 Q