3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Config { //declare variables private $kmailtext; function __construct() { $this->kmailtext = "Mail ons"; } public function __get($name) { return $this->$name; } } class someOtherClass extends Config { private $kmailsubject; function __construct() { $this->$kmailsubject = "Subject"; parent::__construct(); } public function someOtherFunction() { return $this->kmailsubject; } public function __get($name) { if (isset($this->$name)) return $this->$name; return parent::__get($name); } } $config = new someOtherClass(); echo $config->someOtherFunction(), PHP_EOL; echo $config->someFunction();

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.0160.00616.88
8.3.50.0140.00622.05
8.3.40.0130.00618.97
8.3.30.0090.00618.75
8.3.20.0150.00420.13
8.3.10.0090.00923.66
8.3.00.0170.00319.38
8.2.180.0110.00718.13
8.2.170.0090.00622.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0160.00324.66
8.2.130.0140.00026.16
8.2.120.0120.00317.75
8.2.110.0060.00319.31
8.2.100.0060.00619.77
8.2.90.0030.00519.20
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0040.00417.93
8.2.50.0080.00018.07
8.2.40.0040.00419.37
8.2.30.0030.00320.64
8.2.20.0070.00317.77
8.2.10.0040.00418.08
8.2.00.0000.00818.00
8.1.280.0060.00925.92
8.1.270.0030.00624.02
8.1.260.0030.01026.35
8.1.250.0070.01028.09
8.1.240.0030.00624.04
8.1.230.0110.00019.48
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0000.01217.13
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0070.00021.96
8.1.150.0070.00018.90
8.1.140.0030.00619.47
8.1.130.0030.00317.76
8.1.120.0000.00817.46
8.1.110.0050.00317.47
8.1.100.0000.00717.41
8.1.90.0000.00817.46
8.1.80.0030.00517.48
8.1.70.0070.00017.31
8.1.60.0030.00517.57
8.1.50.0040.00417.45
8.1.40.0040.00717.43
8.1.30.0030.00517.68
8.1.20.0000.00817.55
8.1.10.0040.00417.55
8.1.00.0030.00917.54
8.0.300.0060.00318.77
8.0.290.0000.00716.88
8.0.280.0000.00718.40
8.0.270.0000.00717.29
8.0.260.0030.00317.38
8.0.250.0000.00717.03
8.0.240.0080.00017.01
8.0.230.0000.00717.04
8.0.220.0030.00516.84
8.0.210.0070.00017.01
8.0.200.0000.00717.05
8.0.190.0050.00316.93
8.0.180.0070.00017.03
8.0.170.0030.00617.02
8.0.160.0090.00017.03
8.0.150.0090.00016.91
8.0.140.0040.00416.97
8.0.130.0030.00813.34
8.0.120.0080.00016.96
8.0.110.0040.00416.92
8.0.100.0080.00016.97
8.0.90.0040.00417.01
8.0.80.0100.01016.88
8.0.70.0040.00417.07
8.0.60.0040.00416.85
8.0.50.0000.00716.84
8.0.30.0100.01017.20
8.0.20.0120.01017.40
8.0.10.0070.00017.11
8.0.00.0090.01016.74
7.4.330.0000.00516.77
7.4.320.0030.00316.45
7.4.300.0040.00416.61
7.4.290.0080.00016.57
7.4.280.0030.00516.51
7.4.270.0030.00316.63
7.4.260.0070.00016.54
7.4.250.0050.00316.47
7.4.240.0020.00516.62
7.4.230.0040.00416.32
7.4.220.0090.00916.57
7.4.210.0090.00616.57
7.4.200.0030.00316.70
7.4.160.0070.01016.50
7.4.150.0120.00617.40
7.4.140.0120.00917.86
7.4.130.0080.01516.55
7.4.120.0090.00716.49
7.4.110.0070.01116.63
7.4.100.0080.01216.51
7.4.90.0150.00316.34
7.4.80.0120.00619.39
7.4.70.0030.01416.50
7.4.60.0030.01316.44
7.4.50.0110.00616.19
7.4.40.0090.00916.68
7.4.30.0110.00516.68
7.4.10.0080.00814.97
7.4.00.0080.00814.95
7.3.330.0030.00313.46
7.3.320.0050.00013.41
7.3.310.0000.00716.40
7.3.300.0030.00316.29
7.3.290.0070.00016.32
7.3.280.0040.01316.40
7.3.270.0080.00917.40
7.3.260.0120.00616.44
7.3.240.0110.00916.40
7.3.230.0030.01416.51
7.3.210.0130.00316.67
7.3.200.0090.00916.31
7.3.190.0100.00616.63
7.3.180.0080.00816.32
7.3.170.0130.00316.67
7.3.160.0030.01516.60
7.3.130.0060.01114.88
7.3.120.0060.01115.43
7.3.110.0070.01015.49
7.3.100.0060.00915.45
7.3.90.0060.00715.31
7.3.80.0040.00715.54
7.3.70.0070.00715.39
7.3.60.0040.00815.29
7.3.50.0070.00615.48
7.3.40.0050.00815.36
7.3.30.0080.00715.36
7.3.20.0060.00616.66
7.3.10.0080.00616.80
7.3.00.0050.01016.77
7.2.330.0140.00316.84
7.2.320.0060.01316.67
7.2.310.0060.01216.49
7.2.300.0090.01416.68
7.2.290.0090.00916.49
7.2.260.0050.01115.07
7.2.250.0090.01015.10
7.2.240.0060.01015.62
7.2.230.0060.00915.66
7.2.220.0070.00815.64
7.2.210.0080.00615.68
7.2.200.0020.01215.53
7.2.190.0050.01015.54
7.2.180.0080.00915.65
7.2.170.0080.00815.46
7.2.160.0030.01215.79
7.2.150.0060.01017.08
7.2.140.0060.00816.94
7.2.130.0090.00716.90
7.2.120.0060.00917.01
7.2.110.0080.00517.07
7.2.100.0090.00416.88
7.2.90.0050.00816.96
7.2.80.0040.00717.13
7.2.70.0080.00616.88
7.2.60.0060.00916.90
7.2.50.0070.00817.06
7.2.40.0050.00917.05
7.2.30.0050.01016.92
7.2.20.0050.00816.95
7.2.10.0060.00817.01
7.2.00.0060.00917.43
7.1.330.0060.00816.10
7.1.320.0050.00716.02
7.1.310.0040.00816.11
7.1.300.0050.00816.07
7.1.290.0050.01116.07
7.1.280.0060.00816.12
7.1.270.0070.00716.09
7.1.260.0060.00816.09
7.1.250.0070.00716.06
7.1.240.0080.00415.79
7.1.230.0050.00615.82
7.1.220.0040.00615.68
7.1.210.0040.00715.58
7.1.200.0070.00515.70
7.1.190.0050.00515.76
7.1.180.0040.01015.82
7.1.170.0080.00615.73
7.1.160.0090.00515.73
7.1.150.0070.00815.62
7.1.140.0020.01015.72
7.1.130.0050.00615.68
7.1.120.0060.00615.76
7.1.110.0070.00615.85
7.1.100.0050.00916.35
7.1.90.0070.00515.72
7.1.80.0050.00915.75
7.1.70.0080.00516.04
7.1.60.0030.01116.59
7.1.50.0050.01015.99
7.1.40.0050.00915.76
7.1.30.0060.00715.66
7.1.20.0020.01015.63
7.1.10.0060.00715.64
7.1.00.0060.02417.25
7.0.330.0060.00515.19
7.0.320.0070.00515.35
7.0.310.0040.00615.16
7.0.300.0030.01015.14
7.0.290.0050.00615.29
7.0.280.0030.01115.27
7.0.270.0080.00415.33
7.0.260.0080.00315.36
7.0.250.0040.01115.43
7.0.240.0060.00615.34
7.0.230.0040.01115.32
7.0.220.0050.00715.30
7.0.210.0070.00515.33
7.0.200.0190.00515.22
7.0.190.0060.00715.34
7.0.180.0040.00715.25
7.0.170.0050.00715.36
7.0.160.0070.00515.36
7.0.150.0010.01115.26
7.0.140.0050.00615.40
7.0.130.0060.01015.29
7.0.120.0060.00615.29
7.0.110.0060.00415.32
7.0.100.0040.00715.28
7.0.90.0060.00715.42
7.0.80.0060.00715.19
7.0.70.0050.00815.29
7.0.60.0080.01316.55
7.0.50.0070.02415.97
7.0.40.0040.03115.12
7.0.30.0080.01915.08
7.0.20.0120.02315.04
7.0.10.0040.01715.19
7.0.00.0050.02715.04
5.6.400.0070.00614.31
5.6.390.0050.00614.41
5.6.380.0040.00914.25
5.6.370.0020.00914.13
5.6.360.0020.01214.37
5.6.350.0070.00614.32
5.6.340.0040.00714.17
5.6.330.0060.00814.39
5.6.320.0050.00514.31
5.6.310.0080.00414.25
5.6.300.0020.00914.55
5.6.290.0040.00714.38
5.6.280.0050.02115.99
5.6.270.0070.00514.35
5.6.260.0010.01214.27
5.6.250.0050.00714.29
5.6.240.0040.00814.22
5.6.230.0090.00714.21
5.6.220.0040.01114.18
5.6.210.0080.02615.81
5.6.200.0040.01715.31
5.6.190.0070.02615.93
5.6.180.0090.02515.85
5.6.170.0100.02315.84
5.6.160.0060.02415.76
5.6.150.0080.02015.25
5.6.140.0040.02615.22
5.6.130.0070.01515.38
5.6.120.0070.01815.80
5.6.110.0070.02515.82
5.6.100.0060.02616.11
5.6.90.0100.02315.80
5.6.80.0060.02515.80
5.6.70.0090.00314.07
5.6.60.0060.00914.17
5.6.50.0060.00714.11
5.6.40.0040.00814.35
5.6.30.0020.00914.27
5.6.20.0060.00814.27
5.6.10.0030.00914.20
5.6.00.0060.00814.26
5.5.380.0020.00913.22
5.5.370.0060.00612.98
5.5.360.0060.00412.98
5.5.350.1090.01614.88
5.5.340.0070.01314.27
5.5.330.0050.02515.07
5.5.320.0140.01415.02
5.5.310.0140.02114.86
5.5.300.0060.01814.44
5.5.290.0070.02114.29
5.5.280.0060.01415.07
5.5.270.0080.02514.96
5.5.260.0060.02514.96
5.5.250.0060.01315.02
5.5.240.0080.01314.93
5.5.230.0040.00613.10
5.5.220.0070.00513.13
5.5.210.0060.00713.08
5.5.200.0060.00613.06
5.5.190.0020.01013.16
5.5.180.0060.00613.13
5.5.170.0050.00613.11
5.5.160.0080.00712.97
5.5.150.0040.00913.17
5.5.140.0060.00713.12
5.5.130.0010.01313.06
5.5.120.0040.00612.86
5.5.110.0050.00713.06
5.5.100.0060.00912.87
5.5.90.0020.00913.11
5.5.80.0090.00413.02
5.5.70.0060.00613.07
5.5.60.0060.00513.01
5.5.50.0080.00612.93
5.5.40.0070.00513.15
5.5.30.0040.00813.10
5.5.20.0060.00913.08
5.5.10.0070.00613.18
5.5.00.0090.00412.99

preferences:
69.08 ms | 401 KiB | 5 Q