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 = "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"; } } $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.0120.00616.75
8.3.50.0130.00122.04
8.3.40.0060.00918.71
8.3.30.0070.00719.19
8.3.20.0080.00020.34
8.3.10.0050.00323.70
8.3.00.0070.00020.87
8.2.180.0070.01116.35
8.2.170.0070.01422.96
8.2.160.0000.01320.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00526.16
8.2.120.0040.00422.21
8.2.110.0060.00322.04
8.2.100.0060.00617.72
8.2.90.0050.00317.75
8.2.80.0050.00317.97
8.2.70.0050.00318.03
8.2.60.0040.00417.80
8.2.50.0030.00618.10
8.2.40.0110.00320.04
8.2.30.0000.00717.98
8.2.20.0000.00817.57
8.2.10.0040.00417.62
8.2.00.0070.00017.68
8.1.280.0100.00725.92
8.1.270.0050.00322.05
8.1.260.0090.00026.35
8.1.250.0100.00028.09
8.1.240.0000.00822.14
8.1.230.0040.00719.17
8.1.220.0000.00817.76
8.1.210.0000.00818.77
8.1.200.0080.00917.13
8.1.190.0000.00917.35
8.1.180.0030.00518.10
8.1.170.0000.00818.59
8.1.160.0040.00422.06
8.1.150.0070.00018.64
8.1.140.0000.00817.45
8.1.130.0030.00317.82
8.1.120.0030.00317.54
8.1.110.0040.00417.46
8.1.100.0040.00317.33
8.1.90.0040.00417.49
8.1.80.0030.00617.47
8.1.70.0030.00317.43
8.1.60.0000.00817.61
8.1.50.0000.00817.51
8.1.40.0060.00317.45
8.1.30.0030.00517.51
8.1.20.0000.00717.53
8.1.10.0070.00017.61
8.1.00.0070.00017.35
8.0.300.0030.00621.56
8.0.290.0040.00416.63
8.0.280.0050.00318.45
8.0.270.0040.00417.27
8.0.260.0030.00316.94
8.0.250.0030.00616.86
8.0.240.0000.00816.96
8.0.230.0080.00316.91
8.0.220.0030.00316.79
8.0.210.0000.00716.94
8.0.200.0000.00716.96
8.0.190.0000.00716.97
8.0.180.0000.00816.94
8.0.170.0080.00016.96
8.0.160.0000.00716.95
8.0.150.0000.00716.71
8.0.140.0040.00416.77
8.0.130.0050.00013.20
8.0.120.0000.00816.87
8.0.110.0040.00416.81
8.0.100.0030.00516.78
8.0.90.0040.00416.84
8.0.80.0110.00316.94
8.0.70.0000.00816.96
8.0.60.0070.00016.88
8.0.50.0000.00716.73
8.0.30.0130.01017.17
8.0.20.0120.01017.40
8.0.10.0000.00816.85
8.0.00.0060.01516.67
7.4.330.0000.00515.00
7.4.320.0050.00316.45
7.4.300.0040.00416.41
7.4.290.0050.00216.50
7.4.280.0040.00416.48
7.4.270.0040.00416.65
7.4.260.0040.00416.49
7.4.250.0000.00816.49
7.4.240.0020.00616.56
7.4.230.0000.00716.40
7.4.220.0030.01416.48
7.4.210.0060.00816.64
7.4.200.0000.00816.69
7.4.190.0000.00716.77
7.4.160.0120.00916.39
7.4.150.0170.00017.40
7.4.140.0140.00717.86
7.4.130.0120.00516.53
7.4.120.0100.00616.46
7.4.110.0070.01116.63
7.4.100.0130.01016.52
7.4.90.0100.00616.52
7.4.80.0060.01216.49
7.4.70.0060.00916.64
7.4.60.0060.01416.52
7.4.50.0030.00316.40
7.4.40.0110.00322.77
7.4.30.0060.01016.46
7.4.00.0110.00514.79
7.3.330.0020.00213.27
7.3.320.0050.00313.33
7.3.310.0000.00616.33
7.3.300.0050.00316.18
7.3.290.0070.00716.27
7.3.280.0110.00716.21
7.3.270.0130.00717.40
7.3.260.0080.00816.40
7.3.250.0120.00616.45
7.3.240.0000.01716.62
7.3.230.0110.00716.39
7.3.210.0070.01116.37
7.3.200.0180.00719.39
7.3.190.0100.01016.45
7.3.180.0090.01216.43
7.3.170.0110.01116.42
7.3.160.0090.01316.22
7.3.120.0060.00914.71
7.3.110.0030.01414.64
7.3.100.0040.01414.74
7.3.90.0070.01014.66
7.3.80.0090.00914.82
7.3.70.0090.00914.91
7.3.60.0100.00314.87
7.3.50.0100.00014.64
7.3.40.0040.00814.69
7.3.30.0060.00614.46
7.3.20.0110.00316.52
7.3.10.0070.00716.62
7.3.00.0030.01016.67
7.2.330.0110.00716.80
7.2.320.0070.01016.79
7.2.310.0030.01516.68
7.2.300.0120.01216.36
7.2.290.0060.00916.76
7.2.250.0090.00915.11
7.2.240.0070.01314.92
7.2.230.0120.00615.14
7.2.220.0060.00615.15
7.2.210.0080.00814.68
7.2.200.0060.00614.85
7.2.190.0100.00715.06
7.2.180.0070.01115.02
7.2.170.0000.01414.97
7.2.130.0070.01116.70
7.2.120.0060.00616.75
7.2.110.0040.00816.69
7.2.100.0030.01016.68
7.2.90.0060.00916.85
7.2.80.0060.00917.20
7.2.70.0120.00317.03
7.2.60.0110.00516.91
7.2.50.0060.00616.79
7.2.40.0030.01017.07
7.2.30.0030.00616.79
7.2.20.0140.00016.99
7.2.10.0050.00516.93
7.2.00.0020.01018.15
7.1.330.0060.00915.86
7.1.320.0070.01015.53
7.1.310.0070.01115.37
7.1.300.0130.00015.64
7.1.290.0030.01015.52
7.1.280.0030.01015.46
7.1.270.0030.01015.73
7.1.260.0100.00315.68
7.1.250.0040.00815.72
7.1.240.0110.00015.80
7.1.230.0000.01315.57
7.1.220.0050.00315.80
7.1.210.0100.00615.79
7.1.200.0050.00715.59
7.1.190.0030.00915.75
7.1.180.0080.00315.54
7.1.170.0080.00315.80
7.1.160.0040.00715.80
7.1.150.0090.00615.87
7.1.140.0120.00015.54
7.1.130.0060.00315.66
7.1.120.0060.00615.70
7.1.110.0000.01415.78
7.1.100.0110.00916.79
7.1.90.0040.01115.81
7.1.80.0000.01215.86
7.1.70.0060.00616.39
7.1.60.0110.00817.47
7.1.50.0050.01116.38
7.1.40.0070.00415.81
7.1.30.0030.00515.86
7.1.20.0000.01315.70
7.1.10.0140.00015.92
7.1.00.0030.04119.02
7.0.330.0030.00615.30
7.0.320.0070.00715.30
7.0.310.0060.00615.53
7.0.300.0060.00615.30
7.0.290.0040.01115.26
7.0.280.0070.00715.49
7.0.270.0060.00914.96
7.0.260.0030.01015.33
7.0.250.0070.00715.49
7.0.240.0030.01015.39
7.0.230.0070.00715.44
7.0.220.0040.00415.38
7.0.210.0040.00415.38
7.0.200.0040.00616.07
7.0.190.0060.00615.20
7.0.180.0000.01115.18
7.0.170.0070.00715.45
7.0.160.0070.00315.26
7.0.150.0070.00315.12
7.0.140.0040.03818.52
7.0.130.0050.00515.53
7.0.120.0100.00315.38
7.0.110.0030.00615.05
7.0.100.0060.00315.17
7.0.90.0030.00515.37
7.0.80.0040.00815.27
7.0.70.0060.00615.33
7.0.60.0050.02217.65
7.0.50.0060.04216.71
7.0.40.0020.03016.67
7.0.30.0140.02116.85
7.0.20.0140.02916.82
7.0.10.0200.04016.77
7.0.00.0030.04816.68
5.6.380.0040.00814.58
5.6.370.0040.01014.39
5.6.360.0060.00614.05
5.6.350.0080.00814.39
5.6.340.0060.00314.32
5.6.330.0060.00914.45
5.6.320.0090.00014.33
5.6.310.0060.00614.06
5.6.300.0060.01014.24
5.6.290.0090.00414.56
5.6.280.0030.04017.52
5.6.270.0040.00414.51
5.6.260.0030.00714.49
5.6.250.0040.01114.66
5.6.240.0030.01014.34
5.6.230.0000.01214.19
5.6.220.0070.00714.20
5.6.210.0100.03517.54
5.6.200.0080.03016.26
5.6.190.0050.05017.31
5.6.180.0020.02717.30
5.6.170.0170.03317.34
5.6.160.0050.02317.46
5.6.150.0020.03416.14
5.6.140.0090.04216.24
5.6.130.0050.04516.44
5.6.120.0050.02417.69
5.6.110.0100.04017.64
5.6.100.0050.04017.66
5.6.90.0080.04317.65
5.6.80.0080.03817.17
5.6.70.0220.03917.25
5.6.60.0070.00314.30
5.6.50.0040.01114.14
5.6.40.0030.00614.09
5.6.30.0070.00714.34
5.6.20.0000.00814.35
5.6.10.0100.00614.28
5.6.00.0120.00314.17
5.5.380.0070.00311.23
5.5.370.0070.00311.39
5.5.360.0060.00610.77
5.5.350.0030.03315.71
5.5.340.0050.04514.66
5.5.330.0030.02515.55
5.5.320.0000.02515.71
5.5.310.0190.03815.69
5.5.300.0030.03114.71
5.5.290.0100.04214.68
5.5.280.0030.04515.88
5.5.270.0030.02516.04
5.5.260.0060.02815.96
5.5.250.0080.02815.80
5.5.240.0120.03415.60
5.5.230.0060.00311.27
5.5.220.0030.00911.33
5.5.210.0050.00511.00
5.5.200.0030.00911.08
5.5.190.0030.00711.04
5.5.180.0050.00310.77
5.5.170.0030.00911.13
5.5.160.0090.00011.20
5.5.150.0040.00211.14
5.5.140.0060.00011.31
5.5.130.0070.00311.16
5.5.120.0090.00311.34
5.5.110.0040.00411.07
5.5.100.0000.01211.21
5.5.90.0030.00311.19
5.5.80.0070.00411.23
5.5.70.0030.00610.95
5.5.60.0040.00811.01
5.5.50.0060.00310.96
5.5.40.0030.00310.95
5.5.30.0030.00810.70
5.5.20.0040.00411.34
5.5.10.0090.00011.09
5.5.00.0030.00310.66
5.4.450.0520.03215.46
5.4.440.0460.03815.19
5.4.430.0480.03315.20
5.4.420.0100.03715.26
5.4.410.0450.03515.25
5.4.400.0060.03315.01
5.4.390.0390.03715.15
5.4.380.0130.03515.05
5.4.370.0110.03314.67
5.4.360.0090.03214.72
5.4.350.0120.03214.84
5.4.340.0190.02814.83
5.4.330.0060.00011.24
5.4.320.0040.02811.84
5.4.310.0080.02811.76
5.4.300.0030.02611.87
5.4.290.0080.03111.84
5.4.280.0050.02211.75
5.4.270.0050.02711.71
5.4.260.0050.02111.68
5.4.250.0070.02811.83
5.4.240.0030.02911.58
5.4.230.0020.02411.66
5.4.220.0050.02111.59
5.4.210.0070.01911.68
5.4.200.0050.02511.80
5.4.190.0040.02211.53
5.4.180.0060.02111.58
5.4.170.0050.02211.78
5.4.160.0050.02211.64
5.4.150.0080.02111.67
5.4.140.0050.02811.45
5.4.130.0060.02911.65
5.4.120.0070.02511.52
5.4.110.0100.02411.35
5.4.100.0070.02511.53
5.4.90.0090.02311.34
5.4.80.0100.02611.39
5.4.70.0090.02411.35
5.4.60.0050.02611.50
5.4.50.0060.02511.56
5.4.40.0110.02211.52
5.4.30.0050.02811.57
5.4.20.0070.02711.57
5.4.10.0090.02311.51
5.4.00.0040.03111.39
5.3.290.0040.03011.78
5.3.280.0070.02911.69
5.3.270.0060.03011.71
5.3.260.0070.02311.59
5.3.250.0020.03011.72
5.3.240.0070.02111.66
5.3.230.0050.02311.73
5.3.220.0040.02311.58
5.3.210.0070.02111.56
5.3.200.0070.02111.62
5.3.190.0040.02411.65
5.3.180.0050.02311.56
5.3.170.0030.02211.63
5.3.160.0060.02411.56
5.3.150.0080.02611.64
5.3.140.0070.02611.62
5.3.130.0050.02611.59
5.3.120.0050.02111.63
5.3.110.0060.01911.49
5.3.100.0060.02111.19
5.3.90.0080.02411.35
5.3.80.0040.02011.31
5.3.70.0040.02511.29
5.3.60.0080.02611.36
5.3.50.0030.02211.27
5.3.40.0060.01911.21
5.3.30.0040.02011.19
5.3.20.0040.02311.02
5.3.10.0120.02611.04
5.3.00.0040.02811.04
5.2.170.0070.0229.57
5.2.160.0100.0199.57
5.2.150.0020.0259.57
5.2.140.0050.0209.57
5.2.130.0030.0179.55
5.2.120.0040.0179.55
5.2.110.0050.0169.55
5.2.100.0050.0179.55
5.2.90.0030.0179.55
5.2.80.0050.0159.55
5.2.70.0060.0169.55
5.2.60.0050.0179.53
5.2.50.0020.0199.51
5.2.40.0040.0169.50
5.2.30.0050.0219.48
5.2.20.0020.0189.48
5.2.10.0040.0169.44
5.2.00.0040.0209.36
5.1.60.0040.0169.01
5.1.50.0050.0139.00
5.1.40.0020.0179.00
5.1.30.0020.0179.17
5.1.20.0060.0149.19
5.1.10.0050.0139.05
5.1.00.0050.0149.04
5.0.50.0020.0128.29
5.0.40.0010.0138.21
5.0.30.0030.0188.12
5.0.20.0050.0108.11
5.0.10.0010.0138.09
5.0.00.0010.0198.09
4.4.90.0030.0087.37
4.4.80.0030.0097.36
4.4.70.0040.0107.36
4.4.60.0030.0107.36
4.4.50.0010.0107.36
4.4.40.0020.0137.33
4.4.30.0020.0097.36
4.4.20.0010.0117.40
4.4.10.0020.0107.40
4.4.00.0030.0167.36
4.3.110.0030.0097.31
4.3.100.0040.0097.31
4.3.90.0020.0117.29
4.3.80.0010.0157.27
4.3.70.0030.0097.29
4.3.60.0020.0107.29
4.3.50.0040.0107.29
4.3.40.0030.0127.25
4.3.30.0010.0106.62
4.3.20.0030.0106.61
4.3.10.0020.0096.59
4.3.00.0020.00811.55

preferences:
55.79 ms | 401 KiB | 5 Q