3v4l.org

run code in 300+ PHP versions simultaneously
<?php class StaticA { public function setEmail($redirect) { $this->email = $redirect; } static function dosomething(){ $obj = new static; $obj->email = "e@01art.de"; $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"; } static function dosomething(){ echo "this is overwritten now". parent::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.40.0100.01018.98
8.3.30.0070.00719.09
8.3.20.0000.00720.34
8.3.10.0000.00821.88
8.3.00.0080.00022.64
8.2.170.0120.00322.96
8.2.160.0120.00320.77
8.2.150.0040.00424.18
8.2.140.0030.00724.66
8.2.130.0090.00926.16
8.2.120.0040.00419.48
8.2.110.0040.00422.07
8.2.100.0090.00319.64
8.2.90.0040.00419.17
8.2.80.0040.00419.79
8.2.70.0060.00317.63
8.2.60.0000.00818.05
8.2.50.0000.00818.07
8.2.40.0060.00318.16
8.2.30.0060.00318.01
8.2.20.0000.00717.58
8.2.10.0030.00519.31
8.2.00.0000.00717.51
8.1.270.0080.00022.14
8.1.260.0110.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.91
8.1.230.0110.00019.20
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0030.00617.23
8.1.190.0000.00817.66
8.1.180.0040.00418.10
8.1.170.0030.00918.50
8.1.160.0040.00421.95
8.1.150.0000.00718.53
8.1.140.0060.00317.53
8.1.130.0030.00317.80
8.1.120.0030.00417.54
8.1.110.0040.00417.50
8.1.100.0050.00317.43
8.1.90.0000.00817.44
8.1.80.0070.00017.48
8.1.70.0070.00017.45
8.1.60.0080.00017.63
8.1.50.0040.00417.57
8.1.40.0040.00417.60
8.1.30.0050.00317.59
8.1.20.0030.00617.74
8.1.10.0030.00617.61
8.1.00.0030.00617.62
8.0.300.0030.00318.77
8.0.290.0000.00717.18
8.0.280.0050.00318.46
8.0.270.0000.00717.32
8.0.260.0000.00816.90
8.0.250.0000.00716.96
8.0.240.0030.00716.93
8.0.230.0030.00316.85
8.0.220.0040.00416.79
8.0.210.0040.00416.82
8.0.200.0000.00716.86
8.0.190.0020.00516.99
8.0.180.0030.00316.90
8.0.170.0000.00716.96
8.0.160.0040.00416.94
8.0.150.0030.00316.92
8.0.140.0000.00916.89
8.0.130.0030.00313.32
8.0.120.0000.00816.91
8.0.110.0000.00716.80
8.0.100.0000.00717.02
8.0.90.0050.00216.77
8.0.80.0040.01416.82
8.0.70.0050.00316.78
8.0.60.0000.00716.79
8.0.50.0040.00416.63
8.0.30.0140.00517.02
8.0.20.0060.01217.40
8.0.10.0040.00416.92
8.0.00.0090.00916.76
7.4.330.0050.00015.00
7.4.320.0040.00416.48
7.4.300.0070.00016.45
7.4.290.0060.00016.46
7.4.280.0000.00616.51
7.4.270.0070.00016.64
7.4.260.0000.00716.52
7.4.250.0020.00516.61
7.4.240.0050.00316.46
7.4.230.0060.00316.32
7.4.220.0130.00616.45
7.4.210.0100.00716.60
7.4.200.0040.00416.52
7.4.190.0030.00316.48
7.4.160.0070.01016.56
7.4.150.0110.00817.40
7.4.140.0120.01217.86
7.4.130.0150.00516.57
7.4.120.0100.00716.50
7.4.110.0140.00316.28
7.4.100.0030.01416.49
7.4.90.0030.01416.44
7.4.80.0130.00619.39
7.4.70.0080.00816.52
7.4.60.0070.01016.48
7.4.50.0000.00416.63
7.4.40.0080.00822.77
7.4.30.0040.01116.52
7.4.10.0110.00815.20
7.4.00.0080.00914.87
7.3.330.0040.00413.21
7.3.320.0020.00213.25
7.3.310.0070.00016.30
7.3.300.0000.00716.27
7.3.290.0140.00316.32
7.3.280.0050.01216.26
7.3.270.0110.00517.40
7.3.260.0070.01416.31
7.3.250.0110.00816.47
7.3.240.0110.00716.38
7.3.230.0110.00616.39
7.3.210.0140.00316.36
7.3.200.0110.00819.39
7.3.190.0120.00916.50
7.3.180.0110.00716.46
7.3.170.0060.00916.63
7.3.160.0080.00816.53
7.3.130.0140.00314.68
7.3.120.0080.00914.81
7.3.110.0100.00814.83
7.3.100.0070.00714.84
7.3.90.0080.00514.83
7.3.80.0110.00314.82
7.3.70.0070.00714.67
7.3.60.0070.00614.78
7.3.50.0020.01014.86
7.3.40.0060.00714.66
7.3.30.0050.00714.64
7.3.20.0030.00716.58
7.3.10.0080.00516.68
7.3.00.0090.00416.45
7.2.330.0120.00616.79
7.2.320.0100.01316.50
7.2.310.0060.01216.41
7.2.300.0030.01716.88
7.2.290.0110.01216.83
7.2.260.0110.00714.93
7.2.250.0100.00715.02
7.2.240.0030.01414.90
7.2.230.0100.00515.04
7.2.220.0050.00814.81
7.2.210.0060.00714.92
7.2.200.0040.00915.01
7.2.190.0050.00714.98
7.2.180.0030.00915.23
7.2.170.0060.01015.04
7.2.160.0050.00515.07
7.2.150.0070.00717.06
7.2.140.0120.00416.86
7.2.130.0090.00617.07
7.2.120.0030.01416.61
7.2.110.0060.00916.96
7.2.100.0030.00616.89
7.2.90.0090.00316.99
7.2.80.0090.00316.95
7.2.70.0000.00916.80
7.2.60.0070.00716.83
7.2.50.0030.01016.98
7.2.40.0000.01616.96
7.2.30.0040.00717.14
7.2.20.0070.00317.06
7.2.10.0030.01017.00
7.2.00.0040.01116.89
7.1.330.0060.00915.58
7.1.320.0100.00415.71
7.1.310.0030.00915.83
7.1.300.0050.00915.78
7.1.290.0060.00515.82
7.1.280.0090.00815.70
7.1.270.0070.00615.68
7.1.260.0040.00715.76
7.1.250.0030.00915.83
7.1.240.0030.01315.82
7.1.230.0070.01015.59
7.1.220.0080.00415.71
7.1.210.0030.01315.41
7.1.200.0060.00615.65
7.1.190.0090.00615.57
7.1.180.0040.00415.79
7.1.170.0000.01215.66
7.1.160.0070.00415.57
7.1.150.0040.00715.55
7.1.140.0060.00615.62
7.1.130.0090.00315.52
7.1.120.0000.01215.77
7.1.110.0030.00915.89
7.1.100.0030.00817.17
7.1.90.0060.00615.99
7.1.80.0040.01115.98
7.1.70.0080.00316.40
7.1.60.0050.01417.81
7.1.50.0050.00916.14
7.1.40.0030.00715.48
7.1.30.0030.01015.73
7.1.20.0030.00615.69
7.1.10.0130.00315.62
7.1.00.0080.03718.93
7.0.330.0040.01115.22
7.0.320.0060.00315.27
7.0.310.0060.00615.49
7.0.300.0080.00015.48
7.0.290.0060.00315.42
7.0.280.0000.01415.36
7.0.270.0030.01015.29
7.0.260.0030.00715.11
7.0.250.0030.00615.61
7.0.240.0030.00615.45
7.0.230.0080.00015.38
7.0.220.0060.00315.37
7.0.210.0070.00415.55
7.0.200.0050.00815.92
7.0.190.0130.00315.45
7.0.180.0000.00915.51
7.0.170.0070.00315.59
7.0.160.0030.01115.12
7.0.150.0070.00715.30
7.0.140.0020.04218.75
7.0.130.0040.00415.30
7.0.120.0030.01015.46
7.0.110.0040.00715.43
7.0.100.0040.00415.46
7.0.90.0030.00715.52
7.0.80.0100.00315.51
7.0.70.0050.02718.54
7.0.60.0030.03418.44
7.0.50.0060.04018.81
7.0.40.0070.02316.74
7.0.30.0060.02716.81
7.0.20.0050.04416.79
7.0.10.0080.02916.85
7.0.00.0050.03316.73
5.6.400.0040.00414.35
5.6.390.0040.00814.02
5.6.380.0030.01114.47
5.6.370.0060.00614.45
5.6.360.0080.00414.64
5.6.350.0000.00814.20
5.6.340.0100.00014.45
5.6.330.0070.01014.58
5.6.320.0060.00614.29
5.6.310.0070.00714.59
5.6.300.0030.01014.16
5.6.290.0030.00914.49
5.6.280.0030.04117.65
5.6.270.0130.00314.30
5.6.260.0090.00614.44
5.6.250.0030.00614.18
5.6.240.0030.01014.10
5.6.230.0040.00414.37
5.6.220.0110.02517.54
5.6.210.0050.02517.49
5.6.200.0050.04017.76
5.6.190.0050.02517.62
5.6.180.0050.03817.75
5.6.170.0020.03017.72
5.6.160.0030.03017.82
5.6.150.0050.02217.76
5.6.140.0080.04317.90
5.6.130.0030.02817.64
5.6.120.0030.04017.67
5.6.110.0080.02717.63
5.6.100.0050.04317.58
5.6.90.0050.03717.68
5.6.80.0070.03517.27
5.6.70.0030.04617.37
5.6.60.0100.03817.40
5.6.50.0070.04417.24
5.6.40.0020.04417.35
5.6.30.0050.04617.46
5.6.20.0110.02817.53
5.6.10.0050.04217.32
5.6.00.0040.04217.30
5.5.380.0070.00714.23
5.5.370.0030.00614.47
5.5.360.0030.03017.34
5.5.350.0070.02317.52
5.5.340.0040.02517.60
5.5.330.0000.03117.52
5.5.320.0050.03717.64
5.5.310.0070.03817.64
5.5.300.0090.03017.64
5.5.290.0030.02817.58
5.5.280.0040.04517.61
5.5.270.0040.05017.46
5.5.260.0050.04417.64
5.5.250.0070.03317.38
5.5.240.0100.04017.26
5.5.230.0030.04717.22
5.5.220.0050.04317.28
5.5.210.0080.04017.33
5.5.200.0030.04317.32
5.5.190.0070.04117.31
5.5.180.0040.04817.28
5.5.170.0040.00814.19
5.5.160.0020.04917.15
5.5.150.0070.04317.07
5.5.140.0070.04517.22
5.5.130.0030.03617.41
5.5.120.0080.04117.18
5.5.110.0070.03317.04
5.5.100.0060.04817.09
5.5.90.0050.03517.23
5.5.80.0050.03217.25
5.5.70.0050.03617.24
5.5.60.0050.03217.13
5.5.50.0080.02317.23
5.5.40.0070.03217.24
5.5.30.0000.03617.10
5.5.20.0050.04217.11
5.5.10.0070.04217.21
5.5.00.0060.04117.14
5.4.450.0050.04015.88
5.4.440.0080.03015.75
5.4.430.0130.03515.88
5.4.420.0070.03815.81
5.4.410.0020.04015.68
5.4.400.0050.02515.64
5.4.390.0020.03315.71
5.4.380.0020.04415.64
5.4.370.0010.03615.71
5.4.360.0060.03715.60
5.4.350.0080.03815.65
5.4.340.0030.04215.56
5.4.330.0000.01112.28
5.4.320.0030.04215.75
5.4.310.0030.04115.59
5.4.300.0080.03715.72
5.4.290.0060.03815.59
5.4.280.0050.04215.71
5.4.270.0040.03615.58
5.4.260.0060.02715.55
5.4.250.0030.04015.63
5.4.240.0080.03815.70
5.4.230.0040.03015.63
5.4.220.0030.04015.58
5.4.210.0060.03315.65
5.4.200.0070.04015.57
5.4.190.0020.04315.69
5.4.180.0030.04015.64
5.4.170.0030.03415.70
5.4.160.0040.02215.68
5.4.150.0050.02715.69
5.4.140.0050.02714.26
5.4.130.0050.03714.37
5.4.120.0050.03214.36
5.4.110.0070.03714.33
5.4.100.0090.03314.33
5.4.90.0020.04114.33
5.4.80.0060.02614.33
5.4.70.0090.03314.37
5.4.60.0030.03814.36
5.4.50.0050.04314.35
5.4.40.0020.03514.38
5.4.30.0050.03714.38
5.4.20.0030.03214.30
5.4.10.0030.03314.34
5.4.00.0020.04014.06
5.3.290.0020.03313.58
5.3.280.0090.02313.58
5.3.270.0070.03813.58
5.3.260.0010.04313.58
5.3.250.0030.04113.58
5.3.240.0030.03113.58
5.3.230.0000.04513.58
5.3.220.0030.03813.58
5.3.210.0070.03813.58
5.3.200.0020.04413.58
5.3.190.0040.04013.58
5.3.180.0060.03513.58
5.3.170.0070.03713.58
5.3.160.0060.03713.58
5.3.150.0030.03313.58
5.3.140.0080.03013.58
5.3.130.0030.03713.58
5.3.120.0050.03713.58
5.3.110.0070.03013.58
5.3.100.0030.03813.58
5.3.90.0020.03013.58
5.3.80.0040.03313.58
5.3.70.0050.04213.58
5.3.60.0030.03813.58
5.3.50.0040.04013.58
5.3.40.0030.04213.58
5.3.30.0000.04113.58
5.3.20.0050.03913.58
5.3.10.0050.03613.58
5.3.00.0030.03713.58
5.2.170.0070.05714.88
5.2.160.0070.05314.88
5.2.150.0030.06314.88
5.2.140.0030.06714.88
5.2.130.0000.06014.88
5.2.120.0070.06014.88
5.2.110.0000.06314.88
5.2.100.0070.06014.88
5.2.90.0000.06314.88
5.2.80.0000.06014.88
5.2.70.0030.05314.88
5.2.60.0000.03314.88
5.2.50.0070.03314.88
5.2.40.0070.03014.88
5.2.30.0030.06014.88
5.2.20.0070.05014.88
5.2.10.0000.06314.88
5.2.00.0070.05014.88
5.1.60.0070.03714.88
5.1.50.0000.06014.88
5.1.40.0000.05714.88
5.1.30.0070.04714.88
5.1.20.0000.06014.88
5.1.10.0030.06314.88
5.1.00.0070.05014.88
5.0.50.0000.04314.88
5.0.40.0000.03714.88
5.0.30.0000.06714.88
5.0.20.0000.04714.88
5.0.10.0000.04714.88
5.0.00.0030.06014.88
4.4.90.0000.02714.88
4.4.80.0000.01314.88
4.4.70.0000.03714.88
4.4.60.0000.03014.88
4.4.50.0000.03014.88
4.4.40.0000.06014.88
4.4.30.0000.03314.88
4.4.20.0030.03314.88
4.4.10.0000.03314.88
4.4.00.0000.04714.88
4.3.110.0030.03314.88
4.3.100.0070.03014.88
4.3.90.0000.03714.88
4.3.80.0000.05314.88
4.3.70.0070.02314.88
4.3.60.0000.03314.88
4.3.50.0030.03014.88
4.3.40.0000.05314.88
4.3.30.0000.03714.88
4.3.20.0000.04014.88
4.3.10.0030.03314.88
4.3.00.0000.03714.88

preferences:
41.32 ms | 400 KiB | 5 Q