3v4l.org

run code in 300+ PHP versions simultaneously
<?php class StaticA { public function setEmail($redirect) { $this->email = $redirect; } function dosomething(){ $obj = new static; $obj->email = $this->email; $obj->classInfo(); } function classInfo(){ echo get_class(new static). "\n"; echo $this->email. "\n"; } } class StaticB extends StaticA { function test(){ //echo get_class(new self). "\n"; parent::classInfo(); } function doit(){ parent::dosomething(); echo $this->email. "\n"; } } $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.43
8.3.50.0080.00822.09
8.3.40.0110.00418.65
8.3.30.0090.00619.22
8.3.20.0000.00820.03
8.3.10.0080.00021.92
8.3.00.0090.00022.37
8.2.180.0100.01016.63
8.2.170.0070.00722.96
8.2.160.0090.00620.98
8.2.150.0030.00624.18
8.2.140.0030.00624.66
8.2.130.0050.00226.16
8.2.120.0000.00817.63
8.2.110.0030.00722.08
8.2.100.0090.00318.04
8.2.90.0000.00818.34
8.2.80.0000.00819.66
8.2.70.0030.00617.63
8.2.60.0000.00818.03
8.2.50.0040.00418.07
8.2.40.0040.00418.22
8.2.30.0000.00718.08
8.2.20.0040.00417.73
8.2.10.0080.00017.55
8.2.00.0040.00417.70
8.1.280.0070.01125.92
8.1.270.0040.00421.84
8.1.260.0030.00526.35
8.1.250.0030.00628.09
8.1.240.0060.00322.24
8.1.230.0070.00420.93
8.1.220.0000.00817.74
8.1.210.0040.00418.98
8.1.200.0030.00617.48
8.1.190.0050.00317.63
8.1.180.0030.00618.10
8.1.170.0070.00318.63
8.1.160.0080.00021.91
8.1.150.0000.00818.72
8.1.140.0000.00817.46
8.1.130.0040.00417.72
8.1.120.0080.00017.55
8.1.110.0000.00717.51
8.1.100.0040.00417.50
8.1.90.0070.00017.48
8.1.80.0000.00817.45
8.1.70.0030.00317.46
8.1.60.0000.00917.61
8.1.50.0060.00317.43
8.1.40.0040.00417.56
8.1.30.0000.00717.67
8.1.20.0040.00417.56
8.1.10.0070.00017.63
8.1.00.0030.00617.57
8.0.300.0040.00420.09
8.0.290.0080.00017.05
8.0.280.0000.00818.38
8.0.270.0030.00317.32
8.0.260.0060.00016.80
8.0.250.0020.00517.00
8.0.240.0070.00216.98
8.0.230.0000.00716.86
8.0.220.0070.00016.87
8.0.210.0000.00716.91
8.0.200.0000.00617.00
8.0.190.0030.00617.04
8.0.180.0000.00716.90
8.0.170.0080.00016.97
8.0.160.0050.00316.84
8.0.150.0060.00316.84
8.0.140.0060.00416.94
8.0.130.0030.00313.30
8.0.120.0080.00016.89
8.0.110.0040.00416.83
8.0.100.0000.00816.94
8.0.90.0040.00416.93
8.0.80.0110.00816.87
8.0.70.0040.00416.82
8.0.60.0050.00316.74
8.0.50.0040.00416.84
8.0.30.0080.01117.02
8.0.20.0110.00817.40
8.0.10.0040.00416.94
8.0.00.0110.00616.71
7.4.330.0030.00315.00
7.4.320.0030.00316.47
7.4.300.0030.00316.60
7.4.290.0030.00316.54
7.4.280.0030.00316.61
7.4.270.0000.00716.55
7.4.260.0060.00316.51
7.4.250.0000.00816.47
7.4.240.0020.00616.56
7.4.230.0030.00316.43
7.4.220.0070.01116.61
7.4.210.0120.00416.56
7.4.200.0040.00416.60
7.4.190.0030.00316.79
7.4.160.0080.00816.65
7.4.150.0090.00917.40
7.4.140.0120.00717.86
7.4.130.0100.01016.50
7.4.120.0120.00816.56
7.4.110.0070.01016.47
7.4.100.0120.00616.28
7.4.90.0070.01016.36
7.4.80.0090.01019.39
7.4.70.0150.00416.58
7.4.60.0100.00616.36
7.4.50.0060.00316.45
7.4.40.0060.00622.77
7.4.30.0060.01116.51
7.4.00.0100.00314.92
7.3.330.0050.00013.14
7.3.320.0060.00013.33
7.3.310.0060.00316.32
7.3.300.0000.00616.16
7.3.290.0110.00416.24
7.3.280.0110.00416.30
7.3.270.0040.01217.40
7.3.260.0120.00816.43
7.3.250.0130.00716.43
7.3.240.0090.01316.34
7.3.230.0120.00416.41
7.3.210.0090.00916.43
7.3.200.0130.00619.39
7.3.190.0120.00916.39
7.3.180.0100.00616.40
7.3.170.0100.00716.45
7.3.160.0060.00916.44
7.3.120.0070.00715.00
7.2.330.0070.01016.75
7.2.320.0090.01516.44
7.2.310.0070.01116.70
7.2.300.0110.00616.69
7.2.290.0100.00716.51
7.2.60.0000.01217.02
7.1.200.0060.00015.89
7.1.70.0040.00416.80
7.1.60.0130.01319.82
7.1.50.0110.01116.80
7.1.00.0000.08022.36
7.0.200.0030.00616.71
7.0.140.0030.06722.08
7.0.60.0100.03319.96
7.0.50.0030.04317.89
7.0.40.0070.08720.24
7.0.30.0330.04320.07
7.0.20.0230.06020.23
7.0.10.0030.09320.23
7.0.00.0030.04020.26
5.6.280.0000.07320.93
5.6.210.0000.08720.62
5.6.200.0070.08018.13
5.6.190.0100.05020.39
5.6.180.0130.04720.55
5.6.170.0300.07720.47
5.6.160.0070.07020.50
5.6.150.0030.04318.27
5.6.140.0030.05718.29
5.6.130.0070.07018.18
5.6.120.0030.05020.90
5.6.110.0030.05721.00
5.6.100.0130.06721.09
5.6.90.0100.07021.02
5.6.80.0130.07320.38
5.5.350.0230.07720.30
5.5.340.0030.03717.99
5.5.330.0170.08020.14
5.5.320.0000.08020.52
5.5.310.0200.04020.27
5.5.300.0100.03718.04
5.5.290.0030.06018.02
5.5.280.0030.05320.69
5.5.270.0100.08320.82
5.5.260.0130.08020.88
5.5.250.0030.04020.67
5.5.240.0170.07320.29
5.4.450.0300.07319.52
5.4.440.0230.06019.32
5.4.430.0200.05319.30
5.4.420.0230.06019.54
5.4.410.0200.03719.39
5.4.400.0230.06319.13
5.4.390.0230.06319.09
5.4.380.0200.07319.09
5.4.370.0300.07019.09
5.4.360.0270.05319.22
5.4.350.0300.05719.06
5.4.340.0230.07319.22
5.4.320.0200.04319.31
5.4.310.0230.04319.09
5.4.300.0230.03319.09
5.4.290.0230.07018.94
5.4.280.0300.06319.21
5.4.270.0170.05019.22
5.4.260.0230.07319.19
5.4.250.0330.06319.26
5.4.240.0270.07018.99
5.4.230.0330.06319.14
5.4.220.0400.06019.21
5.4.210.0230.07718.94
5.4.200.0270.03719.25
5.4.190.0270.05719.23
5.4.180.0270.04318.96
5.4.170.0270.06319.23
5.4.160.0230.07319.06
5.4.150.0200.05319.13
5.4.140.0200.07316.47
5.4.130.0230.07016.42
5.4.120.0230.05716.40
5.4.110.0170.06316.50
5.4.100.0130.04016.46
5.4.90.0300.04016.50
5.4.80.0130.03716.58
5.4.70.0170.03016.22
5.4.60.0130.03316.51
5.4.50.0130.03716.55
5.4.40.0100.04016.38
5.4.30.0200.03016.16
5.4.20.0170.03016.26
5.4.10.0200.03716.25
5.4.00.0100.04015.78
5.3.290.0270.05714.69
5.3.280.0300.03714.68
5.3.270.0270.04314.52
5.3.260.0270.06014.61
5.3.250.0200.07714.59
5.3.240.0230.06314.66
5.3.230.0330.06714.69
5.3.220.0270.07014.65
5.3.210.0170.06314.70
5.3.200.0130.04714.59
5.3.190.0170.04014.44
5.3.180.0130.04014.59
5.3.170.0030.05314.49
5.3.160.0170.03314.57
5.3.150.0130.04014.57
5.3.140.0100.04014.64
5.3.130.0200.03714.48
5.3.120.0200.03714.57
5.3.110.0170.04314.58
5.3.100.0200.04014.23
5.3.90.0200.04714.05
5.3.80.0100.04014.18
5.3.70.0200.04013.93
5.3.60.0100.04013.93
5.3.50.0170.03313.88
5.3.40.0230.03313.88
5.3.30.0070.05014.07
5.3.20.0070.04013.70
5.3.10.0200.02713.64
5.3.00.0130.03713.57
5.2.170.0130.02712.72
5.2.160.0170.02712.72
5.2.150.0130.02712.72
5.2.140.0130.02712.72
5.2.130.0100.02712.72
5.2.120.0100.03012.72
5.2.110.0170.02712.72
5.2.100.0100.03012.72
5.2.90.0130.02712.72
5.2.80.0170.02312.72
5.2.70.0130.03312.72
5.2.60.0100.03012.72
5.2.50.0200.02012.72
5.2.40.0130.02312.72
5.2.30.0030.03312.72
5.2.20.0130.02312.72
5.2.10.0100.02712.72
5.2.00.0070.03012.72
5.1.60.0070.02312.72
5.1.50.0070.02712.72
5.1.40.0070.03012.72
5.1.30.0100.02712.72
5.1.20.0030.03012.72
5.1.10.0100.02712.72
5.1.00.0030.05012.72
5.0.50.0000.03712.72
5.0.40.0030.05012.72
5.0.30.0130.05712.72
5.0.20.0030.04312.72
5.0.10.0070.04312.72
5.0.00.0070.06712.72
4.4.90.0070.01312.72
4.4.80.0100.01312.72
4.4.70.0030.01712.72
4.4.60.0070.01712.72
4.4.50.0070.01312.72
4.4.40.0030.02312.72
4.4.30.0100.01312.72
4.4.20.0070.01312.72
4.4.10.0130.03012.72
4.4.00.0100.03312.72
4.3.110.0070.02012.72
4.3.100.0070.02312.72
4.3.90.0070.02312.72
4.3.80.0070.04012.72
4.3.70.0030.03012.72
4.3.60.0070.03712.72
4.3.50.0170.02312.72
4.3.40.0070.02712.72
4.3.30.0070.02012.72
4.3.20.0070.03312.72
4.3.10.0000.04012.72
4.3.00.0030.03712.72

preferences:
42.74 ms | 401 KiB | 5 Q