3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testClass { protected $config; public function getConfiguration() { $this->config = new section; } public function __get($name) { echo "magic method has been called, name is $name\n"; $method = "get".ucfirst($name); return method_exists($this, $method) ? $this->$method() : null; } public function test() { var_dump(empty($this->configuration->name)); var_dump($this->configuration); } } class section { protected $vars; public function __contstruct() { $this->vars = [ 'name' => 1, 'val' => 2 ]; } public function __get($name) { return isset($this->vars[$name]) ? $this->vars[$name] : null; } public function __isset($name) { return isset($this->vars[$name]); } } $a = new testClass; $a -> test();

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.00618.27
8.3.50.0040.01118.15
8.3.40.0070.00718.67
8.3.30.0090.00618.63
8.3.20.0080.00019.34
8.3.10.0050.00321.86
8.3.00.0030.00519.53
8.2.180.0150.00618.16
8.2.170.0090.00622.96
8.2.160.0040.01418.93
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00020.53
8.2.120.0050.00326.35
8.2.110.0000.00921.07
8.2.100.0000.01117.91
8.2.90.0080.00018.94
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0040.00417.80
8.2.50.0080.00018.10
8.2.40.0050.00320.25
8.2.30.0070.00019.25
8.2.20.0000.00817.95
8.2.10.0040.00418.13
8.2.00.0070.00018.11
8.1.280.0120.00625.92
8.1.270.0000.00722.10
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00822.14
8.1.230.0090.00319.12
8.1.220.0000.00817.74
8.1.210.0050.00518.77
8.1.200.0040.00417.47
8.1.190.0040.00417.22
8.1.180.0030.00518.10
8.1.170.0050.00318.47
8.1.160.0070.00018.83
8.1.150.0000.00720.03
8.1.140.0000.00719.49
8.1.130.0040.00418.95
8.1.120.0050.00317.30
8.1.110.0030.00517.40
8.1.100.0040.00417.37
8.1.90.0060.00317.46
8.1.80.0000.00717.41
8.1.70.0070.00017.45
8.1.60.0000.00717.50
8.1.50.0090.00017.58
8.1.40.0000.00817.53
8.1.30.0060.00317.64
8.1.20.0040.00417.58
8.1.10.0080.00017.57
8.1.00.0070.00017.56
8.0.300.0040.00419.87
8.0.290.0030.00616.63
8.0.280.0000.00718.42
8.0.270.0000.00717.20
8.0.260.0030.00518.90
8.0.250.0030.00616.86
8.0.240.0000.01116.98
8.0.230.0070.00017.01
8.0.220.0040.00416.88
8.0.210.0050.00316.86
8.0.200.0000.00716.87
8.0.190.0030.00516.95
8.0.180.0040.00416.96
8.0.170.0040.00417.00
8.0.160.0030.00316.92
8.0.150.0080.00016.86
8.0.140.0040.00416.88
8.0.130.0050.00013.24
8.0.120.0050.00216.87
8.0.110.0040.00416.81
8.0.100.0040.00416.78
8.0.90.0000.00716.78
8.0.80.0060.00916.86
8.0.70.0040.00416.92
8.0.60.0070.00016.89
8.0.50.0040.00416.78
8.0.30.0130.00717.02
8.0.20.0140.00517.40
8.0.10.0080.00016.85
8.0.00.0090.01117.03
7.4.330.0000.00515.55
7.4.320.0000.00816.61
7.4.300.0030.00316.63
7.4.290.0080.00016.42
7.4.280.0030.00516.61
7.4.270.0000.00716.52
7.4.260.0030.00316.49
7.4.250.0000.00716.48
7.4.240.0030.00316.48
7.4.230.0030.00316.62
7.4.220.0000.01916.57
7.4.210.0040.01116.58
7.4.200.0030.00316.63
7.4.160.0110.00816.46
7.4.150.0090.00917.40
7.4.140.0070.01217.86
7.4.130.0130.00716.57
7.4.120.0090.01216.55
7.4.110.0130.02016.51
7.4.100.0130.00316.53
7.4.90.0070.01016.35
7.4.80.0110.01119.39
7.4.70.0130.00316.59
7.4.60.0070.01716.57
7.4.50.0030.01416.33
7.4.40.0090.00616.40
7.4.30.0080.00916.52
7.4.10.0150.00315.00
7.4.00.0050.01114.91
7.3.330.0030.00313.20
7.3.320.0030.00313.36
7.3.310.0030.00316.25
7.3.300.0000.00616.39
7.3.290.0060.00916.36
7.3.280.0090.01016.37
7.3.270.0150.00617.40
7.3.260.0100.01316.59
7.3.240.0140.00416.50
7.3.230.0030.01616.66
7.3.210.0080.00816.56
7.3.200.0120.01216.28
7.3.190.0090.00616.46
7.3.180.0020.01416.45
7.3.170.0100.00716.18
7.3.160.0030.01316.36
7.3.130.0090.00915.04
7.3.120.0150.00315.13
7.3.110.0100.01014.54
7.3.100.0090.00615.03
7.3.90.0130.00314.77
7.3.80.0070.00414.95
7.3.70.0090.00314.91
7.3.60.0030.00614.78
7.3.50.0150.00014.73
7.3.40.0070.00714.56
7.3.30.0040.01114.71
7.3.20.0080.00716.75
7.3.10.0120.00016.46
7.3.00.0060.00316.72
7.2.330.0070.01016.75
7.2.320.0070.01016.86
7.2.310.0090.00916.79
7.2.300.0000.01616.40
7.2.290.0080.00816.70
7.2.260.0170.00315.13
7.2.250.0110.00715.26
7.2.240.0070.00715.04
7.2.230.0090.00615.39
7.2.220.0000.01215.10
7.2.210.0070.00714.98
7.2.200.0120.00315.31
7.2.190.0040.00815.31
7.2.180.0060.00315.27
7.2.170.0090.00615.13
7.2.160.0030.00615.22
7.2.150.0070.00716.93
7.2.140.0060.00616.77
7.2.130.0060.00616.79
7.2.120.0030.00616.93
7.2.110.0030.00617.00
7.2.100.0030.00917.09
7.2.90.0040.00716.82
7.2.80.0000.01616.98
7.2.70.0070.00716.72
7.2.60.0070.00716.97
7.2.50.0030.00617.14
7.2.40.0060.01016.88
7.2.30.0040.01116.98
7.2.20.0000.01517.07
7.2.10.0000.01716.76
7.2.00.0060.00418.22
7.1.330.0070.00715.58
7.1.320.0030.01015.78
7.1.310.0070.00715.79
7.1.300.0030.01015.60
7.1.290.0030.00615.71
7.1.280.0040.01115.45
7.1.270.0030.01015.90
7.1.260.0040.00815.63
7.1.250.0030.00715.64
7.1.240.0060.00915.69
7.1.230.0000.01015.91
7.1.220.0030.00615.80
7.1.210.0040.00915.57
7.1.200.0080.00815.87
7.1.190.0000.00815.77
7.1.180.0030.01015.74
7.1.170.0060.01015.86
7.1.160.0100.00015.87
7.1.150.0030.01115.77
7.1.140.0000.01115.89
7.1.130.0070.00315.66
7.1.120.0060.00615.96
7.1.110.0060.00915.55
7.1.100.0030.00717.04
7.1.90.0030.01215.96
7.1.80.0030.01015.63
7.1.70.0030.01116.67
7.1.60.0080.00516.48
7.1.50.0150.00825.20
7.1.40.0130.01425.13
7.1.30.0130.01324.91
7.1.20.0090.01025.09
7.1.10.0050.00516.17
7.1.00.0030.00716.14
7.0.330.0060.00615.21
7.0.320.0050.00515.48
7.0.310.0060.00615.47
7.0.300.0060.01015.27
7.0.290.0040.00815.53
7.0.280.0060.00615.22
7.0.270.0030.01015.22
7.0.260.0040.00715.46
7.0.250.0050.00315.47
7.0.240.0070.00315.56
7.0.230.0000.01315.49
7.0.220.0070.00715.14
7.0.210.0090.00615.33
7.0.200.0090.01216.18
7.0.190.0050.00815.97
7.0.180.0020.01215.83
7.0.170.0080.00515.84
7.0.160.0090.00515.85
7.0.150.0030.01215.90
7.0.140.0080.00815.98
7.0.130.0050.00916.01
7.0.120.0030.01016.07
7.0.110.0030.01015.84
7.0.100.0050.01115.75
7.0.90.0050.00515.93
7.0.80.0040.00716.04
7.0.70.0060.01015.86
7.0.60.0030.00815.67
7.0.50.0020.01215.81
7.0.40.0070.00815.01
7.0.30.0080.00714.77
7.0.20.0020.01015.00
7.0.10.0020.01114.96
7.0.00.0010.01114.86
5.6.400.0000.01414.40
5.6.390.0030.00914.15
5.6.380.0080.00414.53
5.6.370.0040.00714.58
5.6.360.0060.00914.63
5.6.350.0070.00714.28
5.6.340.0030.01014.45
5.6.330.0000.01414.12
5.6.320.0030.01014.22
5.6.310.0060.01014.42
5.6.300.0000.01714.23
5.6.290.0080.00914.70
5.6.280.0100.00314.57
5.6.270.0000.01414.52
5.6.260.0070.00714.33
5.6.250.0060.01314.39
5.6.240.0040.00714.34
5.6.230.0090.00314.58
5.6.220.0060.00614.16
5.6.210.0040.00814.39
5.6.200.0030.01414.45
5.6.190.0110.00714.71
5.6.180.0000.01614.29
5.6.170.0030.01014.78
5.6.160.0000.01714.41
5.6.150.0100.00714.04
5.6.140.0150.00014.10
5.6.130.0030.00714.38
5.6.120.0030.01014.30
5.6.110.0000.01314.30
5.6.100.0030.01014.32
5.6.90.0030.00614.26
5.6.80.0030.00514.64
5.6.70.0070.00414.09
5.6.60.0030.00814.19
5.6.50.0070.00714.36
5.6.40.0040.00714.46
5.6.30.0100.00314.19
5.6.20.0120.00314.37
5.6.10.0030.00614.34
5.6.00.0030.01014.58

preferences:
46.22 ms | 401 KiB | 5 Q