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.0200.00018.68
8.3.50.0150.00721.21
8.3.40.0040.01418.79
8.3.30.0070.00718.88
8.3.20.0040.00420.04
8.3.10.0080.00021.85
8.3.00.0050.00222.52
8.2.180.0110.00716.63
8.2.170.0170.00022.96
8.2.160.0000.01320.52
8.2.150.0090.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0030.00617.75
8.2.110.0090.00020.93
8.2.100.0080.00417.88
8.2.90.0000.00819.18
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0030.00521.06
8.2.30.0030.00618.07
8.2.20.0000.00817.63
8.2.10.0040.00418.12
8.2.00.0000.00818.00
8.1.280.0070.00725.92
8.1.270.0040.00420.21
8.1.260.0030.00526.35
8.1.250.0060.00328.09
8.1.240.0090.00023.97
8.1.230.0170.00017.42
8.1.220.0090.00017.78
8.1.210.0050.00318.77
8.1.200.0030.00717.35
8.1.190.0080.00017.25
8.1.180.0050.00318.10
8.1.170.0030.00618.39
8.1.160.0000.00823.85
8.1.150.0000.00718.86
8.1.140.0000.00817.53
8.1.130.0000.00717.63
8.1.120.0050.00317.52
8.1.110.0040.00417.45
8.1.100.0050.00317.37
8.1.90.0040.00417.34
8.1.80.0040.00417.47
8.1.70.0030.00517.47
8.1.60.0060.00317.59
8.1.50.0040.00417.47
8.1.40.0000.00817.57
8.1.30.0000.01217.69
8.1.20.0070.00017.53
8.1.10.0000.00717.48
8.1.00.0040.00417.56
8.0.300.0000.00818.77
8.0.290.0000.00816.63
8.0.280.0030.00318.46
8.0.270.0000.00817.31
8.0.260.0000.00617.17
8.0.250.0040.00417.04
8.0.240.0030.00316.94
8.0.230.0040.00416.84
8.0.220.0040.00416.93
8.0.210.0030.00316.87
8.0.200.0030.00317.06
8.0.190.0040.00417.04
8.0.180.0000.00816.89
8.0.170.0040.00416.87
8.0.160.0000.00716.83
8.0.150.0040.00416.97
8.0.140.0040.00416.91
8.0.130.0000.00613.41
8.0.120.0080.00016.93
8.0.110.0000.00716.99
8.0.100.0000.00816.91
8.0.90.0000.00817.03
8.0.80.0040.01116.91
8.0.70.0000.00816.93
8.0.60.0040.00416.86
8.0.50.0000.00716.95
8.0.30.0080.01217.18
8.0.20.0090.01117.45
8.0.10.0040.00417.15
8.0.00.0060.01116.83
7.4.330.0000.00515.08
7.4.320.0030.00316.53
7.4.300.0060.00016.41
7.4.290.0060.00616.41
7.4.280.0000.00816.48
7.4.270.0000.00816.55
7.4.260.0000.00716.45
7.4.250.0080.00016.48
7.4.240.0020.00516.55
7.4.230.0000.00716.42
7.4.220.0150.00316.70
7.4.210.0110.00316.68
7.4.200.0040.00416.35
7.4.160.0030.01316.76
7.4.150.0140.00417.40
7.4.140.0100.01017.86
7.4.130.0130.00516.70
7.4.120.0040.01916.50
7.4.110.0060.01016.65
7.4.100.0090.00916.58
7.4.90.0070.01016.53
7.4.80.0140.00319.39
7.4.70.0060.01216.59
7.4.60.0120.00616.52
7.4.50.0030.00516.64
7.4.40.0040.01316.43
7.4.30.0030.01916.50
7.4.00.0090.00915.09
7.3.330.0030.00313.38
7.3.320.0030.00313.50
7.3.310.0000.01016.25
7.3.300.0070.00016.49
7.3.290.0070.00816.38
7.3.280.0100.01016.43
7.3.270.0100.00717.40
7.3.260.0120.00616.36
7.3.250.0090.01516.56
7.3.240.0060.01716.59
7.3.230.0120.00616.57
7.3.210.0050.01016.57
7.3.200.0060.01119.39
7.3.190.0080.00816.60
7.3.180.0080.00816.35
7.3.170.0050.01116.43
7.3.160.0130.00316.45
7.3.120.0000.01815.00
7.3.110.0060.01314.86
7.3.100.0060.00314.82
7.3.90.0080.00814.66
7.3.80.0000.01314.74
7.3.70.0110.00315.02
7.3.60.0100.00614.72
7.3.50.0070.01014.82
7.3.40.0040.00714.66
7.3.30.0000.01314.86
7.3.20.0040.00716.64
7.3.10.0030.01316.73
7.3.00.0060.00616.53
7.2.330.0090.01216.41
7.2.320.0140.00516.67
7.2.310.0030.01316.54
7.2.300.0060.01216.89
7.2.290.0090.00916.88
7.2.240.0070.01114.78
7.2.230.0030.01014.81
7.2.220.0050.00515.16
7.2.210.0040.00815.23
7.2.200.0120.00014.84
7.2.190.0030.01515.16
7.2.180.0070.01115.10
7.2.170.0070.00715.14
7.2.160.0090.00015.08
7.2.150.0060.00916.71
7.2.140.0070.01116.68
7.2.130.0050.00816.91
7.2.120.0040.00816.91
7.2.110.0080.00716.73
7.2.100.0060.00616.69
7.2.90.0070.00716.67
7.2.80.0050.00616.98
7.2.70.0050.00916.79
7.2.60.0070.00316.80
7.2.50.0090.00616.78
7.2.40.0060.00816.67
7.2.30.0040.00616.80
7.2.20.0040.00716.73
7.2.10.0040.01016.86
7.2.00.0050.00916.87
7.1.330.0000.01115.92
7.1.320.0040.00415.69
7.1.310.0040.01115.92
7.1.300.0000.01615.61
7.1.290.0060.00315.89
7.1.280.0000.01415.66
7.1.270.0000.01215.87
7.1.260.0090.00915.84
7.1.250.0070.00515.88
7.1.240.0030.00615.72
7.1.230.0000.01315.67
7.1.220.0060.00615.60
7.1.210.0070.00415.75
7.1.200.0030.00815.70
7.1.190.0030.00915.88
7.1.180.0060.00315.77
7.1.170.0040.00715.76
7.1.160.0040.01115.73
7.1.150.0030.00715.87
7.1.140.0040.00415.86
7.1.130.0060.00615.57
7.1.120.0000.00815.79
7.1.110.0080.00015.93
7.1.100.0060.00615.76
7.1.90.0030.00615.59
7.1.80.0040.01115.59
7.1.70.0050.00516.34
7.1.60.0090.01118.01
7.1.50.0090.00916.44
7.1.40.0060.00315.78
7.1.30.0040.00815.55
7.1.20.0000.00715.77
7.1.10.0030.01015.68
7.1.00.0030.04318.86
7.0.330.0070.00415.17
7.0.320.0060.00615.40
7.0.310.0000.01215.42
7.0.300.0060.00615.29
7.0.290.0030.00915.31
7.0.280.0030.00715.54
7.0.270.0070.00415.32
7.0.260.0000.01415.06
7.0.250.0030.01015.58
7.0.240.0000.01015.39
7.0.230.0000.01015.33
7.0.220.0060.00615.26
7.0.210.0000.01015.52
7.0.200.0050.00715.97
7.0.190.0070.00715.24
7.0.180.0040.01115.26
7.0.170.0040.00815.48
7.0.160.0100.00315.45
7.0.150.0040.00815.62
7.0.140.0050.00515.52
7.0.130.0030.00915.51
7.0.120.0000.01315.47
7.0.110.0000.01015.55
7.0.100.0040.00415.53
7.0.90.0040.00415.34
7.0.80.0070.00715.07
7.0.70.0000.01415.22
7.0.60.0100.03817.75
7.0.50.0070.04516.70
7.0.40.0070.02916.82
7.0.30.0120.02216.64
7.0.20.0150.03516.85
7.0.10.0050.04716.72
7.0.00.0120.03716.81
5.6.380.0030.00614.42
5.6.370.0030.00814.27
5.6.360.0000.01314.51
5.6.350.0070.00314.39
5.6.340.0070.00714.75
5.6.330.0090.00614.76
5.6.320.0060.00614.55
5.6.310.0060.00614.43
5.6.300.0050.00214.75
5.6.290.0030.00614.28
5.6.280.0040.02717.73
5.6.270.0030.00714.44
5.6.260.0040.00914.16
5.6.250.0080.00314.35
5.6.240.0060.00314.52
5.6.230.0130.00314.37
5.6.220.0060.00314.32
5.6.210.0030.02817.62
5.6.200.0120.03516.30
5.6.190.0090.04417.54
5.6.180.0120.03017.29
5.6.170.0170.04317.51
5.6.160.0130.02617.55
5.6.150.0040.02316.39
5.6.140.0080.03816.47
5.6.130.0090.02416.38
5.6.120.0020.03817.82
5.6.110.0070.04417.72
5.6.100.0080.04217.79
5.6.90.0080.02517.63
5.6.80.0040.03517.41
5.6.70.2250.02517.47
5.6.60.0030.00614.41
5.6.50.0070.00714.39
5.6.40.0060.00314.54
5.6.30.0000.00714.54
5.6.20.0100.00014.39
5.6.10.0000.01314.26
5.6.00.0070.00314.30
5.5.380.0060.00611.44
5.5.370.0030.01011.18
5.5.360.0060.00311.18
5.5.350.0170.02915.76
5.5.340.0080.04214.66
5.5.330.0030.02815.79
5.5.320.0150.02415.86
5.5.310.0110.02715.73
5.5.300.0100.03214.56
5.5.290.0030.04214.73
5.5.280.0080.02816.00
5.5.270.0020.02716.07
5.5.260.0030.03716.13
5.5.250.0060.02116.00
5.5.240.2120.02315.75
5.5.230.0090.00311.30
5.5.220.0000.01011.18
5.5.210.0030.00711.27
5.5.200.0100.00011.18
5.5.190.0040.00411.21
5.5.180.0000.01011.36
5.5.170.0030.00711.22
5.5.160.0040.00711.38
5.5.150.0040.00411.19
5.5.140.0000.01311.18
5.5.130.0070.00011.25
5.5.120.0000.00611.34
5.5.110.0030.00611.26
5.5.100.0040.00411.28
5.5.90.0000.00811.46
5.5.80.0080.00011.35
5.5.70.0000.01011.20
5.5.60.0060.00311.21
5.5.50.0060.00611.34
5.5.40.0090.00011.37
5.5.30.0030.00611.18
5.5.20.0090.00011.23
5.5.10.0040.00711.32
5.5.00.0040.00411.18
5.4.450.0370.03815.24
5.4.440.0350.03215.32
5.4.430.0350.03215.35
5.4.420.0250.02315.18
5.4.410.0100.03215.32
5.4.400.0220.03215.17
5.4.390.0360.02615.22
5.4.380.0170.03015.27
5.4.370.0120.03715.20
5.4.360.0320.02815.19
5.4.350.0060.03615.23
5.4.340.0050.04015.20
5.4.330.0040.00411.18
5.4.320.0300.02715.23
5.4.310.0250.03415.27
5.4.300.0280.03115.11
5.4.290.0400.02615.21
5.4.280.0480.03215.27
5.4.270.0340.02715.02
5.4.260.0440.03515.24
5.4.250.0400.04115.23
5.4.240.0480.03315.02
5.4.230.0490.04015.23
5.4.220.0480.03715.23
5.4.210.0560.03515.09
5.4.200.0350.03314.05
5.4.190.0280.03715.10
5.4.180.0420.02815.28
5.4.170.0520.04315.18
5.4.160.0350.03515.08
5.4.150.0500.02415.15
5.4.140.0400.03613.80
5.4.130.0470.02913.75
5.4.120.0350.04713.74
5.4.110.0440.03113.79
5.4.100.0430.03113.95
5.4.90.0390.03513.75
5.4.80.0400.03613.90
5.4.70.0400.03113.77
5.4.60.0040.01813.83
5.4.50.0020.02213.75
5.4.40.0130.02213.67
5.4.30.0210.02613.86
5.4.20.0130.02713.85
5.4.10.0050.00311.18
5.4.00.0040.00411.26

preferences:
59 ms | 401 KiB | 5 Q