3v4l.org

run code in 300+ PHP versions simultaneously
<?php class StaticA { public function setEmail($redirect) { $this->email = $redirect; } protected function returnthis(){ return $this; } private function dosomething(){ echo "Unrsprüngliche Methode"; $obj = parent::returnthis(); echo $obj->email; } public function classInfo(){ echo get_class(new self). "\n"; echo $this->email. "\n"; } } class StaticB extends StaticA { public function test(){ parent::classInfo(); } public function doit(){ $this->dosomething(); } private function dosomething(){ $obj = parent::returnthis(); echo "Neue Methode!". "\n"; echo "Hier ist die E-Mail aus der Elternklasse heraus-.: ".$obj->email; } } $object = new StaticB(); $object->setEmail("erno@01art.de"); $object->doit();

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.00718.55
8.3.50.0080.01122.00
8.3.40.0110.00418.63
8.3.30.0140.00018.96
8.3.20.0040.00420.34
8.3.10.0070.00022.23
8.3.00.0040.00422.52
8.2.180.0090.01216.63
8.2.170.0090.00622.96
8.2.160.0030.01420.63
8.2.150.0000.00824.18
8.2.140.0030.00724.66
8.2.130.0040.00426.16
8.2.120.0000.00819.24
8.2.110.0060.00322.07
8.2.100.0080.00617.77
8.2.90.0040.00419.04
8.2.80.0030.00519.51
8.2.70.0000.00817.50
8.2.60.0000.00817.80
8.2.50.0030.00518.07
8.2.40.0040.00417.97
8.2.30.0000.00817.93
8.2.20.0040.00417.44
8.2.10.0000.00817.67
8.2.00.0040.00417.44
8.1.280.0030.01125.92
8.1.270.0060.00322.00
8.1.260.0030.00726.35
8.1.250.0080.00028.09
8.1.240.0030.00623.98
8.1.230.0060.00619.02
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0100.00017.23
8.1.190.0050.00317.15
8.1.180.0030.00518.10
8.1.170.0030.00518.48
8.1.160.0070.00321.84
8.1.150.0020.00518.55
8.1.140.0000.00717.29
8.1.130.0070.00017.81
8.1.120.0040.00417.26
8.1.110.0000.00717.38
8.1.100.0030.00417.27
8.1.90.0070.00017.28
8.1.80.0000.00717.34
8.1.70.0030.00317.30
8.1.60.0060.00317.45
8.1.50.0000.00717.29
8.1.40.0050.00217.40
8.1.30.0080.00017.46
8.1.20.0000.00817.48
8.1.10.0000.00717.33
8.1.00.0040.00417.19
8.0.300.0070.00018.77
8.0.290.0000.00717.04
8.0.280.0000.00718.25
8.0.270.0000.00717.15
8.0.260.0000.00616.76
8.0.250.0000.00716.91
8.0.240.0000.00716.93
8.0.230.0100.00016.79
8.0.220.0040.00416.84
8.0.210.0040.00416.86
8.0.200.0060.00016.86
8.0.190.0000.00716.90
8.0.180.0040.00416.88
8.0.170.0040.00416.86
8.0.160.0070.00016.75
8.0.150.0000.00716.74
8.0.140.0040.00416.84
8.0.130.0060.00013.24
8.0.120.0000.00816.69
8.0.110.0000.00716.71
8.0.100.0050.00316.95
8.0.90.0040.00416.95
8.0.80.0090.01216.79
8.0.70.0040.00416.84
8.0.60.0030.00316.89
8.0.50.0080.00016.70
8.0.30.0120.00716.87
8.0.20.0110.00717.40
8.0.10.0040.00417.02
8.0.00.0070.00916.57
7.4.330.0030.00315.03
7.4.320.0030.00316.55
7.4.300.0000.00716.52
7.4.290.0030.00316.51
7.4.280.0030.00316.66
7.4.270.0030.00316.56
7.4.260.0030.00716.53
7.4.250.0050.00316.61
7.4.240.0020.00516.59
7.4.230.0070.00016.41
7.4.220.0090.00916.44
7.4.210.0050.01016.53
7.4.200.0070.00016.51
7.4.190.0000.00716.53
7.4.160.0110.00416.54
7.4.150.0130.00617.40
7.4.140.0110.00917.86
7.4.130.0080.01016.68
7.4.120.0100.00916.62
7.4.110.0060.01216.61
7.4.100.0070.01516.66
7.4.90.0110.01116.58
7.4.80.0060.01219.39
7.4.70.0090.00616.58
7.4.60.0060.01116.64
7.4.50.0000.00816.31
7.4.40.0090.00922.77
7.4.30.0130.00316.54
7.4.10.0050.01315.74
7.4.00.0070.01015.34
7.3.330.0030.00313.29
7.3.320.0030.00313.18
7.3.310.0000.01016.21
7.3.300.0070.00016.17
7.3.290.0090.00616.25
7.3.280.0030.01716.32
7.3.270.0100.00717.40
7.3.260.0080.00816.66
7.3.250.0140.00316.48
7.3.240.0090.01316.32
7.3.230.0150.00616.39
7.3.210.0070.01016.48
7.3.200.0030.01919.39
7.3.190.0170.00316.49
7.3.180.0040.01116.19
7.3.170.0140.00716.60
7.3.160.0060.00916.53
7.3.130.0060.01315.56
7.3.120.0040.01315.26
7.3.110.0060.01115.39
7.3.100.0040.01215.26
7.3.90.0030.00715.33
7.3.80.0030.00915.34
7.3.70.0080.00415.29
7.3.60.0040.01115.19
7.3.50.0090.00415.31
7.3.40.0060.00815.19
7.3.30.0070.00515.22
7.3.20.0040.00616.99
7.3.10.0050.00817.10
7.3.00.0080.00817.30
7.2.330.0100.01316.61
7.2.320.0160.00616.84
7.2.310.0120.00616.49
7.2.300.0030.01316.90
7.2.290.0170.00016.79
7.2.260.0100.00715.82
7.2.250.0070.01115.65
7.2.240.0080.01115.54
7.2.230.0110.00715.37
7.2.220.0060.00915.58
7.2.210.0070.00815.56
7.2.200.0050.00615.47
7.2.190.0020.01115.43
7.2.180.0030.01115.54
7.2.170.0050.00615.61
7.2.160.0020.01015.76
7.2.150.0030.00817.71
7.2.140.0020.01017.74
7.2.130.0020.01317.75
7.2.120.0060.00617.57
7.2.110.0050.01017.65
7.2.100.0090.00517.54
7.2.90.0050.01117.46
7.2.80.0050.00717.44
7.2.70.0060.00717.53
7.2.60.0100.00417.66
7.2.50.0030.00917.71
7.2.40.0050.00917.62
7.2.30.0040.01017.63
7.2.20.0080.00617.68
7.2.10.0010.01217.55
7.2.00.0060.00818.20
7.1.330.0070.00816.41
7.1.320.0040.00916.14
7.1.310.0060.00816.34
7.1.300.0070.00616.34
7.1.290.0050.00916.42
7.1.280.0040.00816.23
7.1.270.0060.00816.15
7.1.260.0030.00916.27
7.1.250.0050.00516.53
7.1.240.0070.00816.46
7.1.230.0080.00616.45
7.1.220.0080.00516.47
7.1.210.0040.00916.50
7.1.200.0060.00916.65
7.1.190.0030.01116.60
7.1.180.0080.00516.49
7.1.170.0080.00516.45
7.1.160.0080.00516.26
7.1.150.0000.01416.48
7.1.140.0080.00516.50
7.1.130.0050.00916.51
7.1.120.0050.00516.63
7.1.110.0090.00416.58
7.1.100.0030.00717.19
7.1.90.0020.01216.51
7.1.80.0050.00916.68
7.1.70.0050.00616.69
7.1.60.0050.01217.68
7.1.50.0020.01416.71
7.1.40.0050.00916.53
7.1.30.0020.01216.51
7.1.20.0060.01016.54
7.1.10.0040.00916.45
7.1.00.0060.02818.50
7.0.330.0030.01016.09
7.0.320.0020.01116.21
7.0.310.0050.00515.94
7.0.300.0050.00916.24
7.0.290.0080.00515.98
7.0.280.0030.00916.23
7.0.270.0030.01016.20
7.0.260.0030.00916.04
7.0.250.0060.00616.27
7.0.240.0070.00816.20
7.0.230.0020.01316.09
7.0.220.0030.00716.20
7.0.210.0090.00516.29
7.0.200.0060.00716.23
7.0.190.0060.00616.20
7.0.180.0050.01016.15
7.0.170.0070.00516.25
7.0.160.0050.00816.13
7.0.150.0110.00316.20
7.0.140.0090.02518.06
7.0.130.0070.00716.27
7.0.120.0070.00716.18
7.0.110.0070.00716.10
7.0.100.0070.03217.47
7.0.90.0080.02817.48
7.0.80.0080.02917.36
7.0.70.0110.02817.37
7.0.60.0080.02817.50
7.0.50.0220.03117.55
7.0.40.0040.03616.15
7.0.30.0070.02816.12
7.0.20.0070.03116.21
7.0.10.0080.03016.12
7.0.00.0040.03416.20
5.6.400.0040.01215.02
5.6.390.0080.00615.08
5.6.380.0030.01114.90
5.6.370.0030.00815.01
5.6.360.0050.00915.17
5.6.350.0030.00915.14
5.6.340.0110.00515.23
5.6.330.0030.01115.22
5.6.320.0050.01015.12
5.6.310.0070.00715.09
5.6.300.0060.00815.16
5.6.290.0070.00514.99
5.6.280.0050.03117.15
5.6.270.0100.00715.30
5.6.260.0120.00515.06
5.6.250.0080.03016.97
5.6.240.0020.03516.98
5.6.230.0090.03116.92
5.6.220.0100.02616.90
5.6.210.0070.02216.92
5.6.200.0150.02517.09
5.6.190.0060.01817.07
5.6.180.0090.02717.21
5.6.170.0050.03717.06
5.6.160.0020.03717.11
5.6.150.0110.02516.95
5.6.140.0050.03317.14
5.6.130.0050.03617.09
5.6.120.0080.03217.02
5.6.110.0060.03217.11
5.6.100.0090.02017.02
5.6.90.0090.02617.08
5.6.80.0100.02817.01
5.6.70.0100.02516.78
5.6.60.0020.02516.80
5.6.50.0080.02716.79
5.6.40.0050.03516.81
5.6.30.0090.03217.04
5.6.20.0080.03216.83
5.6.10.0120.02816.89
5.6.00.0060.03516.86
5.5.380.0060.03116.91
5.5.370.0090.02416.83
5.5.360.0050.03516.96
5.5.350.0040.03616.77
5.5.340.0060.03516.98
5.5.330.0040.03217.01
5.5.320.0050.02316.95
5.5.310.0060.03116.83
5.5.300.0040.03517.02
5.5.290.0050.03217.08
5.5.280.0050.03416.88
5.5.270.0070.03317.00
5.5.260.0050.03416.99
5.5.250.0060.03517.02
5.5.240.0100.03016.82
5.5.230.0090.03016.54
5.5.220.0070.03016.75
5.5.210.0060.03016.84
5.5.200.0050.03116.83
5.5.190.0100.03116.83
5.5.180.0080.03216.65
5.5.170.0040.01214.93
5.5.160.0110.02716.78
5.5.150.0030.03716.61
5.5.140.0050.03416.69
5.5.130.0080.03016.84
5.5.120.0080.03116.75
5.5.110.0140.02516.71
5.5.100.0080.02816.71
5.5.90.0080.02816.58
5.5.80.0080.02916.73
5.5.70.0090.02816.74
5.5.60.0040.03416.69
5.5.50.0080.03116.78
5.5.40.0080.02016.60
5.5.30.0070.03416.56
5.5.20.0100.02916.65
5.5.10.0070.02616.72
5.5.00.0050.03616.69
5.4.450.0070.02814.37
5.4.440.0080.02514.36
5.4.430.0090.02914.25
5.4.420.0090.02414.50
5.4.410.0050.02714.34
5.4.400.0080.02814.18
5.4.390.0060.01814.24
5.4.380.0040.03014.23
5.4.370.0060.02614.19
5.4.360.0130.02514.13
5.4.350.0080.01814.16
5.4.340.0070.03214.35
5.4.330.0090.00811.92
5.4.320.0060.03014.08
5.4.310.0090.02613.97
5.4.300.0120.01614.10
5.4.290.0050.02213.98
5.4.280.0050.03014.05
5.4.270.0070.03014.22
5.4.260.0030.03314.09
5.4.250.0080.02714.23
5.4.240.0080.02714.19
5.4.230.0060.03014.23
5.4.220.0090.03014.07
5.4.210.0090.03014.15
5.4.200.0090.02714.26
5.4.190.0070.02914.24
5.4.180.0040.03114.15
5.4.170.0130.02414.13
5.4.160.0060.02714.16
5.4.150.0090.02814.34
5.4.140.0080.01613.47
5.4.130.0040.03013.35
5.4.120.0050.03013.25
5.4.110.0030.02813.37
5.4.100.0060.03013.27
5.4.90.0060.02913.24
5.4.80.0060.02813.36
5.4.70.0070.01913.34
5.4.60.0070.02913.19
5.4.50.0070.02313.24
5.4.40.0080.02913.33
5.4.30.0070.02713.34
5.4.20.0060.02913.33
5.4.10.0070.02713.35
5.4.00.0060.03013.08
5.3.290.0080.03112.90
5.3.280.0090.02712.75
5.3.270.0070.03312.81
5.3.260.0080.03212.91
5.3.250.0070.03312.87
5.3.240.0040.03012.67
5.3.230.0130.02512.78
5.3.220.0070.03012.73
5.3.210.0080.02812.55
5.3.200.0060.02912.61
5.3.190.0100.02812.69
5.3.180.0050.02312.79
5.3.170.0090.03112.68
5.3.160.0090.02812.77
5.3.150.0070.03212.77
5.3.140.0070.02012.79
5.3.130.0100.02512.70
5.3.120.0030.03412.70
5.3.110.0070.03012.57
5.3.100.0040.03212.59
5.3.90.0100.02812.63
5.3.80.0100.01812.46
5.3.70.0100.02512.55
5.3.60.0050.03112.62
5.3.50.0070.02412.61
5.3.40.0070.01512.61
5.3.30.0080.02412.49
5.3.20.0040.02412.59
5.3.10.0060.02912.49
5.3.00.0090.02812.42
5.2.170.0070.03314.24
5.2.160.0070.03314.24
5.2.150.0000.03314.24
5.2.140.0030.06314.24
5.2.130.0030.04714.24
5.2.120.0100.05314.24
5.2.110.0000.07014.24
5.2.100.0100.06014.24
5.2.90.0070.05714.24
5.2.80.0030.04714.24
5.2.70.0030.05714.24
5.2.60.0000.06314.24
5.2.50.0100.04714.24
5.2.40.0000.06014.24
5.2.30.0030.06014.24
5.2.20.0000.06014.24
5.2.10.0070.03314.24
5.2.00.0000.06014.24
5.1.60.0000.04714.24
5.1.50.0030.05714.24
5.1.40.0070.04714.24
5.1.30.0030.05714.24
5.1.20.0070.05714.24
5.1.10.0070.05314.24
5.1.00.0130.03314.24
5.0.50.0030.05014.24
5.0.40.0030.05014.24
5.0.30.0000.04314.24
5.0.20.0070.04014.24
5.0.10.0030.04314.24
5.0.00.0170.05314.24
4.4.90.0070.03314.24
4.4.80.0030.03714.24
4.4.70.0000.03314.24
4.4.60.0070.03014.24
4.4.50.0030.03314.24
4.4.40.0070.04714.24
4.4.30.0000.03014.24
4.4.20.0100.02714.24
4.4.10.0030.03714.24
4.4.00.0000.05714.24
4.3.110.0000.03714.24
4.3.100.0030.03314.24
4.3.90.0030.03314.24
4.3.80.0000.05714.24
4.3.70.0030.03314.24
4.3.60.0000.03014.24
4.3.50.0030.02014.24
4.3.40.0000.04014.24
4.3.30.0030.03314.24
4.3.20.0030.02714.24
4.3.10.0070.03314.24
4.3.00.0000.03314.24

preferences:
43.72 ms | 401 KiB | 5 Q