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) { $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.40.0120.00318.98
8.3.30.0090.00918.93
8.3.20.0030.00520.16
8.3.10.0050.00321.91
8.3.00.0000.00819.38
8.2.170.0140.00322.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0060.00617.63
8.2.120.0000.00826.35
8.2.110.0060.00320.39
8.2.100.0040.00718.22
8.2.90.0040.00419.39
8.2.80.0040.00717.97
8.2.70.0030.00617.75
8.2.60.0050.00318.03
8.2.50.0000.00918.07
8.2.40.0000.00819.59
8.2.30.0070.00020.50
8.2.20.0080.00017.70
8.2.10.0070.00017.98
8.2.00.0040.00418.12
8.1.270.0070.00423.85
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0080.00023.83
8.1.230.0070.00319.10
8.1.220.0000.00917.79
8.1.210.0000.00918.77
8.1.200.0040.00417.35
8.1.190.0030.00617.70
8.1.180.0000.00818.10
8.1.170.0000.00918.68
8.1.160.0000.00722.07
8.1.150.0050.00218.88
8.1.140.0080.00019.50
8.1.130.0000.00717.75
8.1.120.0000.00717.48
8.1.110.0040.00417.36
8.1.100.0030.00517.46
8.1.90.0030.00617.41
8.1.80.0040.00417.45
8.1.70.0000.00717.33
8.1.60.0080.00017.49
8.1.50.0050.00317.51
8.1.40.0060.00617.38
8.1.30.0050.00517.69
8.1.20.0000.00917.52
8.1.10.0050.00317.58
8.1.00.0030.00617.50
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0030.00318.32
8.0.270.0000.00717.20
8.0.260.0000.00617.37
8.0.250.0000.00716.86
8.0.240.0040.00416.97
8.0.230.0000.00717.00
8.0.220.0000.00716.76
8.0.210.0040.00416.92
8.0.200.0030.00316.96
8.0.190.0000.00817.02
8.0.180.0050.00316.89
8.0.170.0040.00416.93
8.0.160.0000.00816.93
8.0.150.0040.00416.81
8.0.140.0030.00316.82
8.0.130.0030.00313.32
8.0.120.0040.00416.78
8.0.110.0050.00316.88
8.0.100.0040.00416.93
8.0.90.0050.00216.93
8.0.80.0120.00416.85
8.0.70.0070.00016.95
8.0.60.0040.00416.75
8.0.50.0070.00016.96
8.0.30.0130.01117.19
8.0.20.0080.01117.40
8.0.10.0000.00816.93
8.0.00.0080.00916.71
7.4.330.0000.00616.76
7.4.320.0000.00716.50
7.4.300.0040.00416.45
7.4.290.0000.00716.50
7.4.280.0050.00316.68
7.4.270.0070.00016.46
7.4.260.0040.00716.51
7.4.250.0060.00316.57
7.4.240.0000.00716.51
7.4.230.0040.00416.70
7.4.220.0070.01116.55
7.4.210.0100.00916.59
7.4.200.0000.00716.61
7.4.160.0140.00316.75
7.4.150.0070.01017.40
7.4.140.0080.01717.86
7.4.130.0100.01016.45
7.4.120.0100.00816.52
7.4.110.0040.01316.61
7.4.100.0110.01316.56
7.4.90.0030.01316.49
7.4.80.0140.01019.39
7.4.70.0130.00916.61
7.4.60.0120.00316.59
7.4.50.0030.01016.47
7.4.40.0060.00916.46
7.4.30.0140.01016.52
7.4.00.0070.00714.83
7.3.330.0000.00513.35
7.3.320.0060.00013.29
7.3.310.0000.00716.46
7.3.300.0020.00516.38
7.3.290.0030.00316.23
7.3.280.0090.00616.32
7.3.270.0070.01017.40
7.3.260.0090.01316.26
7.3.250.0140.00616.28
7.3.240.0140.00916.38
7.3.230.0100.00616.49
7.3.210.0090.00916.28
7.3.200.0140.00316.36
7.3.190.0060.00916.47
7.3.180.0130.00316.55
7.3.170.0030.01316.52
7.3.160.0090.00916.30
7.3.00.0060.00316.73
7.2.330.0070.01116.90
7.2.320.0100.00616.60
7.2.310.0100.01016.75
7.2.300.0060.01016.65
7.2.290.0100.00716.86
7.2.130.0090.00316.95
7.2.120.0120.00417.07
7.2.110.0130.00016.87
7.2.100.0110.00416.71
7.2.90.0040.00717.09
7.2.80.0080.00816.99
7.2.70.0070.01117.11
7.2.60.0090.00316.76
7.2.50.0110.00016.72
7.2.40.0070.01016.75
7.2.30.0060.01217.12
7.2.20.0030.01016.63
7.2.10.0130.00316.98
7.2.00.0060.00618.30
7.1.250.0030.00915.77
7.1.240.0130.00015.56
7.1.230.0030.01015.59
7.1.220.0030.00915.76
7.1.210.0000.00815.70
7.1.200.0000.01115.87
7.1.190.0030.00615.57
7.1.180.0110.00015.68
7.1.170.0030.00915.67
7.1.160.0060.00915.96
7.1.150.0070.00715.71
7.1.140.0070.00415.71
7.1.130.0040.00715.48
7.1.120.0060.00615.74
7.1.110.0120.00315.71
7.1.100.0030.01116.73
7.1.90.0030.00615.79
7.1.80.0030.00615.76
7.1.70.0030.00516.52
7.1.60.0070.01117.55
7.1.50.0130.00516.44
7.1.40.0120.00016.01
7.1.30.0070.00715.54
7.1.20.0070.00715.87
7.1.10.0060.01315.34
7.1.00.0090.03819.13
7.0.330.0060.00615.38
7.0.320.0000.01315.46
7.0.310.0120.00415.42
7.0.300.0070.01015.42
7.0.290.0030.01015.46
7.0.280.0040.00815.42
7.0.270.0060.00615.53
7.0.260.0060.01015.61
7.0.250.0030.01015.54
7.0.240.0080.00415.47
7.0.230.0080.00815.24
7.0.220.0080.00015.53
7.0.210.0040.00715.29
7.0.200.0070.00515.91
7.0.190.0040.00715.43
7.0.180.0030.01215.45
7.0.170.0030.00715.46
7.0.160.0000.01215.33
7.0.150.0070.01015.42
7.0.140.0000.01115.29
7.0.130.0080.00015.57
7.0.120.0040.01115.27
7.0.110.0040.01115.40
7.0.100.0070.00715.42
7.0.90.0110.00015.39
7.0.80.0130.00315.53
7.0.70.0060.00915.40
7.0.60.0050.02317.69
7.0.50.0090.02716.63
7.0.40.0070.03616.62
7.0.30.0160.03816.77
7.0.20.0200.03816.77
7.0.10.0020.02716.80
7.0.00.0070.04516.80
5.6.380.0040.01114.62
5.6.370.0110.00013.90
5.6.360.0060.00914.47
5.6.350.0000.01014.16
5.6.340.0090.00614.21
5.6.330.0070.00414.49
5.6.320.0040.00814.11
5.6.310.0120.00014.44
5.6.300.0030.00914.65
5.6.290.0120.00614.18
5.6.280.0020.02017.67
5.6.270.0040.00714.17
5.6.260.0140.00014.25
5.6.250.0080.00814.43
5.6.240.0040.00814.44
5.6.230.0030.00614.59
5.6.220.0100.00314.43
5.6.210.0170.03817.44
5.6.200.0090.04116.41
5.6.190.0110.02417.66
5.6.180.0230.03417.50
5.6.170.0140.03217.54
5.6.160.0070.04217.54
5.6.150.0110.04016.32
5.6.140.0100.03816.37
5.6.130.0030.02316.34
5.6.120.0170.03817.80
5.6.110.0050.04017.80
5.6.100.0080.04517.60
5.6.90.0050.04017.81
5.6.80.0050.04517.44
5.6.70.0090.00914.04
5.6.60.0150.00614.22
5.6.50.0040.00714.29
5.6.40.0070.00714.42
5.6.30.0100.00314.48
5.6.20.0160.00314.50
5.6.10.0030.01014.23
5.6.00.0110.00714.54
5.5.380.0060.00611.14
5.5.370.0050.00511.34
5.5.360.0030.00711.26
5.5.350.0170.04215.90
5.5.340.0050.03014.66
5.5.330.0100.04215.93
5.5.320.0060.03815.89
5.5.310.0100.03015.83
5.5.300.0000.02514.71
5.5.290.0130.02314.64
5.5.280.0070.03515.98
5.5.270.0080.04216.14
5.5.260.0060.02616.07
5.5.250.0090.04315.97
5.5.240.0100.03715.66
5.5.230.0070.00411.25
5.5.220.0090.00011.30
5.5.210.0040.00411.14
5.5.200.0080.00411.19
5.5.190.0070.00011.43
5.5.180.0030.00711.29
5.5.170.0000.01111.06
5.5.160.0050.00211.26
5.5.150.0030.00611.10
5.5.140.0000.00811.31
5.5.130.0060.00711.40
5.5.120.0030.00711.50
5.5.110.0140.00011.36
5.5.100.0000.01010.92
5.5.90.0040.01210.90
5.5.80.0160.00310.87
5.5.70.0150.00511.00
5.5.60.0030.00610.94
5.5.50.0150.00611.16
5.5.40.0160.00011.24
5.5.30.0160.00011.11
5.5.20.0070.00710.76
5.5.10.0080.00410.92
5.5.00.0080.00410.77

preferences:
49.4 ms | 400 KiB | 5 Q