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 = 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.40.0070.01318.79
8.3.30.0180.00018.85
8.3.20.0100.00720.14
8.3.10.0080.00023.66
8.3.00.0030.00519.38
8.2.170.0030.01222.96
8.2.160.0140.00020.35
8.2.150.0090.00924.18
8.2.140.0110.00424.66
8.2.130.0100.00326.16
8.2.120.0080.00017.63
8.2.110.0090.00020.35
8.2.100.0090.00317.93
8.2.90.0040.00419.09
8.2.80.0050.00317.97
8.2.70.0050.00517.63
8.2.60.0090.00017.80
8.2.50.0030.00518.07
8.2.40.0080.00019.37
8.2.30.0000.00720.64
8.2.20.0030.00617.71
8.2.10.0040.00417.99
8.2.00.0000.00817.86
8.1.270.0080.00021.91
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00322.46
8.1.230.0080.00317.54
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0050.00317.13
8.1.180.0040.00418.10
8.1.170.0000.00818.53
8.1.160.0000.00721.89
8.1.150.0000.00718.66
8.1.140.0050.00319.51
8.1.130.0000.00717.68
8.1.120.0080.00017.38
8.1.110.0040.00417.22
8.1.100.0040.00417.33
8.1.90.0050.00317.37
8.1.80.0020.00517.32
8.1.70.0000.00617.08
8.1.60.0060.00317.36
8.1.50.0030.00517.45
8.1.40.0080.00017.50
8.1.30.0040.00417.55
8.1.20.0000.00817.45
8.1.10.0040.00417.52
8.1.00.0030.00717.41
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0000.00718.38
8.0.270.0000.00817.11
8.0.260.0000.00717.19
8.0.250.0070.00016.97
8.0.240.0030.00317.02
8.0.230.0030.00316.86
8.0.220.0070.00016.88
8.0.210.0070.00016.95
8.0.200.0030.00316.84
8.0.190.0040.00416.83
8.0.180.0050.00216.91
8.0.170.0000.00816.80
8.0.160.0030.00616.80
8.0.150.0040.00416.69
8.0.140.0040.00316.72
8.0.130.0060.00313.27
8.0.120.0060.00316.90
8.0.110.0070.00016.95
8.0.100.0060.00316.93
8.0.90.0000.00716.93
8.0.80.0100.01016.94
8.0.70.0080.00316.96
8.0.60.0040.00416.99
8.0.50.0070.00016.70
8.0.30.0100.00817.01
8.0.20.0080.01217.40
8.0.10.0040.00416.91
8.0.00.0110.01016.66
7.4.330.0020.00216.69
7.4.320.0000.00716.52
7.4.300.0030.00316.34
7.4.290.0030.00316.38
7.4.280.0040.00416.57
7.4.270.0040.00416.55
7.4.260.0000.00716.38
7.4.250.0030.00616.50
7.4.240.0060.00116.51
7.4.230.0070.00016.43
7.4.220.0130.01016.57
7.4.210.0100.00816.55
7.4.200.0040.00416.61
7.4.160.0070.00716.40
7.4.150.0100.00717.40
7.4.140.0100.00717.86
7.4.130.0090.00816.61
7.4.120.0030.01316.54
7.4.110.0110.00716.57
7.4.100.0110.00716.32
7.4.90.0120.00616.24
7.4.80.0030.01319.39
7.4.70.0090.01216.66
7.4.60.0060.00916.46
7.4.50.0030.01016.41
7.4.40.0040.01116.30
7.4.30.0180.00016.48
7.4.00.0040.00914.88
7.3.330.0020.00213.30
7.3.320.0050.00013.26
7.3.310.0040.00416.33
7.3.300.0030.00316.34
7.3.290.0060.00016.25
7.3.280.0130.00416.31
7.3.270.0120.00617.40
7.3.260.0100.00716.26
7.3.250.0100.00916.24
7.3.240.0130.00616.25
7.3.230.0030.01316.39
7.3.210.0130.00616.50
7.3.200.0170.00316.37
7.3.190.0150.00616.61
7.3.180.0030.01316.41
7.3.170.0140.00716.27
7.3.160.0030.01516.25
7.2.330.0030.01716.32
7.2.320.0070.01116.32
7.2.310.0090.00616.64
7.2.300.0160.00716.55
7.2.290.0100.00716.36
7.2.60.0070.00716.54
7.2.00.0030.01219.17
7.1.200.0130.00315.61
7.1.100.0640.01417.88
7.1.70.0110.00317.10
7.1.60.0100.01319.48
7.1.50.0100.01016.80
7.1.00.0030.07722.33
7.0.200.0270.00314.43
7.0.60.0070.08019.92
7.0.50.0030.05317.86
7.0.40.0130.08019.96
7.0.30.0230.05020.13
7.0.20.0430.05320.06
7.0.10.0130.07020.23
7.0.00.0070.07020.12
5.6.280.0100.06321.00
5.6.210.0070.08720.47
5.6.200.0070.08718.14
5.6.190.0000.05020.55
5.6.180.0270.07720.67
5.6.170.0270.04020.52
5.6.160.0130.07720.61
5.6.150.0100.07018.15
5.6.140.0100.07718.28
5.6.130.0030.04018.16
5.6.120.0100.04721.00
5.6.110.0130.07721.02
5.6.100.0200.06720.94
5.6.90.0070.05720.96
5.6.80.0130.06320.40
5.5.350.4000.04020.42
5.5.340.0030.04717.99
5.5.330.0170.07720.43
5.5.320.0430.07320.20
5.5.310.0170.04320.25
5.5.300.0130.07318.07
5.5.290.0000.04717.98
5.5.280.0070.05020.66
5.5.270.0070.08020.88
5.5.260.0130.07320.68
5.5.250.0030.04020.50
5.5.240.0300.06320.05

preferences:
48.51 ms | 400 KiB | 5 Q