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 = 'Bar'; public static function setOther($val) { self::$other = $val; } } cB::setOther('cB'); // It's cB::method()! 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.70.0040.01116.75
8.3.60.0110.00418.43
8.3.50.0080.00522.04
8.3.40.0040.01118.71
8.3.30.0150.00019.22
8.3.20.0050.00220.39
8.3.10.0080.00021.92
8.3.00.0040.00422.46
8.2.180.0140.00016.50
8.2.170.0120.00422.96
8.2.160.0100.00319.21
8.2.150.0040.00424.18
8.2.140.0120.00624.66
8.2.130.0080.00026.16
8.2.120.0080.00019.24
8.2.110.0050.00522.21
8.2.100.0120.00019.64
8.2.90.0000.00819.22
8.2.80.0030.00518.04
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0030.00517.97
8.2.30.0040.00417.98
8.2.20.0000.00717.59
8.2.10.0000.00817.55
8.2.00.0060.00317.69
8.1.280.0140.00025.92
8.1.270.0030.00622.02
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.71
8.1.230.0070.00419.20
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0050.00317.52
8.1.180.0030.00518.71
8.1.170.0060.00318.64
8.1.160.0000.00721.98
8.1.150.0070.00018.61
8.1.140.0030.00617.51
8.1.130.0030.00317.76
8.1.120.0070.00017.50
8.1.110.0080.00017.46
8.1.100.0000.00717.38
8.1.90.0070.00017.47
8.1.80.0000.00717.36
8.1.70.0070.00017.47
8.1.60.0040.00417.50
8.1.50.0070.00017.52
8.1.40.0030.00617.52
8.1.30.0080.00017.66
8.1.20.0030.00517.55
8.1.10.0030.00517.54
8.1.00.0080.00017.47
8.0.300.0000.00718.77
8.0.290.0000.00717.18
8.0.280.0040.00418.46
8.0.270.0050.00217.27
8.0.260.0070.00016.71
8.0.250.0080.00017.00
8.0.240.0030.00316.93
8.0.230.0030.00616.88
8.0.220.0000.00716.90
8.0.210.0030.00316.82
8.0.200.0000.00716.96
8.0.190.0000.00717.01
8.0.180.0040.00416.97
8.0.170.0050.00216.88
8.0.160.0050.00216.79
8.0.150.0040.00416.89
8.0.140.0080.00016.85
8.0.130.0000.00513.38
8.0.120.0050.00316.80
8.0.110.0040.00416.91
8.0.100.0050.00216.80
8.0.90.0040.00416.78
8.0.80.0090.01016.79
8.0.70.0000.00816.90
8.0.60.0040.00416.96
8.0.50.0040.00416.86
8.0.30.0110.00716.98
8.0.20.0110.00917.44
8.0.10.0040.00416.82
8.0.00.0090.01016.88
7.4.330.0030.00315.07
7.4.320.0000.00716.32
7.4.300.0000.00716.64
7.4.290.0100.00016.64
7.4.280.0000.00716.52
7.4.270.0070.00016.52
7.4.260.0060.00316.57
7.4.250.0030.00516.55
7.4.240.0040.00416.56
7.4.230.0050.00316.52
7.4.220.0180.00716.51
7.4.210.0070.00916.50
7.4.200.0030.00316.72
7.4.190.0090.00016.66
7.4.160.0130.00316.52
7.4.150.0120.00617.40
7.4.140.0100.01017.86
7.4.130.0080.01316.59
7.4.120.0080.01016.50
7.4.110.0040.01416.48
7.4.100.0110.00516.62
7.4.90.0070.01016.59
7.4.80.0100.00619.39
7.4.70.0060.01316.46
7.4.60.0070.01416.51
7.4.50.0000.00716.51
7.4.40.0030.01322.77
7.4.30.0000.01616.57
7.4.00.0070.01014.80
7.3.330.0030.00313.19
7.3.320.0060.00013.39
7.3.310.0070.00016.32
7.3.300.0060.00016.28
7.3.290.0100.00316.38
7.3.280.0080.00716.39
7.3.270.0130.01017.40
7.3.260.0140.00916.58
7.3.250.0060.01116.58
7.3.240.0130.00516.32
7.3.230.0030.01416.46
7.3.210.0140.00316.31
7.3.200.0070.01019.39
7.3.190.0060.01116.32
7.3.180.0090.00616.63
7.3.170.0070.01016.42
7.3.160.0090.00616.37
7.3.120.0060.01214.64
7.3.110.0040.01214.72
7.3.100.0100.00314.83
7.3.90.0080.00414.77
7.3.80.0100.00314.85
7.3.70.0000.01814.80
7.3.60.0100.00314.60
7.3.50.0030.00714.57
7.3.40.0040.00714.57
7.3.30.0070.01014.66
7.3.20.0030.01016.82
7.3.10.0060.00716.74
7.3.00.0050.00516.52
7.2.330.0150.00216.56
7.2.320.0140.00516.66
7.2.310.0060.01016.80
7.2.300.0060.01316.70
7.2.290.0080.00916.36
7.2.240.0060.01015.22
7.2.230.0090.00615.16
7.2.220.0000.01814.76
7.2.210.0130.00315.25
7.2.200.0030.01214.75
7.2.190.0060.00615.06
7.2.180.0100.00314.97
7.2.170.0070.01115.13
7.2.160.0130.00714.62
7.2.150.0100.00717.09
7.2.140.0030.01016.93
7.2.130.0030.01016.85
7.2.120.0060.00816.79
7.2.110.0050.00616.71
7.2.100.0070.00616.90
7.2.90.0050.00716.76
7.2.80.0070.00616.82
7.2.70.0070.00716.89
7.2.60.0050.00717.05
7.2.50.0110.00416.79
7.2.40.0090.00516.81
7.2.30.0060.00616.73
7.2.20.0060.00616.88
7.2.10.0080.00216.66
7.2.00.0050.00516.97
7.1.330.0100.00715.78
7.1.320.0030.01015.74
7.1.310.0030.01015.71
7.1.300.0040.01115.79
7.1.290.0110.00415.85
7.1.280.0070.01115.60
7.1.270.0030.00515.61
7.1.260.0030.00615.82
7.1.250.0060.00815.62
7.1.70.0000.00717.22
7.1.60.0100.01419.82
7.1.50.0000.02417.00
7.1.00.0130.06322.48
7.0.200.0030.00316.46
7.0.140.0030.07322.01
7.0.110.0730.06020.08
7.0.100.0800.08319.93
7.0.90.0530.04320.04
7.0.80.0730.07020.04
7.0.70.0630.07719.89
7.0.60.0770.07020.03
7.0.50.0730.08320.03
7.0.40.0130.07319.74
7.0.30.0230.06719.72
7.0.20.0030.08019.84
7.0.10.0030.06719.85
7.0.00.0100.07719.81
5.6.280.0000.07720.82
5.6.260.0170.07320.70
5.6.250.0170.07320.66
5.6.240.0130.07720.56
5.6.230.0070.06720.86
5.6.220.0130.07320.55
5.6.210.0170.06020.68
5.6.200.0030.08320.71
5.6.190.0130.07720.69
5.6.180.0030.04720.70
5.6.170.0200.07020.65
5.6.160.0030.07020.56
5.6.150.0070.07720.66
5.6.140.0000.06020.61
5.6.130.0070.07720.64
5.6.120.0030.06720.64
5.6.110.0030.07320.64
5.6.100.0030.08720.67
5.6.90.0030.08020.55
5.6.80.0100.06319.98
5.6.70.0070.07720.23
5.6.60.0030.08020.02
5.6.50.0070.07720.01
5.6.40.0130.06319.98
5.6.30.0070.03719.98
5.6.20.0000.05719.95
5.6.10.0030.04719.91
5.6.00.0100.04019.92
5.5.380.0100.07320.36
5.5.370.0030.05020.25
5.5.360.0070.07720.51
5.5.350.0130.06720.46
5.5.340.0130.07020.97
5.5.330.0070.07320.99
5.5.320.0070.09020.79
5.5.310.0000.09321.02
5.5.300.0130.07020.72
5.5.290.0170.07020.99
5.5.280.0030.08320.95
5.5.270.0030.08020.74
5.5.260.0070.05021.00
5.5.250.0100.07720.66
5.5.240.0030.04720.34
5.5.230.0100.07320.42
5.5.220.0070.08020.07
5.5.210.0070.08020.34
5.5.200.0200.06720.35
5.5.190.0200.05720.37
5.5.180.0030.04020.24
5.5.160.0000.04320.25
5.5.150.0100.03320.16
5.5.140.0000.04020.21
5.5.130.0100.03020.16
5.5.120.0000.04320.16
5.5.110.0070.03720.21
5.5.100.0070.03720.05
5.5.90.0100.03320.25
5.5.80.0070.04320.27
5.5.70.0100.05020.20
5.5.60.0030.03720.22
5.5.50.0070.04720.23
5.5.40.0070.03320.24
5.5.30.0030.04020.21
5.5.20.0030.07019.98
5.5.10.0030.04020.10
5.5.00.0070.04020.05
5.4.450.0030.08019.56
5.4.440.0130.07019.51
5.4.430.0030.07319.32
5.4.420.0030.06319.27
5.4.410.0070.03719.29
5.4.400.0070.07019.02
5.4.390.0030.05319.21
5.4.380.0100.06319.24
5.4.370.0030.08319.16
5.4.360.0170.03318.95
5.4.350.0030.04719.23
5.4.340.0030.05319.24
5.4.320.0070.03319.09
5.4.310.0000.05018.99
5.4.300.0070.03319.23
5.4.290.0030.03719.23
5.4.280.0030.03719.23
5.4.270.0000.04019.18
5.4.260.0000.03719.14
5.4.250.0000.03719.00
5.4.240.0000.04019.18
5.4.230.0000.04019.08
5.4.220.0000.04319.18
5.4.210.0100.03319.15
5.4.200.0000.04319.00
5.4.190.0070.03719.02
5.4.180.0070.06019.21
5.4.170.0030.07318.98
5.4.160.0030.03719.00
5.4.150.0100.03318.98
5.4.140.0000.04316.61
5.4.130.0070.04316.49
5.4.120.0000.03716.59
5.4.110.0000.05316.58
5.4.100.0130.05016.52
5.4.90.0000.03716.43
5.4.80.0030.03316.59
5.4.70.0100.03316.29
5.4.60.0030.03716.45
5.4.50.0000.03716.28
5.4.40.0070.03316.29
5.4.30.0030.03316.47
5.4.20.0100.03016.54
5.4.10.0030.03716.33
5.4.00.0030.03315.95
5.3.290.0070.06714.63
5.3.280.0070.06014.58
5.3.270.0070.03314.66
5.3.260.0000.04014.75
5.3.250.0030.04314.74
5.3.240.0030.03714.47
5.3.230.0030.03314.61
5.3.220.0030.03714.58
5.3.210.0000.04014.67
5.3.200.0000.03714.80
5.3.190.0000.04014.59
5.3.180.0030.05014.70
5.3.170.0030.04014.70
5.3.160.0070.03014.57
5.3.150.0030.04014.56
5.3.140.0000.04314.55
5.3.130.0100.02714.60
5.3.120.0070.04014.59
5.3.110.0000.04014.64
5.3.100.0030.03714.13
5.3.90.0000.04014.11
5.3.80.0000.08314.10
5.3.70.0030.07014.16
5.3.60.0070.05314.13
5.3.50.0030.05014.05
5.3.40.0100.03313.97
5.3.30.0170.06013.95
5.3.20.0170.06313.84
5.3.10.0030.07313.69
5.3.00.0100.07013.64
5.2.170.0000.03311.87
5.2.160.0070.06011.87
5.2.150.0130.05311.87
5.2.140.0100.05311.87
5.2.130.0030.06311.87
5.2.120.0100.05711.87
5.2.110.0000.06311.87
5.2.100.0070.05011.87
5.2.90.0130.03711.87
5.2.80.0030.06011.87
5.2.70.0030.05711.87
5.2.60.0070.05311.87
5.2.50.0000.06311.87
5.2.40.0100.03311.87
5.2.30.0100.05311.87
5.2.20.0070.06011.87
5.2.10.0030.06011.87
5.2.00.0070.05311.87
5.1.60.0030.05311.87
5.1.50.0000.05711.87
5.1.40.0100.04711.87
5.1.30.0030.06011.87
5.1.20.0030.05011.87
5.1.10.0000.03711.87
5.1.00.0100.02311.87
5.0.50.0100.04011.87
5.0.40.0030.04011.87
5.0.30.0030.03011.87
5.0.20.0030.04311.87
5.0.10.0030.04311.87
5.0.00.0000.06011.87
4.4.90.0070.03011.87
4.4.80.0000.03711.87
4.4.70.0070.03311.87
4.4.60.0100.01311.87
4.4.50.0000.02311.87
4.4.40.0070.04711.87
4.4.30.0000.03711.87
4.4.20.0030.02011.87
4.4.10.0070.03311.87
4.4.00.0000.06311.87
4.3.110.0000.02311.87
4.3.100.0030.02711.87
4.3.90.0000.03311.87
4.3.80.0000.05311.87
4.3.70.0070.02711.87
4.3.60.0070.02011.87
4.3.50.0030.03311.87
4.3.40.0000.05311.87
4.3.30.0030.02311.87
4.3.20.0070.03011.87
4.3.10.0030.03311.87
4.3.00.0030.03011.87

preferences:
40.15 ms | 401 KiB | 5 Q