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->var[$offset]) ? $this->var[$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.0070.01118.81
8.3.50.0110.00821.27
8.3.40.0070.01118.96
8.3.30.0060.00918.97
8.3.20.0070.00020.33
8.3.10.0040.00421.76
8.3.00.0070.00022.40
8.2.180.0120.00616.75
8.2.170.0070.00722.96
8.2.160.0120.00420.29
8.2.150.0000.00924.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00817.73
8.2.110.0060.00321.18
8.2.100.0120.00017.63
8.2.90.0000.00719.30
8.2.80.0060.00317.97
8.2.70.0050.00517.38
8.2.60.0000.00818.16
8.2.50.0030.00618.07
8.2.40.0000.00821.16
8.2.30.0030.00619.92
8.2.20.0080.00017.73
8.2.10.0040.00418.17
8.2.00.0080.00018.02
8.1.280.0110.00725.92
8.1.270.0090.00020.20
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.73
8.1.230.0070.00717.48
8.1.220.0000.00817.77
8.1.210.0060.00318.77
8.1.200.0060.00317.22
8.1.190.0040.00417.38
8.1.180.0040.00418.10
8.1.170.0090.00018.65
8.1.160.0050.00223.80
8.1.150.0000.00718.90
8.1.140.0000.00817.48
8.1.130.0000.00717.62
8.1.120.0000.00717.45
8.1.110.0070.00017.47
8.1.100.0000.00817.34
8.1.90.0030.00517.31
8.1.80.0040.00417.51
8.1.70.0000.00717.48
8.1.60.0000.00817.49
8.1.50.0040.00417.48
8.1.40.0040.00417.52
8.1.30.0040.00417.63
8.1.20.0050.00217.61
8.1.10.0000.00717.48
8.1.00.0000.00817.50
8.0.300.0070.00018.77
8.0.290.0040.00416.88
8.0.280.0000.00818.46
8.0.270.0000.00717.19
8.0.260.0060.00017.11
8.0.250.0020.00517.05
8.0.240.0030.00317.02
8.0.230.0000.00717.03
8.0.220.0030.00316.95
8.0.210.0000.00717.00
8.0.200.0040.00417.00
8.0.190.0000.00816.86
8.0.180.0050.00316.88
8.0.170.0070.00016.96
8.0.160.0030.00617.10
8.0.150.0000.00717.00
8.0.140.0040.00416.86
8.0.130.0030.00313.39
8.0.120.0070.00016.82
8.0.110.0000.00716.99
8.0.100.0000.00816.79
8.0.90.0050.00316.88
8.0.80.0030.01316.95
8.0.70.0000.00716.83
8.0.60.0050.00316.85
8.0.50.0040.00416.77
8.0.30.0120.00717.14
8.0.20.0120.00617.40
8.0.10.0000.00716.98
8.0.00.0100.00716.78
7.4.330.0030.00315.20
7.4.320.0030.00316.56
7.4.300.0000.00616.60
7.4.290.0060.00316.55
7.4.280.0040.00416.51
7.4.270.0070.00016.59
7.4.260.0030.00316.64
7.4.250.0050.00316.57
7.4.240.0020.00516.58
7.4.230.0040.00416.59
7.4.220.0060.01316.61
7.4.210.0000.01416.52
7.4.200.0030.00316.50
7.4.160.0060.01016.64
7.4.150.0060.01217.40
7.4.140.0120.00917.86
7.4.130.0110.00516.62
7.4.120.0110.01016.46
7.4.110.0110.00616.65
7.4.100.0130.01016.56
7.4.90.0120.00616.53
7.4.80.0090.01519.39
7.4.70.0100.00716.49
7.4.60.0040.01316.46
7.4.50.0030.00616.64
7.4.40.0110.00716.65
7.4.30.0000.01616.46
7.4.00.0040.01314.88
7.3.330.0030.00313.43
7.3.320.0050.00013.46
7.3.310.0000.00816.46
7.3.300.0000.00716.39
7.3.290.0080.00916.38
7.3.280.0100.00816.41
7.3.270.0090.00917.40
7.3.260.0090.01216.45
7.3.250.0110.01016.35
7.3.240.0120.01116.48
7.3.230.0100.00716.39
7.3.210.0130.00316.46
7.3.200.0060.01519.39
7.3.190.0060.01016.41
7.3.180.0130.00216.45
7.3.170.0090.00616.41
7.3.160.0150.00916.42
7.3.120.0130.00315.00
7.3.110.0120.00415.05
7.3.100.0060.01014.94
7.3.90.0060.00614.89
7.3.80.0070.00314.91
7.3.70.0120.00314.83
7.3.60.0000.00914.81
7.3.50.0060.00814.90
7.3.40.0060.01014.93
7.3.30.0070.00714.78
7.3.20.0030.00916.74
7.3.10.0080.00616.61
7.3.00.0040.00716.71
7.2.330.0180.00616.69
7.2.320.0100.01316.75
7.2.310.0120.00416.63
7.2.300.0170.00016.43
7.2.290.0070.01016.49
7.2.250.0100.00714.97
7.2.240.0030.01715.02
7.2.230.0040.01114.84
7.2.220.0110.00315.27
7.2.210.0040.01114.97
7.2.200.0030.00714.98
7.2.190.0030.01014.89
7.2.180.0040.00815.15
7.2.170.0090.00315.07
7.2.130.0120.00616.88
7.2.120.0040.01116.95
7.2.110.0030.01016.94
7.2.100.0120.00316.78
7.2.90.0090.00316.86
7.2.80.0110.00416.86
7.2.70.0060.00616.79
7.2.60.0070.00816.88
7.2.50.0060.00617.02
7.2.40.0030.00916.98
7.2.30.0040.00817.05
7.2.20.0100.00616.94
7.2.10.0090.00016.78
7.2.00.0130.01017.94
7.1.330.0070.00715.93
7.1.320.0100.00315.77
7.1.310.0090.00615.71
7.1.300.0060.00315.84
7.1.290.0040.00415.82
7.1.280.0000.01215.86
7.1.270.0000.00815.61
7.1.260.0030.00915.77
7.1.250.0030.01015.57
7.1.200.0030.00515.65
7.1.100.0130.00617.80
7.1.70.0080.00417.30
7.1.60.0030.02020.03
7.1.50.0070.00716.87
7.1.00.0100.06722.43
7.0.200.0040.00416.51
7.0.110.0100.07719.96
7.0.100.0170.07319.95
7.0.90.0130.07719.94
7.0.80.0200.07319.93
7.0.70.0000.08719.93
7.0.60.0130.08020.00
7.0.50.0170.07719.96
7.0.40.0100.04719.75
7.0.30.0100.08319.78
7.0.20.0200.07719.74
7.0.10.0170.07719.72
7.0.00.0030.07319.73
5.6.280.0100.06721.11
5.6.260.0030.09020.90
5.6.250.0030.07020.61
5.6.240.0100.06720.58
5.6.230.0070.08020.57
5.6.220.0000.05320.47
5.6.210.0070.08320.64
5.6.200.0130.07020.71
5.6.190.0030.05720.71
5.6.180.0170.07720.65
5.6.170.0070.08020.67
5.6.160.0170.08020.55
5.6.150.0030.07720.72
5.6.140.0070.08020.66
5.6.130.0170.04020.64
5.6.120.0030.06320.71
5.6.110.0030.08020.70
5.6.100.0030.05320.68
5.6.90.0030.05320.65
5.6.80.0100.03319.95
5.6.70.0100.03320.02
5.6.60.0070.03720.08
5.6.50.0070.03719.86
5.6.40.0030.04020.22
5.6.30.0100.04319.93
5.6.20.0070.03319.95
5.6.10.0030.07320.01
5.6.00.0100.03019.98
5.5.380.0100.08320.52
5.5.370.0170.07020.38
5.5.360.0200.07020.38
5.5.350.0130.07020.48
5.5.340.0130.08020.82
5.5.330.0100.08320.95
5.5.320.0130.06720.71
5.5.310.0100.07720.75
5.5.300.0030.08721.02
5.5.290.0100.07720.80
5.5.280.0030.08320.79
5.5.270.0100.04720.89
5.5.260.0130.03320.89
5.5.250.0030.05320.77
5.5.240.0000.04320.14
5.5.230.0170.05720.20
5.5.220.0030.04320.11
5.5.210.0070.03720.13
5.5.200.0000.04320.27
5.5.190.0000.05320.35
5.5.180.0100.03320.20
5.5.160.0070.03720.21
5.5.150.0070.06020.19
5.5.140.0030.04020.16
5.5.130.0100.03720.16
5.5.120.0070.04020.10
5.5.110.0100.03320.15
5.5.100.0030.04020.07
5.5.90.0070.04020.26
5.5.80.0070.03720.06
5.5.70.0030.05320.21
5.5.60.0070.03720.21
5.5.50.0070.03720.07
5.5.40.0000.04720.04
5.5.30.0070.04720.20
5.5.20.0100.03720.24
5.5.10.0070.06320.04
5.5.00.0100.06019.93
5.4.450.0070.07319.28
5.4.440.0100.08019.34
5.4.430.0030.04319.50
5.4.420.0030.04019.50
5.4.410.0100.03319.18
5.4.400.0100.04018.98
5.4.390.0070.04719.16
5.4.380.0070.03319.00
5.4.370.0130.02719.31
5.4.360.0000.04019.00
5.4.350.0070.03719.14
5.4.340.0000.04719.10
5.4.320.0030.03719.01
5.4.310.0000.04019.23
5.4.300.0100.06019.34
5.4.290.0030.04019.13
5.4.280.0000.04319.03
5.4.270.0070.05718.99
5.4.260.0000.03719.00
5.4.250.0000.06319.13
5.4.240.0000.04719.24
5.4.230.0070.03719.22
5.4.220.0030.04018.98
5.4.210.0000.04319.08
5.4.200.0000.04718.94
5.4.190.0070.03719.00
5.4.180.0070.03319.02
5.4.170.0070.03318.90
5.4.160.0100.03319.20
5.4.150.0000.04019.16
5.4.140.0030.05316.51
5.4.130.0100.04716.43
5.4.120.0100.02716.27
5.4.110.0030.03716.36
5.4.100.0000.04716.57
5.4.90.0030.03316.42
5.4.80.0000.04716.45
5.4.70.0030.03316.40
5.4.60.0030.03316.63
5.4.50.0000.03716.54
5.4.40.0000.04016.58
5.4.30.0000.03716.39
5.4.20.0070.05016.41
5.4.10.0000.04016.48
5.4.00.0030.04715.80

preferences:
55.78 ms | 401 KiB | 5 Q