3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test implements ArrayAccess { public $v; function __construct() { $this->v = array( 'a' => array('b' => 'c'), 'd' => array('e' => 'f'), 'g' => array('h' => 'i') ); } function offsetExists($offset) { return isset($this->v); } function &offsetGet($offset) { return isset($this->v[$offset]) ? $this->v[$offset] : null; } function offsetSet($offset, $value) { if (is_null($offset)) { $this->v[] = $value; } else { $this->v[$offset] = $value; } } function offsetUnset($offset) { unset($this->v[$offset]); } } $test = new test(); $test['a']['b'] = 'zzz'; print_r($test->v);

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.0140.00718.43
8.3.50.0090.01221.14
8.3.40.0070.00718.83
8.3.30.0090.00618.82
8.3.20.0040.00420.20
8.3.10.0080.00021.90
8.3.00.0040.00422.52
8.2.180.0090.00918.38
8.2.170.0110.00422.96
8.2.160.0100.00320.48
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0060.00317.63
8.2.110.0070.00319.33
8.2.100.0090.00317.84
8.2.90.0050.00317.88
8.2.80.0040.00418.73
8.2.70.0040.00417.75
8.2.60.0040.00417.75
8.2.50.0040.00417.63
8.2.40.0040.00419.36
8.2.30.0030.00618.01
8.2.20.0000.00717.80
8.2.10.0040.00418.18
8.2.00.0000.00818.00
8.1.280.0030.01425.92
8.1.270.0030.00620.25
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00020.67
8.1.230.0070.00421.04
8.1.220.0040.00418.74
8.1.210.0050.00318.77
8.1.200.0080.00017.66
8.1.190.0000.00817.22
8.1.180.0030.00518.10
8.1.170.0050.00317.62
8.1.160.0000.00723.79
8.1.150.0050.00318.93
8.1.140.0000.00817.50
8.1.130.0030.00317.75
8.1.120.0020.00517.45
8.1.110.0050.00317.44
8.1.100.0080.00017.45
8.1.90.0000.00817.35
8.1.80.0000.00817.29
8.1.70.0030.00317.50
8.1.60.0040.00417.53
8.1.50.0000.00817.49
8.1.40.0000.00817.39
8.1.30.0040.00717.69
8.1.20.0000.00717.71
8.1.10.0000.00717.55
8.1.00.0000.00917.38
8.0.300.0040.00418.77
8.0.290.0030.00616.88
8.0.280.0000.00818.41
8.0.270.0040.00417.27
8.0.260.0000.00617.26
8.0.250.0070.00016.97
8.0.240.0060.00016.92
8.0.230.0040.00416.87
8.0.220.0000.00716.89
8.0.210.0040.00416.98
8.0.200.0000.00717.07
8.0.190.0040.00416.90
8.0.180.0040.00417.03
8.0.170.0030.00616.99
8.0.160.0000.00716.93
8.0.150.0000.00716.86
8.0.140.0000.00816.95
8.0.130.0000.00613.45
8.0.120.0040.00416.89
8.0.110.0050.00316.79
8.0.100.0000.00716.85
8.0.90.0000.00716.86
8.0.80.0040.01216.93
8.0.70.0080.00017.08
8.0.60.0070.00016.85
8.0.50.0050.00216.92
8.0.30.0090.00616.99
8.0.20.0180.00217.40
8.0.10.0000.00817.13
8.0.00.0110.00716.77
7.4.330.0030.00315.12
7.4.320.0070.00016.43
7.4.300.0060.00016.51
7.4.290.0080.00316.63
7.4.280.0000.00816.58
7.4.270.0000.00716.43
7.4.260.0000.00716.62
7.4.250.0040.00416.56
7.4.240.0040.00416.51
7.4.230.0000.00716.51
7.4.220.0130.01316.53
7.4.210.0090.00616.55
7.4.200.0050.00216.36
7.4.160.0080.00816.53
7.4.150.0070.01117.40
7.4.140.0170.00817.86
7.4.130.0110.00716.58
7.4.120.0090.00916.54
7.4.110.0100.00716.39
7.4.100.0040.02016.62
7.4.90.0070.01016.62
7.4.80.0040.01419.39
7.4.70.0160.00016.48
7.4.60.0090.00916.48
7.4.50.0000.00816.44
7.4.40.0070.01016.56
7.4.30.0120.00616.50
7.4.00.0050.01114.95
7.3.330.0050.00013.45
7.3.320.0000.00513.36
7.3.310.0030.00616.33
7.3.300.0070.00016.43
7.3.290.0090.00616.40
7.3.280.0120.00616.39
7.3.270.0060.01617.40
7.3.260.0110.00716.45
7.3.250.0130.01016.46
7.3.240.0080.01216.59
7.3.230.0090.00916.63
7.3.210.0140.00316.46
7.3.200.0060.01519.39
7.3.190.0060.01016.41
7.3.180.0120.00316.36
7.3.170.0100.01016.46
7.3.160.0160.00016.47
7.3.120.0040.01214.64
7.3.110.0070.01014.73
7.3.100.0090.00614.87
7.3.90.0000.01414.95
7.3.80.0090.00314.68
7.3.70.0030.01014.84
7.3.60.0060.00314.93
7.3.50.0070.00715.00
7.3.40.0070.00714.76
7.3.30.0030.00614.86
7.3.20.0040.00816.39
7.3.10.0060.01016.70
7.3.00.0130.00016.80
7.2.330.0060.01216.73
7.2.320.0110.00816.75
7.2.310.0070.01116.95
7.2.300.0170.00016.77
7.2.290.0070.01016.79
7.2.250.0030.01015.27
7.2.240.0080.00814.86
7.2.230.0100.00714.84
7.2.220.0030.01315.20
7.2.210.0070.00715.02
7.2.200.0080.00515.01
7.2.190.0080.00414.99
7.2.180.0080.00815.10
7.2.170.0040.00814.98
7.2.60.0030.00616.85
7.2.00.0040.00819.08
7.1.330.0030.01315.86
7.1.320.0030.01015.75
7.1.310.0000.00915.82
7.1.300.0000.00915.64
7.1.290.0000.01315.76
7.1.280.0130.00015.81
7.1.270.0000.01615.88
7.1.260.0070.00715.64
7.1.200.0040.00715.77
7.1.100.0040.01218.26
7.1.70.0030.00617.35
7.1.60.0160.00920.03
7.1.50.0000.01516.93
7.1.00.0000.08722.54
7.0.200.0040.00416.89
7.0.60.0100.06320.02
7.0.50.0100.08317.85
7.0.40.0000.08020.30
7.0.30.0500.07320.14
7.0.20.0400.07720.16
7.0.10.0130.05720.07
7.0.00.0200.06020.25
5.6.280.0030.03021.13
5.6.210.0100.07720.57
5.6.200.0030.07718.18
5.6.190.0130.07020.54
5.6.180.0270.07320.64
5.6.170.0370.04020.50
5.6.160.0030.04320.48
5.6.150.0130.07318.12
5.6.140.0100.07718.33
5.6.130.0100.08018.19
5.6.120.0070.05320.99
5.6.110.0100.07320.97
5.6.100.0130.08320.98
5.6.90.0130.08021.14
5.6.80.0030.08020.45
5.6.70.4230.04320.37
5.5.350.0200.08020.49
5.5.340.0070.04317.98
5.5.330.0030.04720.40
5.5.320.0200.04020.28
5.5.310.0200.08020.30
5.5.300.0130.04317.93
5.5.290.0030.04317.95
5.5.280.0000.05020.82
5.5.270.0100.04020.77
5.5.260.0070.08020.80
5.5.250.0130.06720.79
5.5.240.0130.03720.18
5.4.450.0770.05719.45
5.4.440.0670.06319.46
5.4.430.0800.05719.54
5.4.420.0800.05019.58
5.4.410.0800.04719.35
5.4.400.0830.04319.01
5.4.390.0870.06019.06
5.4.380.0730.05719.23
5.4.370.0870.05018.98
5.4.360.0730.05019.15
5.4.350.0800.05719.05
5.4.340.0730.05319.21
5.4.320.0770.06019.14
5.4.310.0930.05319.25
5.4.300.0770.04719.25
5.4.290.0700.05719.15
5.4.280.0930.04019.06
5.4.270.0770.05019.13
5.4.260.0870.06319.22
5.4.250.0800.06718.99
5.4.240.0730.05019.21
5.4.230.0700.05719.14
5.4.220.0870.04019.11
5.4.210.0730.05019.25
5.4.200.0600.05016.96
5.4.190.0730.05319.00
5.4.180.0900.06019.10
5.4.170.0770.05019.13
5.4.160.0770.04719.02
5.4.150.0630.06018.97
5.4.140.0730.05316.34
5.4.130.0730.05016.39
5.4.120.0730.05316.51
5.4.110.0830.04016.41
5.4.100.0630.06016.56
5.4.90.0700.05316.53
5.4.80.0800.04316.71
5.4.70.0730.04716.38
5.4.60.0170.04716.54
5.4.50.0030.05716.48
5.4.40.0370.05016.26
5.4.30.0370.06016.42
5.4.20.0300.06016.48

preferences:
64.63 ms | 401 KiB | 5 Q