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"; } function ddosomething(){ echo "YOU SUCK AT PHOTOSHOP!"; } } $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.0180.00318.82
8.3.30.0120.00319.13
8.3.20.0030.00620.09
8.3.10.0080.00021.88
8.3.00.0030.00622.44
8.2.170.0040.01122.96
8.2.160.0070.01120.85
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.61
8.2.110.0070.00420.52
8.2.100.0060.00617.79
8.2.90.0040.00418.16
8.2.80.0080.00019.77
8.2.70.0000.00917.63
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0090.00018.22
8.2.30.0050.00218.14
8.2.20.0040.00417.59
8.2.10.0000.00817.53
8.2.00.0040.00417.70
8.1.270.0030.00622.18
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0100.00722.03
8.1.230.0070.00420.92
8.1.220.0050.00317.74
8.1.210.0000.00818.85
8.1.200.0060.00317.35
8.1.190.0000.00817.52
8.1.180.0040.00418.10
8.1.170.0060.00318.63
8.1.160.0000.00722.04
8.1.150.0000.00718.58
8.1.140.0040.00417.48
8.1.130.0050.00317.85
8.1.120.0000.00717.38
8.1.110.0000.00717.36
8.1.100.0030.00417.39
8.1.90.0070.00017.35
8.1.80.0040.00417.40
8.1.70.0070.00017.44
8.1.60.0040.00417.68
8.1.50.0030.00617.43
8.1.40.0000.00817.52
8.1.30.0070.00017.68
8.1.20.0030.00617.70
8.1.10.0030.00517.46
8.1.00.0040.00417.38
8.0.300.0080.00020.16
8.0.290.0000.00717.18
8.0.280.0030.00318.45
8.0.270.0000.00717.27
8.0.260.0000.00616.82
8.0.250.0000.00717.01
8.0.240.0060.00316.89
8.0.230.0030.00316.90
8.0.220.0030.00516.88
8.0.210.0030.00316.94
8.0.200.0000.00617.01
8.0.190.0000.00816.96
8.0.180.0000.00716.82
8.0.170.0030.00516.96
8.0.160.0000.00716.93
8.0.150.0050.00316.75
8.0.140.0030.00616.93
8.0.130.0060.00013.31
8.0.120.0000.00716.88
8.0.110.0020.00516.74
8.0.100.0000.00816.98
8.0.90.0030.00516.93
8.0.80.0100.00516.89
8.0.70.0050.00216.85
8.0.60.0000.00716.96
8.0.50.0040.00416.96
8.0.30.0090.01217.20
8.0.20.0080.01017.40
8.0.10.0000.00716.86
8.0.00.0070.01116.64
7.4.330.0060.00015.00
7.4.320.0070.00016.57
7.4.300.0000.00716.61
7.4.290.0030.00316.53
7.4.280.0030.00316.66
7.4.270.0060.00016.61
7.4.260.0030.00316.61
7.4.250.0000.00816.54
7.4.240.0030.00416.46
7.4.230.0030.00316.43
7.4.220.0070.01116.68
7.4.210.0090.00716.62
7.4.200.0000.00716.50
7.4.190.0030.00316.52
7.4.160.0100.01016.68
7.4.150.0040.01317.40
7.4.140.0130.00517.86
7.4.130.0090.01416.45
7.4.120.0100.00816.66
7.4.110.0140.00316.41
7.4.100.0090.00916.46
7.4.90.0120.00416.63
7.4.80.0090.00919.39
7.4.70.0090.00816.62
7.4.60.0080.00816.32
7.4.50.0000.00816.51
7.4.40.0030.01122.77
7.4.30.0060.00916.60
7.4.00.0060.01214.94
7.3.330.0000.00613.31
7.3.320.0050.00013.18
7.3.310.0060.00316.37
7.3.300.0040.00416.18
7.3.290.0130.00716.36
7.3.280.0090.00516.29
7.3.270.0090.00917.40
7.3.260.0130.00416.44
7.3.250.0100.00816.39
7.3.240.0040.01316.59
7.3.230.0090.00616.51
7.3.210.0140.00916.52
7.3.200.0120.00919.39
7.3.190.0090.01216.47
7.3.180.0070.01016.52
7.3.170.0040.01216.54
7.3.160.0100.00616.32
7.3.120.0090.00714.66
7.3.110.0130.00314.85
7.3.100.0060.01314.46
7.3.90.0000.01414.55
7.3.80.0090.00614.57
7.3.70.0000.01114.77
7.3.60.0090.00014.84
7.3.50.0100.00714.73
7.3.40.0100.00014.66
7.3.30.0060.00614.53
7.3.20.0090.00616.41
7.3.10.0070.00716.39
7.3.00.0030.01016.54
7.2.330.0090.00916.72
7.2.320.0070.01016.55
7.2.310.0030.01916.80
7.2.300.0100.00616.81
7.2.290.0070.00816.79
7.2.250.0070.01015.05
7.2.240.0080.01115.28
7.2.230.0060.00914.97
7.2.220.0070.00715.05
7.2.210.0000.01415.21
7.2.200.0070.00715.14
7.2.190.0040.01414.88
7.2.180.0030.01215.01
7.2.170.0040.01114.71
7.2.160.0100.00014.52
7.2.150.0030.01216.88
7.2.140.0060.00916.69
7.2.130.0000.01716.75
7.2.120.0030.01216.86
7.2.110.0070.01016.64
7.2.100.0100.01017.01
7.2.90.0090.00616.76
7.2.80.0040.01317.15
7.2.70.0060.00616.97
7.2.60.0060.01116.83
7.2.50.0000.01916.90
7.2.40.0030.00717.02
7.2.30.0120.00616.76
7.2.20.0090.00617.11
7.2.10.0000.01416.71
7.2.00.0050.00918.24
7.1.330.0060.00615.54
7.1.320.0090.00615.49
7.1.310.0060.00615.82
7.1.300.0120.00415.45
7.1.290.0060.00915.55
7.1.280.0040.00415.19
7.1.270.0040.00915.61
7.1.260.0090.00615.40
7.1.250.0140.00015.42
7.1.240.0080.00515.60
7.1.230.0110.00715.89
7.1.220.0090.00915.78
7.1.210.0090.00315.52
7.1.200.0030.00715.65
7.1.190.0000.01515.75
7.1.180.0060.00915.76
7.1.170.0040.00815.93
7.1.160.0000.01215.51
7.1.150.0080.00515.89
7.1.140.0070.00715.93
7.1.130.0100.00315.80
7.1.120.0050.00515.71
7.1.110.0040.00815.78
7.1.100.0050.00917.13
7.1.90.0070.00715.73
7.1.80.0050.00315.92
7.1.70.0040.00616.37
7.1.60.0080.01016.38
7.1.50.0100.00616.33
7.1.40.0090.00615.74
7.1.30.0110.00415.68
7.1.20.0030.01315.46
7.1.10.0130.00315.48
7.1.00.0020.04018.96
7.0.330.0080.00615.41
7.0.320.0070.00715.24
7.0.310.0060.00615.48
7.0.300.0030.01015.40
7.0.290.0040.00815.51
7.0.280.0080.00815.20
7.0.270.0000.01315.35
7.0.260.0070.01015.32
7.0.250.0100.00615.33
7.0.240.0060.00615.42
7.0.230.0040.00415.59
7.0.220.0040.00914.95
7.0.210.0090.00615.29
7.0.200.0040.00616.03
7.0.190.0080.00315.33
7.0.180.0120.00015.05
7.0.170.0000.00815.25
7.0.160.0090.00615.31
7.0.150.0000.01115.41
7.0.140.0030.04118.59
7.0.130.0060.00915.41
7.0.120.0050.00515.33
7.0.110.0060.00315.13
7.0.100.0060.00815.37
7.0.90.0040.01215.39
7.0.80.0000.01215.37
7.0.70.0060.00615.50
7.0.60.0080.02617.39
7.0.50.0060.02316.71
7.0.40.0000.03016.78
7.0.30.0120.02616.81
7.0.20.0270.02016.78
7.0.10.0120.02916.72
7.0.00.0070.02516.73
5.6.400.0070.00314.38
5.6.390.0060.00614.48
5.6.380.0030.00714.69
5.6.370.0090.00614.46
5.6.360.0060.00614.31
5.6.350.0040.00814.10
5.6.340.0100.00714.22
5.6.330.0070.00714.16
5.6.320.0080.00814.25
5.6.310.0060.00914.13
5.6.300.0070.00714.24
5.6.290.0000.00914.27
5.6.280.0050.04017.61
5.6.270.0030.01014.12
5.6.260.0000.01714.21
5.6.250.0030.01013.94
5.6.240.0090.00614.42
5.6.230.0030.00614.09
5.6.220.0060.01014.17
5.6.210.0070.02417.39
5.6.200.0030.02616.27
5.6.190.0050.03317.48
5.6.180.2070.02917.59
5.6.170.0150.03517.37
5.6.160.0070.04517.54
5.6.150.0050.02316.29
5.6.140.0080.03516.25
5.6.130.0070.04616.41
5.6.120.0120.04517.71
5.6.110.0070.04417.64
5.6.100.0050.05017.61
5.6.90.0130.04217.67
5.6.80.0030.04317.45
5.6.70.0170.01717.42
5.6.60.0080.00514.15
5.6.50.0000.01614.64
5.6.40.0080.00814.51
5.6.30.0030.01014.49
5.6.20.0000.01314.54
5.6.10.0070.01314.42
5.6.00.0090.00614.32
5.5.380.0040.00414.31
5.5.370.0070.00713.99
5.5.360.0040.01514.44
5.5.350.0030.04517.40
5.5.340.0090.03316.21
5.5.330.0080.04417.36
5.5.320.0180.03017.28
5.5.310.0160.02617.28
5.5.300.0070.02016.25
5.5.290.0110.03616.24
5.5.280.0100.04417.36
5.5.270.0100.04417.75
5.5.260.0020.04617.71
5.5.250.0120.02917.44
5.5.240.0090.04217.14
5.5.230.0040.01114.47
5.5.220.0030.01014.38
5.5.210.0030.01014.46
5.5.200.0030.00914.44
5.5.190.0040.00414.32
5.5.180.0070.01014.14
5.5.170.0140.00314.29
5.5.160.0050.00514.14
5.5.150.0030.01014.24
5.5.140.0100.00313.96
5.5.130.0000.01114.15
5.5.120.0060.01314.38
5.5.110.0040.01114.34
5.5.100.0070.00314.34
5.5.90.0120.00314.20
5.5.80.0120.00414.17
5.5.70.0000.01514.22
5.5.60.0030.00614.06
5.5.50.0080.00714.29
5.5.40.0080.00313.96
5.5.30.0080.00413.76
5.5.20.0040.01114.41
5.5.10.0060.00614.29
5.5.00.0000.01113.94
5.4.450.0220.02815.27
5.4.440.0320.02815.34
5.4.430.0230.03215.15
5.4.420.0100.03815.49
5.4.410.0070.04015.06
5.4.400.0130.03314.86
5.4.390.0080.02914.88
5.4.380.0100.03514.62
5.4.370.0120.02814.78
5.4.360.0160.02315.08
5.4.350.0070.03514.79
5.4.340.0140.02914.95
5.4.330.0030.00910.86
5.4.320.0040.02311.66
5.4.310.0060.02211.69
5.4.300.0060.02111.82
5.4.290.0050.02711.90
5.4.280.0060.02211.82
5.4.270.0050.04014.98
5.4.260.0130.02515.04
5.4.250.0040.03214.94
5.4.240.0100.03415.12
5.4.230.0020.04215.01
5.4.220.0090.02914.94
5.4.210.0070.03115.07
5.4.200.0070.03214.92
5.4.190.0050.03015.03
5.4.180.0080.03214.93
5.4.170.0100.03714.94
5.4.160.0120.03215.19
5.4.150.0030.04014.96
5.4.140.0070.03713.98
5.4.130.0070.02713.91
5.4.120.0020.03614.10
5.4.110.0080.03114.00
5.4.100.0120.03213.94
5.4.90.0060.03113.92
5.4.80.0030.03313.93
5.4.70.0050.02713.88
5.4.60.0030.04013.79
5.4.50.0120.02213.77
5.4.40.0030.03213.81
5.4.30.0130.03013.88
5.4.20.0030.03213.88
5.4.10.0100.02613.65
5.4.00.0150.02213.48
5.3.290.0050.02111.77
5.3.280.0130.02512.56
5.3.270.0140.02812.84
5.3.260.0060.03912.67
5.3.250.0110.02612.57
5.3.240.0050.03112.62
5.3.230.0100.03712.54
5.3.220.0080.03112.64
5.3.210.0070.03012.42
5.3.200.0140.02812.66
5.3.190.0090.03412.61
5.3.180.0060.03312.59
5.3.170.0060.03412.60
5.3.160.0090.02512.72
5.3.150.0080.02712.57
5.3.140.0050.04212.58
5.3.130.0180.03312.55
5.3.120.0080.03112.58
5.3.110.0060.02812.64
5.3.100.0050.04012.33
5.3.90.0100.02612.45
5.3.80.0070.03212.38
5.3.70.0080.03312.31
5.3.60.0030.03212.44
5.3.50.0120.02212.31
5.3.40.0030.03212.23
5.3.30.0100.03312.21
5.3.20.0090.03212.07
5.3.10.0070.03212.02
5.3.00.0070.03212.09
5.2.170.0030.06311.14
5.2.160.0070.05011.26
5.2.150.0170.04711.36
5.2.140.0030.06011.20
5.2.130.0170.04311.32
5.2.120.0100.03711.10
5.2.110.0070.04311.29
5.2.100.0030.04011.37
5.2.90.0070.04010.98
5.2.80.0000.05011.39
5.2.70.0130.04711.15
5.2.60.0070.04311.05
5.2.50.0000.04710.98
5.2.40.0100.03711.18
5.2.30.0070.04711.27
5.2.20.0070.04711.26
5.2.10.0030.04710.91
5.2.00.0130.04310.72
5.1.60.0070.03010.28
5.1.50.0030.03310.23
5.1.40.0070.0339.97
5.1.30.0030.06310.63
5.1.20.0100.03710.42
5.1.10.0070.04310.16
5.1.00.0070.0379.95
5.0.50.0100.0238.54
5.0.40.0100.0308.70
5.0.30.0030.0538.21
5.0.20.0030.0378.19
5.0.10.0070.0308.38
5.0.00.0030.0408.25
4.4.90.0070.0206.76
4.4.80.0170.0136.76
4.4.70.0000.0276.76
4.4.60.0100.0136.76
4.4.50.0000.0276.76
4.4.40.0030.0336.76
4.4.30.0170.0336.76
4.4.20.0130.0136.76
4.4.10.0030.0306.76
4.4.00.0030.0436.76
4.3.110.0030.0206.76
4.3.100.0000.0336.76
4.3.90.0070.0206.76
4.3.80.0070.0306.76
4.3.70.0000.0236.76
4.3.60.0000.0306.76
4.3.50.0070.0306.76
4.3.40.0030.0476.76
4.3.30.0000.0276.76
4.3.20.0030.0236.76
4.3.10.0030.0236.76
4.3.00.0000.0238.05

preferences:
46.39 ms | 400 KiB | 5 Q