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) { $null = null; if (isset($this->v[$offset])) { return $this->v[$offset]; } return $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.5.10.0100.00820.16
8.5.00.0100.01320.16
8.4.150.0000.00214.05
8.4.140.0190.00818.02
8.4.130.0160.00517.91
8.4.120.0120.00820.95
8.4.110.0050.00418.80
8.4.100.0140.00817.89
8.4.90.0140.00617.89
8.4.80.0120.00818.21
8.4.70.0110.00419.64
8.4.60.0150.00718.73
8.4.50.0140.00620.21
8.4.40.0160.00617.95
8.4.30.0100.00617.73
8.4.20.0090.00617.82
8.4.10.0070.00417.88
8.3.280.0170.01118.61
8.3.270.0120.00716.53
8.3.260.0120.00716.73
8.3.250.0130.00518.95
8.3.240.0140.00716.72
8.3.230.0120.00816.71
8.3.220.0120.00717.08
8.3.210.0110.00716.80
8.3.200.0060.00316.63
8.3.190.0080.01017.01
8.3.180.0110.00818.68
8.3.170.0090.00917.02
8.3.160.0110.00718.43
8.3.150.0040.00416.67
8.3.140.0040.00417.13
8.3.130.0100.00018.41
8.3.120.0030.00620.70
8.3.110.0000.00920.94
8.3.100.0100.01016.63
8.3.90.0100.01016.88
8.3.80.0030.00618.43
8.3.70.0150.00718.68
8.3.60.0120.00618.43
8.3.50.0120.00721.04
8.3.40.0040.01118.95
8.3.30.0040.01118.60
8.3.20.0000.00820.37
8.3.10.0000.00721.66
8.3.00.0050.00322.29
8.2.290.0110.00520.73
8.2.280.0110.00722.40
8.2.270.0100.00517.05
8.2.260.0110.00816.47
8.2.250.0070.00716.98
8.2.240.0090.00017.26
8.2.230.0030.00622.58
8.2.220.0040.00424.06
8.2.210.0050.00226.77
8.2.200.0060.00318.29
8.2.190.0130.00716.58
8.2.180.0070.01418.55
8.2.170.0110.00422.96
8.2.160.0090.00622.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0090.00017.88
8.2.110.0110.00021.00
8.2.100.0110.00017.88
8.2.90.0040.00419.29
8.2.80.0090.00017.97
8.2.70.0080.00017.63
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0050.00321.07
8.2.30.0000.00918.02
8.2.20.0030.00517.83
8.2.10.0000.00718.01
8.2.00.0000.00818.18
8.1.330.0090.01116.86
8.1.320.0100.00916.31
8.1.310.0090.00918.14
8.1.300.0060.00918.22
8.1.290.0090.00018.88
8.1.280.0110.00425.92
8.1.270.0080.00021.98
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0030.00723.98
8.1.230.0090.00317.42
8.1.220.0040.00417.78
8.1.210.0050.00318.77
8.1.200.0060.00317.47
8.1.190.0050.00317.25
8.1.180.0000.00818.10
8.1.170.0040.00418.51
8.1.160.0080.00023.75
8.1.150.0000.00818.91
8.1.140.0000.00817.44
8.1.130.0030.00317.72
8.1.120.0040.00417.39
8.1.110.0000.00817.46
8.1.100.0050.00217.38
8.1.90.0000.00817.46
8.1.80.0040.00417.41
8.1.70.0040.00417.36
8.1.60.0060.00317.57
8.1.50.0040.00417.45
8.1.40.0050.00317.57
8.1.30.0070.00417.68
8.1.20.0040.00417.64
8.1.10.0040.00417.60
8.1.00.0000.00917.42
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0030.00318.37
8.0.270.0030.00517.28
8.0.260.0060.00017.34
8.0.250.0030.00416.96
8.0.240.0070.00016.95
8.0.230.0030.00316.86
8.0.220.0000.00816.90
8.0.210.0060.00316.94
8.0.200.0030.00316.96
8.0.190.0000.00716.90
8.0.180.0040.00416.85
8.0.170.0000.00816.98
8.0.160.0000.00816.96
8.0.150.0050.00316.89
8.0.140.0000.00816.73
8.0.130.0060.00013.35
8.0.120.0040.00416.90
8.0.110.0040.00416.98
8.0.100.0040.00416.88
8.0.90.0050.00216.88
8.0.80.0060.00916.79
8.0.70.0070.00017.02
8.0.60.0070.00017.02
8.0.50.0000.00716.90
8.0.30.0060.01217.24
8.0.20.0110.00817.42
8.0.10.0050.00216.89
8.0.00.0090.00716.82
7.4.330.0000.00615.08
7.4.320.0060.00016.59
7.4.300.0000.00716.61
7.4.290.0040.00716.54
7.4.280.0000.00716.52
7.4.270.0040.00416.38
7.4.260.0030.00316.45
7.4.250.0000.00816.61
7.4.240.0050.00216.57
7.4.230.0040.00416.38
7.4.220.0100.01016.60
7.4.210.0070.00716.73
7.4.200.0040.00416.68
7.4.160.0110.01116.32
7.4.150.0140.00517.40
7.4.140.0160.00617.86
7.4.130.0070.01516.49
7.4.120.0050.01216.47
7.4.110.0100.00716.54
7.4.100.0090.00916.60
7.4.90.0090.00916.54
7.4.80.0040.01519.39
7.4.70.0070.01116.48
7.4.60.0060.01216.38
7.4.50.0050.00016.53
7.4.40.0100.00616.49
7.4.30.0080.01516.57
7.4.00.0060.00615.16
7.3.330.0000.00713.38
7.3.320.0000.00613.22
7.3.310.0060.00416.42
7.3.300.0040.00416.34
7.3.290.0050.00916.38
7.3.280.0040.01316.36
7.3.270.0130.01017.40
7.3.260.0070.01016.29
7.3.250.0110.01016.40
7.3.240.0030.01916.61
7.3.230.0090.01316.65
7.3.210.0150.00616.53
7.3.200.0120.00919.39
7.3.190.0100.00716.41
7.3.180.0090.00716.47
7.3.170.0090.00916.38
7.3.160.0130.00316.25
7.3.10.0060.00616.86
7.3.00.0030.00616.63
7.2.330.0090.00916.77
7.2.320.0120.01216.62
7.2.310.0110.00716.48
7.2.300.0100.00716.52
7.2.290.0070.01116.55
7.2.130.0000.01516.91
7.2.120.0110.00016.82
7.2.110.0000.00916.93
7.2.100.0000.01116.93
7.2.90.0040.01216.91
7.2.80.0070.00717.15
7.2.70.0030.00716.98
7.2.60.0020.01116.85
7.2.50.0150.00016.92
7.2.40.0150.00017.13
7.2.30.0060.00916.65
7.2.20.0040.01117.01
7.2.10.0030.01016.99
7.2.00.0040.00816.69
7.1.250.0070.00715.80
7.1.200.0140.00315.58
7.1.70.0090.00617.37
7.1.60.0120.00920.03
7.1.50.0090.01316.66
7.1.00.0030.07722.45
7.0.200.0050.00216.86
7.0.60.0070.07719.88
7.0.50.0070.08317.96
7.0.40.0070.08720.14
7.0.30.0200.03720.16
7.0.20.0200.06020.33
7.0.10.0000.05720.19
7.0.00.0030.04320.24
5.6.280.0000.03320.90
5.6.210.0000.08720.56
5.6.200.0100.08018.16
5.6.190.0070.04720.55
5.6.180.0170.08720.39
5.6.170.0370.07020.43
5.6.160.0030.05720.54
5.6.150.0070.05318.16
5.6.140.0070.05018.18
5.6.130.0100.06718.27
5.6.120.0030.07721.15
5.6.110.0100.08321.00
5.6.100.0100.08021.14
5.6.90.0130.08320.98
5.6.80.0070.08020.39
5.6.70.4530.04020.53
5.5.350.0400.06320.41
5.5.340.0030.04017.99
5.5.330.0030.04020.34
5.5.320.0330.07720.33
5.5.310.0200.04020.24
5.5.300.0030.04717.98
5.5.290.0100.07318.02
5.5.280.0070.07720.86
5.5.270.0030.08320.81
5.5.260.0030.09320.78
5.5.250.0130.08320.68
5.5.240.0270.03320.07
5.4.450.0170.06019.34
5.4.440.0200.05319.20
5.4.430.0100.06319.33
5.4.420.0100.06019.57
5.4.410.0170.05319.46
5.4.400.0130.05719.08
5.4.390.0200.05019.26
5.4.380.0170.05319.17
5.4.370.0130.05719.02
5.4.360.0100.06019.16
5.4.350.0070.06019.00
5.4.340.0100.06019.28
5.4.320.0130.05719.15
5.4.310.0100.05719.00
5.4.300.0230.04319.22
5.4.290.0100.05719.15
5.4.280.0200.05019.13
5.4.270.0100.05719.14
5.4.260.0300.05719.14
5.4.250.0200.04719.11
5.4.240.0270.06318.99
5.4.230.0200.05719.25
5.4.220.0130.05319.02
5.4.210.0200.04719.01
5.4.200.0130.05016.90
5.4.190.0130.05319.27
5.4.180.0130.05319.25
5.4.170.0070.06019.07
5.4.160.0230.04319.14
5.4.150.0230.07019.34
5.4.140.0130.05316.32
5.4.130.0130.05016.34
5.4.120.0130.05016.49
5.4.110.0130.05016.39
5.4.100.0230.06016.32
5.4.90.0200.05316.31
5.4.80.0130.05016.39
5.4.70.0200.04716.28
5.4.60.0130.06716.35
5.4.50.0070.07016.48
5.4.40.0330.06016.51
5.4.30.0330.05716.35
5.4.20.0370.06016.43

preferences:
167.23 ms | 403 KiB | 5 Q