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'; } 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.60.0030.01418.25
8.3.50.0100.01221.21
8.3.40.0100.00318.71
8.3.30.0030.01020.34
8.3.20.0030.00620.42
8.3.10.0080.00021.09
8.3.00.0000.00723.48
8.2.180.0120.00316.32
8.2.170.0070.00722.96
8.2.160.0100.00320.47
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00421.00
8.2.110.0000.00920.52
8.2.100.0040.00717.91
8.2.90.0050.00219.34
8.2.80.0000.00818.05
8.2.70.0030.00617.50
8.2.60.0000.00717.93
8.2.50.0050.00318.07
8.2.40.0050.00318.22
8.2.30.0050.00219.46
8.2.20.0040.00417.70
8.2.10.0040.00417.64
8.2.00.0040.00417.64
8.1.280.0130.00425.92
8.1.270.0040.00423.99
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0090.00022.14
8.1.230.0030.00924.02
8.1.220.0030.00518.77
8.1.210.0000.00819.07
8.1.200.0060.00317.22
8.1.190.0040.00417.41
8.1.180.0000.00818.10
8.1.170.0030.00618.53
8.1.160.0070.00018.78
8.1.150.0060.00318.61
8.1.140.0000.00817.47
8.1.130.0000.00717.84
8.1.120.0000.00717.36
8.1.110.0000.00717.47
8.1.100.0040.00417.44
8.1.90.0000.00917.48
8.1.80.0040.00417.52
8.1.70.0000.00717.46
8.1.60.0040.00717.44
8.1.50.0050.00317.47
8.1.40.0030.00517.52
8.1.30.0030.00517.61
8.1.20.0040.00417.64
8.1.10.0070.00017.53
8.1.00.0070.00017.41
8.0.300.0050.00319.77
8.0.290.0080.00017.04
8.0.280.0030.00318.45
8.0.270.0030.00317.32
8.0.260.0030.00316.90
8.0.250.0070.00016.91
8.0.240.0000.00916.86
8.0.230.0070.00016.93
8.0.220.0030.00316.90
8.0.210.0000.00616.80
8.0.200.0000.00616.86
8.0.190.0090.00017.01
8.0.180.0000.00716.91
8.0.170.0020.00516.93
8.0.160.0040.00416.80
8.0.150.0000.00716.87
8.0.140.0070.00016.93
8.0.130.0000.00713.30
8.0.120.0080.00016.89
8.0.110.0070.00016.90
8.0.100.0000.00816.76
8.0.90.0040.00416.94
8.0.80.0070.01416.91
8.0.70.0000.00816.81
8.0.60.0050.00216.64
8.0.50.0000.00816.64
8.0.30.0080.01017.10
8.0.20.0090.01017.40
8.0.10.0000.00716.83
8.0.00.0080.01016.84
7.4.330.0000.00515.00
7.4.320.0060.00316.46
7.4.300.0030.00316.51
7.4.290.0070.00016.39
7.4.280.0070.00016.66
7.4.270.0030.00316.51
7.4.260.0000.00513.25
7.4.250.0060.00316.50
7.4.240.0070.00016.54
7.4.230.0040.00416.72
7.4.220.0120.00616.56
7.4.210.0050.01016.56
7.4.200.0000.00716.34
7.4.190.0040.00316.39
7.4.160.0130.01016.56
7.4.150.0030.01417.40
7.4.140.0100.01217.86
7.4.130.0080.01016.52
7.4.120.0100.01116.38
7.4.110.0140.00316.38
7.4.100.0100.00716.53
7.4.90.0070.01016.58
7.4.80.0150.00319.39
7.4.70.0060.00916.39
7.4.60.0060.00916.61
7.4.50.0030.00616.50
7.4.40.0030.00922.77
7.4.30.0100.00616.57
7.4.10.0130.00714.84
7.4.00.0060.00714.98
7.3.330.0030.00313.39
7.3.320.0050.00013.36
7.3.310.0070.00016.23
7.3.300.0040.00416.21
7.3.290.0060.00916.34
7.3.280.0080.00816.33
7.3.270.0100.00717.40
7.3.260.0180.00418.24
7.3.250.0100.00816.30
7.3.240.0040.01516.26
7.3.230.0080.00816.39
7.3.210.0100.00616.27
7.3.200.0120.00619.39
7.3.190.0110.00616.59
7.3.180.0110.00616.53
7.3.170.0090.00616.40
7.3.160.0110.01116.35
7.3.130.0000.01914.82
7.3.120.0070.00915.05
7.3.110.0000.02014.68
7.3.100.0090.00614.75
7.3.90.0080.00815.12
7.3.80.0060.00314.82
7.3.70.0140.00014.86
7.3.60.0090.00914.77
7.3.50.0050.00515.01
7.3.40.0030.01014.84
7.3.30.0070.00714.89
7.3.20.0060.01016.68
7.3.10.0190.00816.64
7.3.00.0290.00716.62
7.2.330.0070.01016.70
7.2.320.0140.00316.74
7.2.310.0150.00616.43
7.2.300.0130.00316.69
7.2.290.0090.00616.46
7.2.260.0090.00915.11
7.2.250.0180.00014.94
7.2.240.0040.00815.21
7.2.230.0060.01214.80
7.2.220.0060.01315.04
7.2.210.0070.01014.90
7.2.200.0040.01114.75
7.2.190.0090.00914.99
7.2.180.0070.00714.95
7.2.170.0000.01714.88
7.2.160.0030.01315.02
7.2.150.0060.01017.08
7.2.140.0060.01216.82
7.2.130.0110.00716.98
7.2.120.0090.00616.46
7.2.110.0130.00816.82
7.2.100.0360.00716.65
7.2.90.0200.00716.95
7.2.80.0190.00516.86
7.2.70.0180.00516.84
7.2.60.0110.00316.70
7.2.50.0130.00716.96
7.2.40.0100.00716.65
7.2.30.0160.00816.72
7.2.20.0180.00516.67
7.2.10.0070.00516.45
7.2.00.0060.00916.76
7.1.330.0090.00315.64
7.1.320.0070.01015.73
7.1.310.0080.00415.66
7.1.300.0090.00915.86
7.1.290.0000.01215.60
7.1.280.0110.00715.72
7.1.270.0080.00415.75
7.1.260.0040.00915.87
7.1.250.0190.00915.50
7.1.240.0040.01115.75
7.1.230.0030.00815.85
7.1.220.0000.01415.54
7.1.210.0100.00315.42
7.1.200.0080.00415.78
7.1.190.0000.00915.55
7.1.180.0090.00315.59
7.1.170.0070.00715.85
7.1.160.0030.00715.57
7.1.150.0080.00415.62
7.1.140.0040.01115.64
7.1.130.0060.00915.64
7.1.120.0110.00015.73
7.1.110.0090.00315.81
7.1.100.0070.01015.79
7.1.90.0060.00915.83
7.1.80.0030.00715.66
7.1.70.0020.00716.55
7.1.60.0050.01017.51
7.1.50.0080.01116.42
7.1.40.0110.00615.61
7.1.30.0090.00415.73
7.1.20.0000.01915.33
7.1.10.0080.00315.74
7.1.00.0050.03019.03
7.0.330.0080.00615.13
7.0.320.0030.00915.51
7.0.310.0000.00915.14
7.0.300.0070.01015.32
7.0.290.0040.00415.20
7.0.280.0040.00815.38
7.0.270.0030.00915.50
7.0.260.0040.00415.20
7.0.250.0130.00015.35
7.0.240.0040.01115.47
7.0.230.0040.01115.37
7.0.220.0040.00815.33
7.0.210.0090.00915.35
7.0.200.0100.00016.14
7.0.190.0030.01415.57
7.0.180.0080.00615.17
7.0.170.0000.01315.58
7.0.160.0030.01315.45
7.0.150.0070.01015.49
7.0.140.0030.04218.57
7.0.130.0050.00515.30
7.0.120.0070.00715.27
7.0.110.0040.01115.57
7.0.100.0060.00315.16
7.0.90.0030.00815.31
7.0.80.0090.00615.50
7.0.70.0060.00615.33
7.0.60.0060.03017.73
7.0.50.0040.02416.73
7.0.40.0060.04316.78
7.0.30.0100.02616.85
7.0.20.0170.04216.87
7.0.10.0130.02516.78
7.0.00.0080.04416.62
5.6.400.0070.00714.64
5.6.390.0100.00314.12
5.6.380.0100.00614.39
5.6.370.0040.01114.55
5.6.360.0060.00614.10
5.6.350.0000.01314.18
5.6.340.0040.00714.57
5.6.330.0090.00614.60
5.6.320.0070.00714.24
5.6.310.0030.00914.19
5.6.300.0060.00614.49
5.6.290.0160.00014.32
5.6.280.0060.03717.50
5.6.270.0070.00814.65
5.6.260.0070.00714.37
5.6.250.0000.01314.31
5.6.240.0050.00514.24
5.6.230.0080.00614.34
5.6.220.0030.00614.18
5.6.210.0050.04017.53
5.6.200.0080.04216.20
5.6.190.0050.04417.38
5.6.180.0220.04217.52
5.6.170.0210.04317.39
5.6.160.0040.02717.34
5.6.150.0070.03016.32
5.6.140.0110.03016.33
5.6.130.0060.02816.36
5.6.120.0070.03217.60
5.6.110.0120.03717.56
5.6.100.0100.03917.67
5.6.90.0050.03017.48
5.6.80.0080.04017.46
5.6.70.0160.04017.34
5.6.60.0060.01314.20
5.6.50.0040.01514.27
5.6.40.0000.01214.24
5.6.30.0070.01014.15
5.6.20.0030.01314.16
5.6.10.0110.00014.25
5.6.00.0060.00614.28
5.5.380.0070.00714.36
5.5.370.0060.00614.38
5.5.360.0000.01114.66
5.5.350.0220.03217.42
5.5.340.0120.02416.16
5.5.330.0050.04517.27
5.5.320.0120.02317.32
5.5.310.0120.03617.13
5.5.300.0050.04516.03
5.5.290.0070.04716.16
5.5.280.0100.04017.56
5.5.270.0080.04317.51
5.5.260.0080.04217.55
5.5.250.0070.04017.48
5.5.240.0090.03417.33
5.5.230.0070.01014.35
5.5.220.0070.01014.04
5.5.210.0100.00614.34
5.5.200.0100.00314.12
5.5.190.0030.00613.96
5.5.180.0090.00614.00
5.5.170.0060.00614.29
5.5.160.0000.01513.99
5.5.150.0000.01313.96
5.5.140.0040.00414.12
5.5.130.0080.00414.30
5.5.120.0030.01014.11
5.5.110.0060.00914.05
5.5.100.0000.01014.43
5.5.90.0030.00714.25
5.5.80.0060.00914.38
5.5.70.0060.00614.30
5.5.60.0080.00814.36
5.5.50.0100.00313.77
5.5.40.0050.00514.02
5.5.30.0060.00614.18
5.5.20.0030.00914.30
5.5.10.0070.01014.38
5.5.00.0110.00314.16
5.4.450.0450.02215.14
5.4.440.0910.02015.35
5.4.430.1050.02815.04
5.4.420.0950.02615.20
5.4.410.0930.02315.19
5.4.400.0920.02215.21
5.4.390.0900.02415.08
5.4.380.0900.02615.23
5.4.370.0930.02315.03
5.4.360.1030.01714.96
5.4.350.0870.02814.96
5.4.340.0250.02414.98
5.4.330.0030.00511.05
5.4.320.0020.02315.07
5.4.310.0030.02615.14
5.4.300.0250.01815.18
5.4.290.0970.02214.87
5.4.280.1180.02515.09
5.4.270.0930.02415.09
5.4.260.0860.01815.11
5.4.250.0880.02014.87
5.4.240.0960.02115.07
5.4.230.0850.02115.07
5.4.220.0880.02414.96
5.4.210.0850.02014.77
5.4.200.0970.02115.08
5.4.190.1330.01815.05
5.4.180.1070.02514.88
5.4.170.1070.01814.87
5.4.160.0930.02215.17
5.4.150.0920.02515.09
5.4.140.1090.02113.94
5.4.130.0950.02213.74
5.4.120.0920.02313.71
5.4.110.1120.02413.76
5.4.100.1020.01913.81
5.4.90.1030.02013.76
5.4.80.0600.01813.83
5.4.70.0020.02413.71
5.4.60.0050.03413.74
5.4.50.0200.02013.82
5.4.40.0920.01813.62
5.4.30.1000.02013.65
5.4.20.1220.02513.83
5.4.10.1020.02613.78
5.4.00.1030.02513.42
5.3.290.1000.02712.65
5.3.280.0940.02112.59
5.3.270.1020.02412.51
5.3.260.1130.02412.64
5.3.250.0620.02912.67
5.3.240.0070.04012.49
5.3.230.0070.02112.47
5.3.220.0820.02512.54
5.3.210.0940.02212.56
5.3.200.1070.02712.59
5.3.190.1050.02512.38
5.3.180.1150.02212.61
5.3.170.1070.02412.73
5.3.160.0980.02312.63
5.3.150.0950.02512.66
5.3.140.1070.02812.65
5.3.130.1060.02112.51
5.3.120.1130.02312.55
5.3.110.1090.02312.50
5.3.100.1080.03112.28
5.3.90.1050.02712.34
5.3.80.1030.02412.06
5.3.70.1070.02712.21
5.3.60.0830.02212.31
5.3.50.0870.02312.11
5.3.40.1170.02212.22
5.3.30.1120.02212.34
5.3.20.0900.02612.13
5.3.10.0040.02011.80
5.3.00.0070.03512.02
5.2.170.1030.02711.30
5.2.160.1800.03311.16
5.2.150.1800.03711.23
5.2.140.1570.02711.27
5.2.130.1900.02711.09
5.2.120.1570.03011.19
5.2.110.1830.03311.25
5.2.100.1730.03011.19
5.2.90.1630.02311.33
5.2.80.1900.01711.32
5.2.70.1630.03011.18
5.2.60.1270.02711.20
5.2.50.0100.03011.00
5.2.40.0030.06010.88
5.2.30.0070.03310.90
5.2.20.1170.03710.97
5.2.10.1300.03010.77
5.2.00.1300.03010.84
5.1.60.1300.0239.95
5.1.50.1270.0279.91
5.1.40.1500.0339.89
5.1.30.1370.02710.34
5.1.20.1570.03010.58
5.1.10.1230.03010.12
5.1.00.1330.02710.08
5.0.50.0770.0239.86
5.0.40.0770.0239.86
5.0.30.0670.0309.86
5.0.20.0630.0209.86
5.0.10.0770.0239.87
5.0.00.0330.0309.89
4.4.90.0030.0139.89
4.4.80.0000.0209.89
4.4.70.0000.0179.89
4.4.60.0000.0179.89
4.4.50.0030.0139.89
4.4.40.0000.0279.89
4.4.30.0070.0239.89
4.4.20.0300.0179.89
4.4.10.0530.0109.89
4.4.00.0800.0339.89
4.3.110.0670.0079.89
4.3.100.0600.0179.89
4.3.90.0630.0109.89
4.3.80.0570.0239.89
4.3.70.0630.0209.89
4.3.60.0570.0179.89
4.3.50.0700.0209.89
4.3.40.0530.0279.89
4.3.30.0270.0179.89
4.3.20.0400.0309.89
4.3.10.0300.0179.89
4.3.00.0470.0209.89

preferences:
40.47 ms | 401 KiB | 5 Q