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(){ self::dosomething(); echo self::email. "\n"; } static function dosomething(){ echo "this is overwritten now". $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.01116.61
8.3.50.0130.00722.00
8.3.40.0120.00318.96
8.3.30.0030.01019.21
8.3.20.0080.00020.16
8.3.10.0000.00823.48
8.3.00.0080.00020.90
8.2.180.0110.00716.75
8.2.170.0140.00722.96
8.2.160.0160.00420.30
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.01726.16
8.2.120.0050.00322.12
8.2.110.0040.00422.16
8.2.100.0090.00317.78
8.2.90.0040.00419.09
8.2.80.0030.00517.97
8.2.70.0000.00817.50
8.2.60.0030.00617.78
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0000.00717.93
8.2.20.0030.00617.66
8.2.10.0030.00517.58
8.2.00.0080.00017.60
8.1.280.0130.01025.92
8.1.270.0080.00022.20
8.1.260.0040.00426.35
8.1.250.0030.00728.09
8.1.240.0030.00523.94
8.1.230.0110.00019.09
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.53
8.1.180.0040.00418.10
8.1.170.0040.00418.48
8.1.160.0000.00821.97
8.1.150.0000.00718.55
8.1.140.0000.00817.42
8.1.130.0040.00417.75
8.1.120.0000.00817.45
8.1.110.0050.00217.30
8.1.100.0000.00717.38
8.1.90.0000.00717.36
8.1.80.0040.00417.46
8.1.70.0050.00317.40
8.1.60.0030.00617.66
8.1.50.0000.00817.54
8.1.40.0000.00917.58
8.1.30.0030.00517.65
8.1.20.0040.00417.57
8.1.10.0000.00717.57
8.1.00.0000.00717.46
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0030.00318.32
8.0.270.0000.00717.18
8.0.260.0060.00016.75
8.0.250.0030.00316.99
8.0.240.0030.00316.95
8.0.230.0030.00616.98
8.0.220.0000.00716.82
8.0.210.0030.00316.91
8.0.200.0000.00616.98
8.0.190.0050.00216.93
8.0.180.0000.00716.93
8.0.170.0030.00516.95
8.0.160.0050.00216.93
8.0.150.0000.00716.95
8.0.140.0000.00816.88
8.0.130.0000.00513.38
8.0.120.0000.00816.86
8.0.110.0050.00216.79
8.0.100.0070.00016.80
8.0.90.0040.00416.74
8.0.80.0160.00616.97
8.0.70.0080.00016.98
8.0.60.0040.00416.76
8.0.50.0030.00516.97
8.0.30.0100.01317.15
8.0.20.0140.00417.40
8.0.10.0050.00217.07
8.0.00.0100.01016.71
7.4.330.0050.00015.03
7.4.320.0000.00616.52
7.4.300.0030.00316.63
7.4.290.0070.00016.46
7.4.280.0000.00816.61
7.4.270.0070.00016.66
7.4.260.0030.00316.63
7.4.250.0060.00316.56
7.4.240.0000.00716.53
7.4.230.0070.00016.50
7.4.220.0030.02216.65
7.4.210.0080.00916.58
7.4.200.0030.00316.68
7.4.190.0000.00716.71
7.4.160.0100.01016.48
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0050.01216.64
7.4.120.0070.01016.63
7.4.110.0080.00816.28
7.4.100.0070.01616.42
7.4.90.0100.00716.57
7.4.80.0140.00316.72
7.4.70.0040.01716.45
7.4.60.0140.00616.49
7.4.50.0030.00616.57
7.4.40.0060.00922.77
7.4.30.0090.00616.59
7.4.10.0130.00714.82
7.4.00.0050.01115.15
7.3.330.0000.00513.18
7.3.320.0030.00313.32
7.3.310.0000.00616.47
7.3.300.0030.00316.34
7.3.290.0100.01016.35
7.3.280.0100.00816.35
7.3.270.0140.00317.40
7.3.260.0080.00816.35
7.3.250.0080.01016.48
7.3.240.0130.00316.38
7.3.230.0030.01616.39
7.3.210.0130.00416.32
7.3.200.0120.00619.39
7.3.190.0140.00416.29
7.3.180.0100.00716.39
7.3.170.0120.00916.41
7.3.160.0090.00616.39
7.3.130.0100.00615.09
7.3.120.0110.00414.80
7.3.110.0090.00914.54
7.3.100.0060.00614.82
7.3.90.0100.00714.99
7.3.80.0090.00614.77
7.3.70.0070.00714.62
7.3.60.0080.00314.60
7.3.50.0000.01814.40
7.3.40.0060.00914.87
7.3.30.0030.01214.64
7.3.20.0000.01416.77
7.3.10.0110.00416.59
7.3.00.0030.01016.47
7.2.330.0140.00316.73
7.2.320.0080.00916.70
7.2.310.0060.01116.50
7.2.300.0130.00316.39
7.2.290.0060.00916.74
7.2.260.0070.01115.27
7.2.250.0090.00914.92
7.2.240.0060.00915.08
7.2.230.0030.00915.05
7.2.220.0130.00015.07
7.2.210.0100.00315.20
7.2.200.0030.01014.95
7.2.190.0040.00815.09
7.2.180.0060.00615.04
7.2.170.0100.00315.13
7.2.160.0060.00615.02
7.2.150.0100.00717.02
7.2.140.0000.01716.92
7.2.130.0080.00416.85
7.2.120.0030.01116.85
7.2.110.0050.01016.92
7.2.100.0040.00816.83
7.2.90.0120.00516.81
7.2.80.0040.00916.84
7.2.70.0050.01016.84
7.2.60.0060.00816.95
7.2.50.0050.00916.91
7.2.40.0060.00616.71
7.2.30.0030.01216.76
7.2.20.0060.00816.98
7.2.10.0030.00816.83
7.2.00.0020.00917.64
7.1.330.0000.01415.52
7.1.320.0090.00615.84
7.1.310.0030.01015.75
7.1.300.0070.01015.68
7.1.290.0030.01015.42
7.1.280.0110.00015.75
7.1.270.0040.00815.65
7.1.260.0000.01115.69
7.1.250.0030.00815.56
7.1.240.0060.00615.36
7.1.230.0130.00315.71
7.1.220.0080.00515.51
7.1.210.0100.00315.49
7.1.200.0020.01215.82
7.1.190.0070.01015.55
7.1.180.0070.00715.50
7.1.170.0070.01015.63
7.1.160.0060.01215.85
7.1.150.0060.00615.86
7.1.140.0030.00915.68
7.1.130.0100.00715.36
7.1.120.0130.00015.48
7.1.110.0040.00415.41
7.1.100.0030.01016.71
7.1.90.0060.00315.56
7.1.80.0060.00915.70
7.1.70.0030.00816.35
7.1.60.0070.01017.46
7.1.50.0080.00916.17
7.1.40.0100.00315.36
7.1.30.0060.00615.60
7.1.20.0060.00915.80
7.1.10.0070.00315.57
7.1.00.0040.04319.08
7.0.330.0000.01415.35
7.0.320.0040.00815.47
7.0.310.0040.01415.50
7.0.300.0000.01315.34
7.0.290.0070.00715.15
7.0.280.0000.01215.55
7.0.270.0130.00315.47
7.0.260.0070.00315.45
7.0.250.0040.00715.59
7.0.240.0130.00015.33
7.0.230.0060.00615.24
7.0.220.0060.00615.43
7.0.210.0060.00615.27
7.0.200.0040.00615.98
7.0.190.0000.01115.43
7.0.180.0030.00915.41
7.0.170.0060.00315.40
7.0.160.0040.00815.46
7.0.150.0070.00315.15
7.0.140.0110.03518.90
7.0.130.0110.00015.55
7.0.120.0030.00715.57
7.0.110.0060.00615.44
7.0.100.0000.01515.05
7.0.90.0040.00415.47
7.0.80.0000.01215.48
7.0.70.0030.01015.28
7.0.60.0050.02317.56
7.0.50.0070.04016.78
7.0.40.0060.04516.83
7.0.30.0150.02116.83
7.0.20.0220.04216.78
7.0.10.0150.04516.89
7.0.00.0080.04216.89
5.6.400.0040.01214.35
5.6.390.0060.00914.55
5.6.380.0060.00614.19
5.6.370.0060.00614.22
5.6.360.0070.01014.60
5.6.350.0060.01014.71
5.6.340.0000.01314.45
5.6.330.0110.00414.52
5.6.320.0070.00714.32
5.6.310.0100.00314.51
5.6.300.0090.00314.37
5.6.290.0030.01014.75
5.6.280.0100.03217.79
5.6.270.0120.00014.18
5.6.260.0040.01114.22
5.6.250.0000.01114.50
5.6.240.0030.00614.47
5.6.230.0040.01114.23
5.6.220.0030.00914.23
5.6.210.0150.03417.55
5.6.200.0030.04716.24
5.6.190.0030.03817.45
5.6.180.0020.02517.24
5.6.170.0190.04017.34
5.6.160.0010.03617.40
5.6.150.0050.03916.18
5.6.140.0080.03216.41
5.6.130.0060.03116.47
5.6.120.0090.04517.83
5.6.110.0100.04017.85
5.6.100.0070.03417.63
5.6.90.0100.04017.58
5.6.80.0040.03717.31
5.6.70.0170.03417.28
5.6.60.0060.00614.11
5.6.50.0080.00814.63
5.6.40.0030.00614.19
5.6.30.0030.00914.21
5.6.20.0060.00914.30
5.6.10.0140.00014.37
5.6.00.0030.01314.53
5.5.380.0030.00614.30
5.5.370.0110.00014.30
5.5.360.0070.00314.16
5.5.350.0050.04317.45
5.5.340.0050.04216.14
5.5.330.0110.02617.25
5.5.320.0030.02517.48
5.5.310.0150.04417.56
5.5.300.0070.04216.11
5.5.290.0040.04116.15
5.5.280.0080.04117.53
5.5.270.0040.04217.60
5.5.260.0080.03317.68
5.5.250.0030.04617.42
5.5.240.0040.04417.30
5.5.230.0040.01414.20
5.5.220.0080.00814.54
5.5.210.0090.00914.40
5.5.200.0040.00814.12
5.5.190.0070.00714.30
5.5.180.0000.01514.00
5.5.170.0150.00014.27
5.5.160.0060.00614.21
5.5.150.0100.00314.40
5.5.140.0000.00914.46
5.5.130.0100.00314.31
5.5.120.0030.01214.13
5.5.110.0090.00614.38
5.5.100.0000.00914.18
5.5.90.0030.00514.22
5.5.80.0100.00314.40
5.5.70.0060.01014.12
5.5.60.0000.01014.36
5.5.50.0060.00614.23
5.5.40.0060.00914.36
5.5.30.0070.00414.23
5.5.20.0060.00614.21
5.5.10.0090.00314.20
5.5.00.0000.01414.32
5.4.450.0480.02315.89
5.4.440.0400.03815.83
5.4.430.0090.03115.88
5.4.420.0350.03115.92
5.4.410.0450.03015.90
5.4.400.0080.03515.81
5.4.390.0370.03515.87
5.4.380.0140.03215.60
5.4.370.0170.03515.61
5.4.360.0180.02815.55
5.4.350.0160.02815.60
5.4.340.0190.02915.63
5.4.330.0050.00512.46
5.4.320.0050.02312.49
5.4.310.0040.02412.48
5.4.300.0030.02312.49
5.4.290.0020.03012.48
5.4.280.0040.02012.44
5.4.270.0070.02112.42
5.4.260.0060.02212.42
5.4.250.0030.02212.42
5.4.240.0070.02012.42
5.4.230.0060.02312.41
5.4.220.0070.01912.41
5.4.210.0070.01912.41
5.4.200.0050.02212.42
5.4.190.0050.02012.41
5.4.180.0020.02412.41
5.4.170.0030.02412.42
5.4.160.0060.02112.41
5.4.150.0050.02612.41
5.4.140.0050.02212.25
5.4.130.0090.01812.25
5.4.120.0080.01812.22
5.4.110.0090.01712.22
5.4.100.0020.02312.22
5.4.90.0090.01812.22
5.4.80.0070.01912.22
5.4.70.0050.02412.22
5.4.60.0060.02312.22
5.4.50.0030.02212.22
5.4.40.0050.02112.22
5.4.30.0050.02112.21
5.4.20.0040.02012.22
5.4.10.0030.02212.21
5.4.00.0090.01811.96
5.3.290.0080.02912.63
5.3.280.0080.01812.59
5.3.270.0060.02112.59
5.3.260.0050.02712.59
5.3.250.0030.02112.59
5.3.240.0040.02412.59
5.3.230.0070.02012.59
5.3.220.0060.02012.57
5.3.210.0060.02312.57
5.3.200.0050.02112.57
5.3.190.0040.02312.57
5.3.180.0040.02312.57
5.3.170.0070.02012.57
5.3.160.0070.02112.57
5.3.150.0040.02212.57
5.3.140.0040.02212.56
5.3.130.0040.02112.56
5.3.120.0020.02512.56
5.3.110.0060.02212.56
5.3.100.0040.02212.29
5.3.90.0060.01912.27
5.3.80.0060.01812.27
5.3.70.0040.02112.27
5.3.60.0020.02512.26
5.3.50.0040.02112.23
5.3.40.0060.02012.23
5.3.30.0020.02112.21
5.3.20.0050.02012.11
5.3.10.0030.02712.08
5.3.00.0060.02012.08
5.2.170.0060.0309.18
5.2.160.0080.0269.18
5.2.150.0040.0399.18
5.2.140.0050.0309.18
5.2.130.0060.0349.14
5.2.120.0070.0269.14
5.2.110.0050.0299.15
5.2.100.0030.0309.15
5.2.90.0030.0309.15
5.2.80.0050.0299.14
5.2.70.0020.0329.14
5.2.60.0030.0319.09
5.2.50.0040.0309.06
5.2.40.0070.0269.03
5.2.30.0020.0329.01
5.2.20.0040.0299.01
5.2.10.0030.0298.92
5.2.00.0060.0288.77
5.1.60.0050.0238.05
5.1.50.0030.0268.05
5.1.40.0050.0238.04
5.1.30.0060.0248.39
5.1.20.0060.0258.42
5.1.10.0030.0278.14
5.1.00.0050.0248.13
5.0.50.0030.0206.62
5.0.40.0000.0226.47
5.0.30.0010.0336.29
5.0.20.0040.0186.25
5.0.10.0050.0176.23
5.0.00.0020.0346.22
4.4.90.0020.0164.78
4.4.80.0030.0144.75
4.4.70.0030.0154.76
4.4.60.0050.0134.75
4.4.50.0060.0124.77
4.4.40.0030.0254.71
4.4.30.0000.0184.76
4.4.20.0040.0144.84
4.4.10.0010.0174.85
4.4.00.0040.0234.76
4.3.110.0050.0134.67
4.3.100.0010.0194.67
4.3.90.0020.0154.63
4.3.80.0040.0234.58
4.3.70.0030.0144.63
4.3.60.0030.0174.63
4.3.50.0010.0174.63
4.3.40.0060.0204.53
4.3.30.0030.0153.28
4.3.20.0000.0243.27
4.3.10.0030.0173.23
4.3.00.0030.01313.14

preferences:
64.37 ms | 401 KiB | 5 Q