3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Data implements \ArrayAccess { private $_data; public function __construct($data = []) { $this->_data = $data; } public function offsetExists($offset) { echo 'EXISTS: ' . $offset . PHP_EOL; return isset($this->_data[$offset]); } public function &offsetGet($offset) { echo 'GET: ' . $offset . PHP_EOL; $returnValue = null; if (!isset($this->_data[$offset])) { return $returnValue; } $returnValue = $this->_data[$offset]; return $returnValue; } public function offsetSet($offset, $value) { echo 'SET: ' . $offset . PHP_EOL; $this->_data[$offset] = $value; } public function offsetUnset($offset) { unset($this->_data[$offset]); } } $data = new Data(); $data['aaaaa']['bbbbbb']['ccccc']='dddddd'; var_dump($data);

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.0150.00317.00
8.3.50.0150.00617.95
8.3.40.0150.00018.81
8.3.30.0140.00018.88
8.3.20.0040.00420.21
8.3.10.0080.00021.77
8.3.00.0080.00019.38
8.2.180.0120.00316.75
8.2.170.0140.00022.96
8.2.160.0070.00719.27
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0030.00717.75
8.2.120.0050.00226.35
8.2.110.0040.00422.20
8.2.100.0040.00817.84
8.2.90.0030.00617.75
8.2.80.0000.00818.04
8.2.70.0050.00318.05
8.2.60.0040.00418.05
8.2.50.0030.00518.10
8.2.40.0080.00020.42
8.2.30.0040.00420.57
8.2.20.0030.00517.76
8.2.10.0070.00018.25
8.2.00.0050.00218.11
8.1.280.0090.00625.92
8.1.270.0040.00723.75
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0090.00023.97
8.1.230.0080.00320.95
8.1.220.0080.00017.79
8.1.210.0090.00018.77
8.1.200.0070.00317.38
8.1.190.0050.00317.35
8.1.180.0080.00018.10
8.1.170.0000.00818.58
8.1.160.0030.00522.09
8.1.150.0000.00818.84
8.1.140.0080.00019.60
8.1.130.0070.00017.72
8.1.120.0040.00417.38
8.1.110.0040.00417.46
8.1.100.0030.00517.48
8.1.90.0030.00717.47
8.1.80.0030.00317.48
8.1.70.0030.00317.36
8.1.60.0080.00017.52
8.1.50.0040.00417.54
8.1.40.0060.00617.42
8.1.30.0000.00817.67
8.1.20.0080.00017.50
8.1.10.0040.00417.47
8.1.00.0040.00417.59
8.0.300.0070.00019.71
8.0.290.0000.00816.63
8.0.280.0070.00018.49
8.0.270.0030.00317.15
8.0.260.0030.00317.21
8.0.250.0030.00417.01
8.0.240.0040.00416.94
8.0.230.0030.00316.81
8.0.220.0000.00716.87
8.0.210.0030.00616.99
8.0.200.0060.00016.86
8.0.190.0080.00016.83
8.0.180.0000.00716.85
8.0.170.0050.00316.80
8.0.160.0020.00516.92
8.0.150.0040.00416.84
8.0.140.0030.00316.80
8.0.130.0050.00013.33
8.0.120.0000.00816.89
8.0.110.0070.00316.85
8.0.100.0040.00416.81
8.0.90.0000.00816.97
8.0.80.0030.01216.87
8.0.70.0030.00516.85
8.0.60.0040.00416.80
8.0.50.0030.00516.78
8.0.30.0070.01217.19
8.0.20.0090.01017.40
8.0.10.0070.00016.89
8.0.00.0070.00916.89
7.4.330.0030.00316.73
7.4.320.0030.00316.57
7.4.300.0050.00216.64
7.4.290.0000.00716.51
7.4.280.0000.00716.61
7.4.270.0080.00016.54
7.4.260.0000.00613.32
7.4.250.0000.00716.50
7.4.240.0050.00216.60
7.4.230.0000.00716.40
7.4.220.0090.00916.60
7.4.210.0090.00716.64
7.4.200.0030.00316.70
7.4.160.0050.01116.48
7.4.150.0120.00617.40
7.4.140.0140.00617.86
7.4.130.0080.00916.57
7.4.120.0120.01116.59
7.4.110.0110.00716.54
7.4.100.0140.00316.56
7.4.90.0160.00616.55
7.4.80.0100.01019.39
7.4.70.0110.00516.69
7.4.60.0130.00316.38
7.4.50.0040.01116.21
7.4.40.0030.01316.36
7.4.30.0040.02016.48
7.4.00.0030.00914.90
7.3.330.0060.00013.35
7.3.320.0060.00013.38
7.3.310.0070.00016.23
7.3.300.0070.00016.27
7.3.290.0000.00716.34
7.3.280.0090.00916.34
7.3.270.0040.01317.40
7.3.260.0120.00916.55
7.3.250.0080.01116.49
7.3.240.0120.00716.44
7.3.230.0180.00616.39
7.3.210.0030.01516.49
7.3.200.0150.00416.47
7.3.190.0040.01216.59
7.3.180.0100.00716.62
7.3.170.0130.00816.57
7.3.160.0030.01316.31
7.3.10.0100.00516.36
7.3.00.0070.00716.56
7.2.330.0040.01316.77
7.2.320.0060.01016.48
7.2.310.0070.01416.31
7.2.300.0030.01316.71
7.2.290.0070.01016.81
7.2.130.0050.00816.67
7.2.120.0090.00916.87
7.2.110.0070.00816.62
7.2.100.0100.00516.58
7.2.90.0090.00616.70
7.2.80.0110.00616.72
7.2.70.0100.01016.95
7.2.60.0130.00616.85
7.2.50.0140.00816.83
7.2.40.0100.00416.72
7.2.30.0160.00616.82
7.2.20.0100.00816.78
7.2.10.0100.00716.62
7.2.00.0050.01117.40
7.1.250.0120.00515.56
7.1.240.0060.00315.73
7.1.230.0030.00715.67
7.1.220.0030.01015.65
7.1.210.0030.01315.80
7.1.200.0040.00915.74
7.1.190.0030.00715.91
7.1.180.0070.00315.84
7.1.170.0040.00715.57
7.1.160.0030.00915.81
7.1.150.0100.00315.60
7.1.140.0030.00915.66
7.1.130.0030.01015.53
7.1.120.0000.01315.56
7.1.110.0110.00415.83
7.1.100.0060.00516.95
7.1.90.0080.00615.65
7.1.80.0090.00615.69
7.1.70.0020.01216.43
7.1.60.0050.01417.42
7.1.50.0040.00716.21
7.1.40.0060.00615.46
7.1.30.0070.01115.75
7.1.20.0100.00315.19
7.1.10.0080.00315.42
7.1.00.0050.04019.12
7.0.330.0030.00615.43
7.0.320.0100.00314.96
7.0.310.0080.00815.39
7.0.300.0030.01014.83
7.0.290.0040.00415.41
7.0.280.0030.00915.10
7.0.270.0080.00315.06
7.0.260.0060.00615.12
7.0.250.0080.00415.11
7.0.240.0000.01115.21
7.0.230.0060.00614.99
7.0.220.0090.00315.43
7.0.210.0100.00314.96
7.0.200.0140.00715.08
7.0.190.0090.00915.09
7.0.180.0110.00415.15
7.0.170.0080.00315.43
7.0.160.0030.01315.24
7.0.150.0030.00615.15
7.0.140.0080.00015.44
7.0.130.0060.01015.14
7.0.120.0140.00015.47
7.0.110.0040.01115.46
7.0.100.0050.00315.25
7.0.90.0000.01315.18
7.0.80.0060.00315.20
7.0.70.0110.00415.07
7.0.60.0060.02817.65
7.0.50.0070.03016.60
7.0.40.0070.04516.76
7.0.30.0130.02616.63
7.0.20.0160.04916.64
7.0.10.0110.02716.63
7.0.00.0070.04016.86
5.6.380.0070.00314.46
5.6.370.0040.01114.37
5.6.360.0040.00714.45
5.6.350.0030.01014.20
5.6.340.0030.01014.55
5.6.330.0030.00814.29
5.6.320.0070.00714.58
5.6.310.0070.01014.63
5.6.300.0040.00714.38
5.6.290.0000.00914.21
5.6.280.0050.01917.57
5.6.270.0070.00414.61
5.6.260.0040.01114.36
5.6.250.0070.00714.44
5.6.240.0060.00314.30
5.6.230.0090.00614.68
5.6.220.0000.01214.52
5.6.210.0020.05017.53
5.6.200.0070.04516.21
5.6.190.0090.02817.42
5.6.180.0250.03817.29
5.6.170.0130.02317.20
5.6.160.0080.04217.63
5.6.150.0120.02316.55
5.6.140.0150.02316.18
5.6.130.0040.02616.38
5.6.120.0090.04617.79
5.6.110.0050.04617.75
5.6.100.0050.04117.51
5.6.90.0030.04817.79
5.6.80.0070.04317.29
5.6.70.0070.00714.17
5.6.60.0070.00314.28
5.6.50.0000.01514.12
5.6.40.0090.00014.39
5.6.30.0000.01014.32
5.6.20.0030.00914.16
5.6.10.0040.00814.40
5.6.00.0070.00314.34
5.5.380.0030.00511.29
5.5.370.0060.00311.57
5.5.360.0030.00311.40
5.5.350.0120.03915.79
5.5.340.0060.03814.66
5.5.330.0050.04815.90
5.5.320.0060.03215.83
5.5.310.0110.02315.80
5.5.300.0050.04314.69
5.5.290.0140.03614.75
5.5.280.0090.03515.89
5.5.270.0070.04316.05
5.5.260.0080.02316.04
5.5.250.0090.04215.84
5.5.240.2030.02415.58
5.5.230.0080.00311.07
5.5.220.0060.00011.22
5.5.210.0060.00311.19
5.5.200.0070.00311.08
5.5.190.0040.00411.42
5.5.180.0040.00411.18
5.5.170.0030.00711.11
5.5.160.0060.00310.94
5.5.150.0030.00911.13
5.5.140.0000.00911.39
5.5.130.0060.00010.90
5.5.120.0030.01010.90
5.5.110.0030.00611.02
5.5.100.0030.00711.23
5.5.90.0070.00410.90
5.5.80.0060.00011.19
5.5.70.0030.00311.14
5.5.60.0000.01011.35
5.5.50.0000.00811.04
5.5.40.0000.00711.02
5.5.30.0040.00411.48
5.5.20.0030.00711.39
5.5.10.0040.00410.95
5.5.00.0000.01011.20

preferences:
43.17 ms | 401 KiB | 5 Q