3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private $data; private $relations; public function __set($name, $value) { $this->data[$name] = $value; } public function __get($name) { if(isset($this->data[$name])){ return $this->data[$name]; } } public function __construct() { $this->data = ['foo' => 'test', 'body' => 'content']; } public function test() { $function = debug_backtrace()[1]['function']; $this->relations[$function] = ['a' =>'aa', 'b' =>'bb']; return $this; } } class bar extends foo{ public function aa(){ return $this->test(); } } $bar = new bar(); $bar->aa(); print_r($bar);

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.0100.01016.63
8.3.50.0080.00616.17
8.3.40.0090.00618.49
8.3.30.0090.00618.81
8.3.20.0080.00020.18
8.3.10.0000.00823.70
8.3.00.0040.00817.68
8.2.180.0150.00318.29
8.2.170.0110.00322.96
8.2.160.0030.01020.39
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00321.04
8.2.120.0000.00826.35
8.2.110.0060.00322.27
8.2.100.0040.00817.84
8.2.90.0040.00419.16
8.2.80.0030.00617.97
8.2.70.0000.01017.25
8.2.60.0000.00817.88
8.2.50.0050.00318.10
8.2.40.0030.00620.61
8.2.30.0000.00821.04
8.2.20.0000.00817.96
8.2.10.0040.00418.04
8.2.00.0000.00818.12
8.1.280.0100.01025.92
8.1.270.0040.00423.79
8.1.260.0040.00426.35
8.1.250.0100.00328.09
8.1.240.0080.00023.84
8.1.230.0000.01117.77
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0000.00917.35
8.1.180.0060.00318.10
8.1.170.0040.00418.59
8.1.160.0040.00419.12
8.1.150.0060.00320.64
8.1.140.0000.00817.45
8.1.130.0030.00318.88
8.1.120.0030.00517.50
8.1.110.0000.00717.32
8.1.100.0050.00317.39
8.1.90.0000.00717.45
8.1.80.0000.00717.45
8.1.70.0000.00817.39
8.1.60.0000.00817.51
8.1.50.0040.00417.42
8.1.40.0000.00717.53
8.1.30.0050.00417.62
8.1.20.0030.00617.50
8.1.10.0030.00717.56
8.1.00.0040.00417.48
8.0.300.0000.00718.77
8.0.290.0040.00416.58
8.0.280.0030.00518.32
8.0.270.0000.00717.27
8.0.260.0040.00416.78
8.0.250.0030.00316.79
8.0.240.0000.00716.92
8.0.230.0000.00816.92
8.0.220.0030.00316.71
8.0.210.0030.00316.71
8.0.200.0030.00316.85
8.0.190.0060.00316.88
8.0.180.0030.00516.85
8.0.170.0030.00516.89
8.0.160.0070.00016.91
8.0.150.0030.00516.83
8.0.140.0040.00416.70
8.0.130.0000.00513.34
8.0.120.0050.00216.83
8.0.110.0050.00316.86
8.0.100.0000.00716.70
8.0.90.0000.00716.70
8.0.80.0030.01316.83
8.0.70.0090.00016.79
8.0.60.0070.00016.90
8.0.50.0040.00416.80
8.0.30.0100.01016.94
8.0.20.0060.01317.40
8.0.10.0040.00416.94
8.0.00.0030.01416.80
7.4.330.0050.00015.55
7.4.320.0030.00316.55
7.4.300.0030.00316.51
7.4.290.0000.00916.43
7.4.280.0030.00516.62
7.4.270.0030.00516.52
7.4.260.0000.00513.34
7.4.250.0040.00416.41
7.4.240.0000.00716.42
7.4.230.0000.00716.72
7.4.220.0140.00416.53
7.4.210.0060.01116.61
7.4.200.0070.00016.60
7.4.160.0100.00716.38
7.4.150.0090.00917.40
7.4.140.0130.00817.86
7.4.130.0220.00716.55
7.4.120.0090.01116.52
7.4.110.0030.01516.63
7.4.100.0090.01416.55
7.4.90.0060.01216.57
7.4.80.0130.01019.39
7.4.70.0060.01416.64
7.4.60.0080.00816.52
7.4.50.0030.01316.24
7.4.40.0100.00716.69
7.4.30.0100.00716.54
7.4.10.0110.00715.02
7.4.00.0100.00714.96
7.3.330.0060.00013.37
7.3.320.0060.00013.43
7.3.310.0030.00316.33
7.3.300.0040.00416.38
7.3.290.0030.00316.46
7.3.280.0060.00916.34
7.3.270.0060.01217.40
7.3.260.0120.00816.56
7.3.250.0110.00716.46
7.3.240.0080.01116.47
7.3.230.0110.00616.29
7.3.210.0070.01016.45
7.3.200.0110.01116.22
7.3.190.0120.00416.39
7.3.180.0080.00816.34
7.3.170.0090.00616.32
7.3.160.0170.00416.63
7.3.130.0150.00314.74
7.3.120.0080.00514.81
7.3.110.0080.00614.87
7.3.100.0060.00914.73
7.3.90.0070.00714.74
7.3.80.0070.00714.82
7.3.70.0060.00914.69
7.3.60.0060.01014.70
7.3.50.0070.00914.91
7.3.40.0060.00814.54
7.3.30.0090.00714.84
7.3.20.0050.01016.57
7.3.10.0080.00616.58
7.3.00.0040.00816.78
7.2.330.0120.00616.46
7.2.320.0150.00716.68
7.2.310.0140.00316.55
7.2.300.0100.00616.34
7.2.290.0060.00916.24
7.2.260.0040.01515.02
7.2.250.0030.01314.98
7.2.240.0100.00515.04
7.2.230.0060.01014.93
7.2.220.0100.00815.02
7.2.210.0070.00714.89
7.2.200.0090.00715.17
7.2.190.0050.01014.85
7.2.180.0060.00714.88
7.2.170.0060.00814.99
7.2.160.0050.01014.92
7.2.150.0080.00616.90
7.2.140.0060.00916.86
7.2.130.0070.00816.88
7.2.120.0020.01116.75
7.2.110.0070.00816.93
7.2.100.0110.00516.70
7.2.90.0110.00716.19
7.2.80.0120.00616.33
7.2.70.0220.01216.33
7.2.60.0280.00616.44
7.2.50.0340.00716.31
7.2.40.0460.00816.38
7.2.30.0200.00516.39
7.2.20.0260.00916.27
7.2.10.0230.01116.32
7.2.00.0250.00716.45
7.1.330.0030.01215.69
7.1.320.0070.00815.78
7.1.310.0060.00815.86
7.1.300.0060.00615.96
7.1.290.0070.00815.85
7.1.280.0030.01115.85
7.1.270.0020.01115.72
7.1.260.0060.00815.77
7.1.250.0090.00515.83
7.1.240.0050.00316.03
7.1.230.0060.00915.53
7.1.220.0040.00415.89
7.1.210.0450.00414.85
7.1.200.0460.00214.94
7.1.190.0440.00814.91
7.1.180.0410.00814.71
7.1.170.0250.00614.81
7.1.160.0320.01114.96
7.1.150.0390.00314.72
7.1.140.0520.00714.84
7.1.130.0370.00614.73
7.1.120.0270.00614.58
7.1.110.0400.01114.79
7.1.100.0440.00814.66
7.1.90.0380.00414.93
7.1.80.0370.00415.02
7.1.70.0120.00314.99
7.1.60.0400.00923.98
7.1.50.0520.00423.94
7.1.40.0530.00623.93
7.1.30.0520.01023.60
7.1.20.0250.01123.79
7.1.10.0680.01014.83
7.1.00.0320.00614.86
7.0.330.0080.00415.59
7.0.320.0030.01015.41
7.0.310.0520.00814.49
7.0.300.0520.00714.43
7.0.290.0640.00414.24
7.0.280.0510.00314.40
7.0.270.0190.00314.31
7.0.260.0460.00914.37
7.0.250.0500.00314.41
7.0.240.0900.00714.37
7.0.230.0290.00814.35
7.0.220.0310.00514.42
7.0.210.0160.01314.35
7.0.200.0610.01214.33
7.0.190.0340.00614.51
7.0.180.0270.00714.47
7.0.170.0960.00614.44
7.0.160.0400.00514.25
7.0.150.0110.00714.48
7.0.140.0350.00914.41
7.0.130.0990.00714.34
7.0.120.0740.00814.37
7.0.110.0220.00314.31
7.0.100.0350.00214.38
7.0.90.0160.00514.33
7.0.80.0300.00814.25
7.0.70.0120.00314.49
7.0.60.0310.01114.57
7.0.50.0090.01014.47
7.0.40.0220.00713.37
7.0.30.0400.00313.40
7.0.20.0040.01213.51
7.0.10.0050.00813.46
7.0.00.0060.00613.36
5.6.400.0060.01214.54
5.6.390.0040.01214.53
5.6.380.0090.00014.58
5.6.370.0070.00714.66
5.6.360.0000.01414.52
5.6.350.0060.00314.42
5.6.340.0110.00314.24
5.6.330.0070.00314.53
5.6.320.0000.01114.87
5.6.310.0140.00414.18
5.6.300.0030.01214.46
5.6.290.0070.00314.51
5.6.280.0080.00814.71
5.6.270.0050.00514.56
5.6.260.0060.00914.33
5.6.250.0100.00714.49
5.6.240.0030.01314.45
5.6.230.0040.01114.72
5.6.220.0000.01214.46
5.6.210.0060.00614.58
5.6.200.0030.01214.25
5.6.190.0060.00914.39
5.6.180.0030.00714.26
5.6.170.0040.00714.50
5.6.160.0100.00314.32
5.6.150.0040.00814.11
5.6.140.0070.00714.25
5.6.130.0040.00714.24
5.6.120.0070.01114.50
5.6.110.0030.01314.09
5.6.100.0090.00014.54
5.6.90.0070.01114.42
5.6.80.0110.00014.16
5.6.70.0030.00614.28
5.6.60.0000.01114.28
5.6.50.0030.00714.60
5.6.40.0040.01214.35
5.6.30.0030.01414.18
5.6.20.0140.00014.46
5.6.10.0070.00714.37
5.6.00.0060.00614.38

preferences:
77.39 ms | 401 KiB | 5 Q