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; var_dump($value); $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.70.0120.00918.55
8.3.60.0140.00716.63
8.3.50.0150.00722.11
8.3.40.0040.01118.93
8.3.30.0110.00418.87
8.3.20.0040.00420.34
8.3.10.0040.00421.90
8.3.00.0040.00419.27
8.2.190.0210.00016.58
8.2.180.0140.00716.75
8.2.170.0180.00422.96
8.2.160.0100.00320.45
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00717.75
8.2.120.0070.00026.35
8.2.110.0060.00321.00
8.2.100.0030.00917.84
8.2.90.0060.00317.88
8.2.80.0030.00618.78
8.2.70.0050.00317.50
8.2.60.0030.00517.63
8.2.50.0000.00918.03
8.2.40.0060.00319.66
8.2.30.0070.00020.50
8.2.20.0000.01017.76
8.2.10.0000.00818.13
8.2.00.0040.00418.06
8.1.280.0030.01225.92
8.1.270.0030.00923.76
8.1.260.0040.00428.09
8.1.250.0030.00528.09
8.1.240.0040.00719.56
8.1.230.0060.00620.84
8.1.220.0030.00518.74
8.1.210.0050.00319.12
8.1.200.0000.00817.35
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0080.00017.62
8.1.160.0000.00722.00
8.1.150.0070.00018.79
8.1.140.0000.00819.49
8.1.130.0030.00317.75
8.1.120.0070.00017.48
8.1.110.0000.00717.47
8.1.100.0000.00817.50
8.1.90.0000.01117.42
8.1.80.0030.00517.43
8.1.70.0000.00717.29
8.1.60.0040.00417.59
8.1.50.0000.00817.45
8.1.40.0000.00917.38
8.1.30.0030.00617.64
8.1.20.0000.00817.59
8.1.10.0070.00017.54
8.1.00.0000.00817.49
8.0.300.0060.00319.98
8.0.290.0040.00416.63
8.0.280.0070.00018.36
8.0.270.0030.00317.27
8.0.260.0040.00417.30
8.0.250.0000.00716.97
8.0.240.0080.00016.89
8.0.230.0040.00416.93
8.0.220.0030.00316.91
8.0.210.0070.00016.96
8.0.200.0020.00516.86
8.0.190.0020.00517.00
8.0.180.0000.00717.01
8.0.170.0040.00416.87
8.0.160.0050.00316.90
8.0.150.0000.00716.84
8.0.140.0000.00816.83
8.0.130.0030.00313.37
8.0.120.0040.00416.77
8.0.110.0000.00816.96
8.0.100.0030.00516.91
8.0.90.0040.00416.96
8.0.80.0080.00816.91
8.0.70.0000.00716.81
8.0.60.0040.00416.94
8.0.50.0070.00016.96
8.0.30.0100.00916.87
8.0.20.0090.00917.40
8.0.10.0020.00516.89
8.0.00.0090.01016.73
7.4.330.0030.00316.84
7.4.320.0030.00316.59
7.4.300.0030.00316.59
7.4.290.0000.00716.63
7.4.280.0000.01016.46
7.4.270.0040.00416.62
7.4.260.0060.00316.51
7.4.250.0070.00016.61
7.4.240.0030.00316.57
7.4.230.0000.00716.54
7.4.220.0090.01216.50
7.4.210.0060.01016.50
7.4.200.0030.00316.43
7.4.160.0150.00616.39
7.4.150.0120.00617.40
7.4.140.0070.01517.86
7.4.130.0030.01416.44
7.4.120.0100.00816.37
7.4.110.0030.01416.28
7.4.100.0100.00716.43
7.4.90.0130.00716.34
7.4.80.0040.02119.39
7.4.70.0080.00816.49
7.4.60.0100.00716.64
7.4.50.0070.01016.53
7.4.40.0090.00916.53
7.4.30.0090.00916.45
7.4.00.0030.01414.59
7.3.330.0030.00313.43
7.3.320.0030.00313.32
7.3.310.0070.00016.37
7.3.300.0060.00016.37
7.3.290.0070.00016.45
7.3.280.0110.00816.37
7.3.270.0090.00917.40
7.3.260.0070.01716.37
7.3.250.0120.00816.43
7.3.240.0100.01016.29
7.3.230.0090.01616.48
7.3.210.0090.00916.28
7.3.200.0090.00916.36
7.3.190.0030.01416.22
7.3.180.0120.00316.58
7.3.170.0080.00816.30
7.3.160.0120.00416.50
7.2.330.0120.00616.77
7.2.320.0170.00016.81
7.2.310.0140.00616.80
7.2.300.0070.01316.64
7.2.290.0130.00416.55
7.2.60.0160.00516.60
7.2.00.0030.01319.42
7.1.200.0040.01115.61
7.1.100.0000.01118.11
7.1.70.0050.00217.34
7.1.60.0030.02119.36
7.1.50.0040.01217.02
7.1.00.0000.08022.45
7.0.200.2280.00014.82
7.0.60.0070.03719.94
7.0.50.0030.04717.92
7.0.40.0170.05320.09
7.0.30.0170.04320.20
7.0.20.0330.07020.33
7.0.10.0030.05320.16
7.0.00.0000.05020.14
5.6.280.0070.02720.87
5.6.210.0200.06720.54
5.6.200.0070.08718.20
5.6.190.0030.06320.63
5.6.180.0300.05020.56
5.6.170.0270.08320.41
5.6.160.0100.05320.48
5.6.150.0030.06718.29
5.6.140.0100.03718.24
5.6.130.0100.07718.18
5.6.120.0030.07721.01
5.6.110.0000.08721.04
5.6.100.0230.05320.98
5.6.90.0030.04321.00
5.6.80.0130.07020.54
5.5.350.0130.04320.52
5.5.340.0070.08318.04
5.5.330.0100.07320.44
5.5.320.0300.04320.35
5.5.310.0230.06020.36
5.5.300.0170.07718.04
5.5.290.0070.04717.97
5.5.280.0070.08720.82
5.5.270.0100.05320.88
5.5.260.0130.05320.88
5.5.250.0100.07720.48
5.5.240.0200.08020.17

preferences:
53.15 ms | 401 KiB | 5 Q