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 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... :) } } //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.0170.00018.29
8.3.50.0100.00621.08
8.3.40.0040.01118.52
8.3.30.0030.01020.16
8.3.20.0090.00020.48
8.3.10.0080.00021.10
8.3.00.0040.00423.70
8.2.180.0110.00416.50
8.2.170.0120.00922.96
8.2.160.0030.01020.39
8.2.150.0080.00024.18
8.2.140.0020.00524.66
8.2.130.0040.00426.16
8.2.120.0000.00721.11
8.2.110.0040.00419.17
8.2.100.0070.00317.91
8.2.90.0040.00419.11
8.2.80.0050.00317.97
8.2.70.0060.00317.38
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0030.00519.82
8.2.30.0040.00419.48
8.2.20.0040.00417.59
8.2.10.0040.00417.50
8.2.00.0070.00017.44
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00622.46
8.1.230.0060.00621.04
8.1.220.0040.00418.77
8.1.210.0040.00419.04
8.1.200.0030.00617.38
8.1.190.0040.00417.54
8.1.180.0090.00018.10
8.1.170.0050.00318.65
8.1.160.0040.00418.74
8.1.150.0070.00018.58
8.1.140.0000.00817.49
8.1.130.0000.00717.76
8.1.120.0050.00217.31
8.1.110.0000.00717.28
8.1.100.0000.00717.39
8.1.90.0060.00317.41
8.1.80.0000.00717.47
8.1.70.0030.00317.35
8.1.60.0120.00017.39
8.1.50.0000.00817.45
8.1.40.0030.00517.31
8.1.30.0000.00817.57
8.1.20.0000.00917.65
8.1.10.0000.00817.41
8.1.00.0000.00817.48
8.0.300.0060.00319.93
8.0.290.0050.00217.05
8.0.280.0000.00718.44
8.0.270.0040.00317.20
8.0.260.0060.00016.70
8.0.250.0000.00717.00
8.0.240.0040.00416.93
8.0.230.0030.00316.91
8.0.220.0070.00016.90
8.0.210.0070.00016.92
8.0.200.0030.00316.85
8.0.190.0050.00316.97
8.0.180.0040.00416.96
8.0.170.0030.00516.83
8.0.160.0000.00816.88
8.0.150.0080.00016.74
8.0.140.0000.00816.75
8.0.130.0000.00613.19
8.0.120.0050.00216.89
8.0.110.0050.00216.89
8.0.100.0080.00016.85
8.0.90.0040.00416.83
8.0.80.0000.01516.71
8.0.70.0040.00416.75
8.0.60.0000.00716.82
8.0.50.0000.00716.79
8.0.30.0080.01017.18
8.0.20.0090.00917.40
8.0.10.0000.00716.72
8.0.00.0080.00816.77
7.4.330.0000.00414.93
7.4.320.0030.00516.39
7.4.300.0030.00316.54
7.4.290.0070.00016.44
7.4.280.0000.00716.46
7.4.270.0000.00716.45
7.4.260.0000.00513.29
7.4.250.0040.00416.40
7.4.240.0030.00416.50
7.4.230.0070.00016.29
7.4.220.0090.01116.54
7.4.210.0050.01016.51
7.4.200.0050.00216.43
7.4.190.0040.00416.58
7.4.160.0120.01216.72
7.4.150.0090.00917.40
7.4.140.0120.00817.86
7.4.130.0110.00816.61
7.4.120.0120.00516.43
7.4.110.0070.01016.63
7.4.100.0220.00016.46
7.4.90.0030.01416.51
7.4.80.0110.01419.39
7.4.70.0090.01316.33
7.4.60.0130.00316.56
7.4.50.0000.00816.25
7.4.40.0110.00322.77
7.4.30.0110.00616.66
7.4.00.0030.01315.03
7.3.330.0000.00513.22
7.3.320.0000.00513.29
7.3.310.0000.00716.15
7.3.300.0070.00016.31
7.3.290.0070.00716.31
7.3.280.0090.00616.27
7.3.270.0030.01317.40
7.3.260.0090.01118.24
7.3.250.0090.00816.29
7.3.240.0100.00716.21
7.3.230.0140.00616.39
7.3.210.0030.01416.41
7.3.200.0070.01319.39
7.3.190.0100.00716.34
7.3.180.0090.00916.29
7.3.170.0000.01416.31
7.3.160.0080.01216.44
7.3.120.0090.00614.80
7.3.110.0070.01014.50
7.3.100.0040.01114.59
7.3.90.0060.00914.98
7.3.80.0080.00414.78
7.3.70.0060.00314.72
7.3.60.0030.01314.75
7.3.50.0090.00314.54
7.3.40.0030.01314.83
7.3.30.0110.00414.86
7.3.20.0030.00916.69
7.3.10.0000.01116.57
7.3.00.0030.01316.78
7.2.330.0060.01216.60
7.2.320.0090.01516.66
7.2.310.0090.01416.68
7.2.300.0090.00916.50
7.2.290.0090.00716.61
7.2.240.0000.01814.92
7.2.230.0040.01114.99
7.2.220.0070.01015.12
7.2.210.0070.00715.28
7.2.200.0030.01314.89
7.2.190.0000.01614.90
7.2.180.0080.00314.79
7.2.170.0130.00014.70
7.2.160.0040.00814.75
7.2.150.0040.00816.99
7.2.140.0060.00916.61
7.2.130.0090.00616.98
7.2.120.0060.01016.66
7.2.110.0070.00616.66
7.2.100.0040.01116.65
7.2.90.0050.00716.84
7.2.80.0040.00916.65
7.2.70.0070.00816.71
7.2.60.0100.00416.67
7.2.50.0060.00716.89
7.2.40.0100.00516.87
7.2.30.0040.01116.74
7.2.20.0040.01016.78
7.2.10.0070.00716.89
7.2.00.0030.00717.61
7.1.330.0100.00315.51
7.1.320.0000.01715.62
7.1.310.0040.00415.49
7.1.300.0000.00915.57
7.1.290.0040.00815.76
7.1.280.0030.01015.88
7.1.270.0060.00315.26
7.1.260.0000.00815.54
7.1.250.0000.01515.50
7.1.230.0110.00415.38
7.1.220.0110.00015.55
7.1.210.0090.00315.77
7.1.200.0050.01115.85
7.1.190.0000.01315.80
7.1.180.0000.01115.64
7.1.170.0060.00915.81
7.1.160.0070.00415.71
7.1.150.0080.00315.80
7.1.140.0090.00315.49
7.1.130.0070.00715.41
7.1.120.0050.00515.66
7.1.110.0080.00415.76
7.1.100.0060.00816.92
7.1.90.0060.00615.82
7.1.80.0030.00915.50
7.1.70.0050.00616.29
7.1.60.0060.01117.50
7.1.50.0140.00716.41
7.1.40.0100.00616.02
7.1.30.0090.00315.73
7.1.20.0070.00715.95
7.1.10.0060.00615.69
7.1.00.0050.04219.03
7.0.310.0070.00315.30
7.0.300.0080.00015.29
7.0.290.0040.01215.21
7.0.280.0070.00715.26
7.0.270.0060.00615.02
7.0.260.0100.00315.30
7.0.250.0040.00715.37
7.0.240.0100.00015.45
7.0.230.0070.00415.51
7.0.220.0040.00715.54
7.0.210.0120.00315.50
7.0.200.0030.00716.02
7.0.190.0030.00615.42
7.0.180.0050.00515.21
7.0.170.0000.00915.50
7.0.160.0060.00615.51
7.0.150.0080.00315.37
7.0.140.0090.03618.73
7.0.130.0040.00415.47
7.0.120.0000.01015.16
7.0.110.0040.00815.43
7.0.100.0150.03717.64
7.0.90.0100.02617.69
7.0.80.0050.02317.72
7.0.70.0110.02217.63
7.0.60.0070.02117.63
7.0.50.0050.02517.92
7.0.40.0030.02416.70
7.0.30.0030.02616.77
7.0.20.0030.02316.71
7.0.10.0100.01316.82
7.0.00.0030.02116.61
5.6.380.0070.00414.33
5.6.370.0000.01414.53
5.6.360.0070.00714.32
5.6.350.0100.00313.91
5.6.340.0070.00714.32
5.6.330.0030.00614.40
5.6.320.0060.00614.25
5.6.310.0030.00314.32
5.6.300.0130.00013.94
5.6.290.0090.00314.05
5.6.280.0090.04417.66
5.6.270.0000.00814.37
5.6.260.0030.00713.97
5.6.250.0090.02417.48
5.6.240.0030.02517.51
5.6.230.0080.02517.46
5.6.220.0050.02617.47
5.6.210.0080.02117.32
5.6.200.0020.02617.46
5.6.190.0050.02417.49
5.6.180.0000.02917.52
5.6.170.0050.02417.79
5.6.160.0050.01717.60
5.6.150.0050.02717.59
5.6.140.0080.02217.62
5.6.130.0040.02617.70
5.6.120.0080.03617.71
5.6.110.0050.04917.69
5.6.100.0080.04617.63
5.6.90.0080.04517.79
5.6.80.0050.04817.18
5.6.70.0060.02617.39
5.6.60.0110.03917.27
5.6.50.0110.02517.31
5.6.40.0110.04317.26
5.6.30.0110.03517.11
5.6.20.0110.02617.31
5.6.10.0160.02817.24
5.6.00.0130.02317.38
5.5.380.0040.02016.68
5.5.370.0020.02416.63
5.5.360.0040.02216.59
5.5.350.0050.02216.55
5.5.340.0050.02516.83
5.5.330.0020.02316.86
5.5.320.0040.02316.84
5.5.310.0070.01816.75
5.5.300.0030.02116.83
5.5.290.0030.02216.85
5.5.280.0050.02216.79
5.5.270.0040.04216.80
5.5.260.0080.04516.85
5.5.250.0080.02216.68
5.5.240.0070.03816.48
5.5.230.0040.04216.48
5.5.220.0110.02016.52
5.5.210.0090.02216.46
5.5.200.0080.02416.52
5.5.190.0060.02616.47
5.5.180.0120.02316.47
5.5.170.0130.00513.93
5.5.160.0090.02216.53
5.5.150.0090.03116.53
5.5.140.0060.02716.48
5.5.130.0090.02516.46
5.5.120.0090.01916.53
5.5.110.0050.04016.53
5.5.100.0080.03516.48
5.5.90.0080.03216.42
5.5.80.0060.03816.46
5.5.70.0030.02816.38
5.5.60.0000.03116.47
5.5.50.0070.03016.45
5.5.40.0110.02216.42
5.5.30.0080.03116.44
5.5.20.0050.02716.46
5.5.10.0070.03716.44
5.5.00.0060.04116.42
5.4.450.0050.02216.08
5.4.440.0030.02216.07
5.4.430.0050.03716.03
5.4.420.0070.02716.08
5.4.410.0060.02116.01
5.4.400.0080.03515.96
5.4.390.0050.03015.92
5.4.380.0100.02015.91
5.4.370.0030.02815.82
5.4.360.0050.03615.94
5.4.350.0050.03015.91
5.4.340.0050.03315.82
5.4.330.0070.00712.79
5.4.320.0060.02315.91
5.4.310.0080.01815.98
5.4.300.0090.02815.84
5.4.290.0110.02816.01
5.4.280.0050.03615.90
5.4.270.0110.02015.91
5.4.260.0050.03815.98
5.4.250.0090.01915.91
5.4.240.0080.03115.81
5.4.230.0080.02215.87
5.4.220.0080.04115.95
5.4.210.0050.02115.95
5.4.200.0080.02715.81
5.4.190.0090.03215.97
5.4.180.0070.02115.96
5.4.170.0040.03315.82
5.4.160.0040.03015.91
5.4.150.0100.02815.99
5.4.140.0020.03014.60
5.4.130.0090.03014.59
5.4.120.0060.04114.55
5.4.110.0050.03814.67
5.4.100.0060.03414.57
5.4.90.0070.02614.60
5.4.80.0090.02214.67
5.4.70.0100.02214.66
5.4.60.0210.01214.63
5.4.50.0040.03714.58
5.4.40.0080.04014.65
5.4.30.0070.03514.54
5.4.20.0030.02314.54
5.4.10.0050.03314.60
5.4.00.0060.01914.29
5.3.290.0040.03713.70
5.3.280.0090.04213.69
5.3.270.0110.03513.73
5.3.260.0070.04513.70
5.3.250.0040.04113.67
5.3.240.0080.03113.70
5.3.230.0050.03113.70
5.3.220.0100.01913.71
5.3.210.0090.03813.65
5.3.200.0090.03113.67
5.3.190.0030.03813.68
5.3.180.0070.02213.67
5.3.170.0110.03213.68
5.3.160.0030.04013.64
5.3.150.0070.03013.66
5.3.140.0070.02813.70
5.3.130.0110.01813.67
5.3.120.0120.03013.63
5.3.110.0060.02013.63
5.3.100.0030.03413.48
5.3.90.0060.03213.38
5.3.80.0050.03513.47
5.3.70.0050.04013.40
5.3.60.0090.01713.45
5.3.50.0060.03313.41
5.3.40.0080.03813.36
5.3.30.0080.03813.38
5.3.20.0030.03813.30
5.3.10.0090.03413.21
5.3.00.0050.01713.24
5.2.170.0050.03511.99
5.2.160.0060.03511.98
5.2.150.0060.02711.98
5.2.140.0050.02711.93
5.2.130.0090.03011.96
5.2.120.0080.02011.94
5.2.110.0000.01811.99
5.2.100.0070.01511.94
5.2.90.0060.01511.96
5.2.80.0080.02811.89
5.2.70.0060.03011.90
5.2.60.0090.01611.97
5.2.50.0040.03411.97
5.2.40.0050.03511.86
5.2.30.0030.03511.89
5.2.20.0050.03011.91
5.2.10.0080.02811.86
5.2.00.0070.01711.81
5.1.60.0030.02911.31
5.1.50.0060.01511.32
5.1.40.0060.02711.43
5.1.30.0090.02711.56
5.1.20.0040.01711.58
5.1.10.0090.01311.43
5.1.00.0050.02711.45
5.0.50.0080.01310.70
5.0.40.0050.02310.63
5.0.30.0030.02510.54
5.0.20.0020.01310.54
5.0.10.0070.01710.40
5.0.00.0020.02810.53
4.4.90.0030.01710.33
4.4.80.0000.02010.33
4.4.70.0040.01710.33
4.4.60.0020.02010.33
4.4.50.0030.01310.33
4.4.40.0040.02710.33
4.4.30.0060.01210.33
4.4.20.0020.01710.33
4.4.10.0050.01210.33
4.4.00.0070.01210.33
4.3.110.0020.01410.33
4.3.100.0020.01710.33
4.3.90.0030.01310.33
4.3.80.0000.02710.33
4.3.70.0040.00810.33
4.3.60.0010.01210.33
4.3.50.0000.01510.33
4.3.40.0020.01710.33
4.3.30.0000.01310.33
4.3.20.0040.01510.33
4.3.10.0020.01610.33
4.3.00.0030.02010.33

preferences:
37.82 ms | 401 KiB | 5 Q