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 { public function someFunction() { return $this->kmailtext; } } $config = new someOtherClass(); 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.70.0100.01016.50
8.3.60.0090.00916.75
8.3.50.0100.00922.15
8.3.40.0130.00318.69
8.3.30.0070.00718.72
8.3.20.0040.00420.29
8.3.10.0080.00023.46
8.3.00.0040.00419.26
8.2.190.0090.00916.58
8.2.180.0040.01116.38
8.2.170.0110.00622.96
8.2.160.0070.00720.48
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0060.00319.21
8.2.120.0020.00526.35
8.2.110.0040.00419.39
8.2.100.0040.00817.72
8.2.90.0050.00318.22
8.2.80.0000.00917.97
8.2.70.0040.00417.25
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0000.00719.38
8.2.30.0000.00820.50
8.2.20.0040.00417.55
8.2.10.0040.00418.05
8.2.00.0040.00417.97
8.1.280.0030.01325.92
8.1.270.0090.00022.14
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00023.78
8.1.230.0090.00321.03
8.1.220.0030.00617.74
8.1.210.0030.00518.77
8.1.200.0060.00317.36
8.1.190.0000.00817.35
8.1.180.0090.00018.10
8.1.170.0060.00318.50
8.1.160.0040.00421.89
8.1.150.0020.00518.89
8.1.140.0080.00019.49
8.1.130.0040.00417.62
8.1.120.0040.00417.33
8.1.110.0060.00317.36
8.1.100.0050.00317.43
8.1.90.0030.00317.49
8.1.80.0030.00617.52
8.1.70.0000.00717.34
8.1.60.0090.00017.50
8.1.50.0050.00317.52
8.1.40.0000.00717.49
8.1.30.0030.00517.54
8.1.20.0090.00017.65
8.1.10.0040.00417.60
8.1.00.0030.00517.52
8.0.300.0000.00720.09
8.0.290.0060.00316.75
8.0.280.0040.00418.50
8.0.270.0030.00317.32
8.0.260.0070.00017.13
8.0.250.0070.00016.94
8.0.240.0000.00616.86
8.0.230.0080.00016.93
8.0.220.0030.00316.85
8.0.210.0000.00716.93
8.0.200.0060.00016.95
8.0.190.0080.00016.91
8.0.180.0000.00816.89
8.0.170.0000.00816.76
8.0.160.0050.00216.79
8.0.150.0030.00516.80
8.0.140.0030.00516.72
8.0.130.0030.00313.31
8.0.120.0050.00316.91
8.0.110.0050.00316.83
8.0.100.0050.00216.95
8.0.90.0040.00416.91
8.0.80.0030.01316.93
8.0.70.0040.00416.77
8.0.60.0000.00816.96
8.0.50.0030.00516.95
8.0.30.0120.00617.13
8.0.20.0130.00917.40
8.0.10.0040.00417.05
8.0.00.0040.01416.73
7.4.330.0050.00016.85
7.4.320.0000.00616.44
7.4.300.0030.00316.57
7.4.290.0000.00716.60
7.4.280.0050.00316.63
7.4.270.0040.00416.57
7.4.260.0000.00716.59
7.4.250.0030.00616.54
7.4.240.0000.00716.50
7.4.230.0070.00016.66
7.4.220.0120.00616.49
7.4.210.0090.00516.45
7.4.200.0000.00716.67
7.4.160.0160.00016.57
7.4.150.0140.01317.40
7.4.140.0130.00317.86
7.4.130.0150.01116.38
7.4.120.0090.01016.42
7.4.110.0110.00716.57
7.4.100.0100.01016.32
7.4.90.0130.00416.44
7.4.80.0060.01019.39
7.4.70.0110.00716.52
7.4.60.0110.00816.56
7.4.50.0030.01016.18
7.4.40.0060.01016.32
7.4.30.0070.01016.51
7.4.00.0070.01015.21
7.3.330.0020.00213.22
7.3.320.0000.00513.37
7.3.310.0000.00616.38
7.3.300.0030.00316.36
7.3.290.0030.00316.33
7.3.280.0110.00816.37
7.3.270.0130.00617.40
7.3.260.0030.01316.50
7.3.240.0120.00516.29
7.3.230.0100.00716.39
7.3.210.0180.00016.46
7.3.200.0140.00316.48
7.3.190.0090.01116.53
7.3.180.0130.00616.29
7.3.170.0080.01116.63
7.3.160.0160.00316.44
7.2.330.0090.01616.79
7.2.320.0110.00716.82
7.2.310.0070.01116.50
7.2.300.0090.01816.60
7.2.290.0100.00716.77
7.2.00.0120.00619.04
7.1.100.0180.00916.25
7.1.70.0000.00817.04
7.1.60.0100.01319.48
7.1.50.0180.00717.05
7.1.00.0030.07322.35
7.0.200.0640.00414.77
7.0.60.0100.04319.90
7.0.50.0030.08717.86
7.0.40.0070.04020.24
7.0.30.0270.05320.09
7.0.20.0470.06320.23
7.0.10.0130.08020.10
7.0.00.0130.08020.07
5.6.280.0000.06720.99
5.6.210.0200.05720.65
5.6.200.0000.04318.16
5.6.190.0000.04720.57
5.6.180.0330.06720.39
5.6.170.0300.07320.54
5.6.160.0030.04720.54
5.6.150.0070.06018.12
5.6.140.0200.06018.11
5.6.130.0030.06018.23
5.6.120.0070.07321.00
5.6.110.0170.07321.05
5.6.100.0170.05720.98
5.6.90.0070.08020.99
5.6.80.0070.08320.39
5.5.350.4300.04020.41
5.5.340.0030.04017.97
5.5.330.0170.07720.27
5.5.320.0430.06320.51
5.5.310.0330.06720.20
5.5.300.0030.07317.95
5.5.290.0030.05018.10
5.5.280.0130.07720.72
5.5.270.0030.05720.80
5.5.260.0070.05020.77
5.5.250.0070.04020.80
5.5.240.0270.06720.19

preferences:
49.7 ms | 401 KiB | 5 Q