3v4l.org

run code in 300+ PHP versions simultaneously
<?php class obj implements arrayaccess { private $container = array(); public function __construct() { $this->container = array( "one" => 1, "two" => 2, "three" => 3, ); } public function offsetSet($offset, $value) { if (empty($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } public function offsetExists($offset) { return isset($this->container[$offset]); } public function offsetUnset($offset) { unset($this->container[$offset]); } public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } } $obj = new obj; $obj = 'Append 1'; print_r($obj);

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.0030.01618.77
8.3.50.0110.00621.27
8.3.40.0150.00018.85
8.3.30.0070.00720.38
8.3.20.0070.00020.18
8.3.10.0060.00321.98
8.3.00.0050.00322.52
8.2.180.0110.00418.18
8.2.170.0170.00322.96
8.2.160.0110.00722.21
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00020.78
8.2.110.0030.00722.18
8.2.100.0030.00917.84
8.2.90.0040.00417.78
8.2.80.0030.00519.21
8.2.70.0040.00417.92
8.2.60.0000.00917.63
8.2.50.0050.00317.55
8.2.40.0030.00619.35
8.2.30.0040.00417.57
8.2.20.0000.00817.67
8.2.10.0040.00417.66
8.2.00.0030.00617.81
8.1.280.0170.01025.92
8.1.270.0030.00523.99
8.1.260.0060.00326.35
8.1.250.0070.00728.09
8.1.240.0050.00522.48
8.1.230.0080.00420.96
8.1.220.0040.00417.79
8.1.210.0060.00318.77
8.1.200.0030.00617.47
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0050.00317.65
8.1.160.0000.00718.82
8.1.150.0000.00718.57
8.1.140.0040.00417.46
8.1.130.0040.00417.88
8.1.120.0070.00017.36
8.1.110.0000.00717.37
8.1.100.0000.00717.34
8.1.90.0000.00817.43
8.1.80.0040.00417.43
8.1.70.0000.00717.36
8.1.60.0000.00717.48
8.1.50.0040.00417.54
8.1.40.0040.00417.55
8.1.30.0000.00817.65
8.1.20.0030.00517.67
8.1.10.0050.00317.57
8.1.00.0070.00017.35
8.0.300.0080.00020.11
8.0.290.0070.00016.63
8.0.280.0000.00818.08
8.0.270.0030.00317.89
8.0.260.0030.00316.74
8.0.250.0000.00716.95
8.0.240.0000.00816.83
8.0.230.0000.00816.84
8.0.220.0000.00716.90
8.0.210.0000.00716.91
8.0.200.0030.00516.89
8.0.190.0000.00716.97
8.0.180.0030.00516.91
8.0.170.0050.00316.85
8.0.160.0050.00316.84
8.0.150.0040.00416.91
8.0.140.0030.00716.86
8.0.130.0060.00013.30
8.0.120.0040.00416.89
8.0.110.0040.00416.94
8.0.100.0000.00716.68
8.0.90.0000.00716.89
8.0.80.0100.00616.78
8.0.70.0070.00016.86
8.0.60.0040.00416.96
8.0.50.0000.00716.97
8.0.30.0100.00916.86
8.0.20.0090.01017.40
8.0.10.0060.00317.01
8.0.00.0100.01216.89
7.4.330.0000.00516.79
7.4.320.0030.00316.54
7.4.300.0030.00316.65
7.4.290.0030.00316.60
7.4.280.0000.00816.49
7.4.270.0000.00716.50
7.4.260.0030.00313.29
7.4.250.0040.00416.59
7.4.240.0030.00416.53
7.4.230.0030.00316.34
7.4.220.0090.01016.47
7.4.210.0090.00616.58
7.4.200.0030.00316.35
7.4.190.0030.00316.55
7.4.160.0070.01016.48
7.4.150.0150.00317.40
7.4.140.0090.00717.86
7.4.130.0120.00516.51
7.4.120.0050.01116.39
7.4.110.0160.00016.46
7.4.100.0040.01416.49
7.4.90.0110.00716.50
7.4.80.0080.00819.39
7.4.70.0040.01316.61
7.4.60.0110.00416.45
7.4.50.0080.00016.52
7.4.40.0060.01122.77
7.4.30.0160.00016.37
7.4.10.0020.01515.64
7.4.00.0060.01215.28
7.3.330.0000.00613.22
7.3.320.0060.00013.25
7.3.310.0030.00316.12
7.3.300.0070.00016.15
7.3.290.0100.00716.40
7.3.280.0070.01116.29
7.3.270.0140.00317.40
7.3.260.0230.00016.52
7.3.250.0140.00816.30
7.3.240.0080.00916.53
7.3.230.0110.00516.56
7.3.210.0060.01216.45
7.3.200.0070.01019.39
7.3.190.0130.00316.35
7.3.180.0100.00716.48
7.3.170.0040.01116.40
7.3.160.0100.00716.43
7.3.130.0020.01415.67
7.3.120.0050.01215.20
7.3.110.0020.01215.52
7.3.100.0060.01015.32
7.3.90.0030.01115.29
7.3.80.0100.00715.24
7.3.70.0100.00215.34
7.3.60.0080.00715.18
7.3.50.0090.00515.12
7.3.40.0070.00815.10
7.3.30.0070.00715.19
7.3.20.0070.00717.09
7.3.10.0060.00817.06
7.3.00.0090.00617.11
7.2.330.0110.00716.85
7.2.320.0140.00916.75
7.2.310.0110.00616.67
7.2.300.0090.00616.66
7.2.290.0060.01016.53
7.2.260.0090.00915.73
7.2.250.0070.00915.63
7.2.240.0080.00715.55
7.2.230.0090.00915.60
7.2.220.0060.00915.59
7.2.210.0060.00915.58
7.2.200.0080.00415.61
7.2.190.0090.00715.54
7.2.180.0070.00815.45
7.2.170.0050.01015.45
7.2.160.0080.01015.67
7.2.150.0050.00917.65
7.2.140.0070.00717.75
7.2.130.0030.00617.64
7.2.120.0050.00817.52
7.2.110.0050.00917.43
7.2.100.0060.00617.67
7.2.90.0030.00917.60
7.2.80.0050.00817.67
7.2.70.0110.00617.57
7.2.60.0040.01417.67
7.2.50.0090.00817.64
7.2.40.0030.00817.68
7.2.30.0090.00917.59
7.2.20.0070.00817.74
7.2.10.0060.00817.60
7.2.00.0090.00818.20
7.1.330.0010.01416.27
7.1.320.0060.00816.30
7.1.310.0050.00816.20
7.1.300.0100.00716.24
7.1.290.0060.00916.17
7.1.280.0020.01116.24
7.1.270.0070.00716.07
7.1.260.0020.01116.32
7.1.250.0100.00516.38
7.1.240.0020.01116.54
7.1.230.0050.00816.39
7.1.220.0060.00516.50
7.1.210.0030.00916.37
7.1.200.0040.00916.46
7.1.190.0100.00216.41
7.1.180.0080.00816.45
7.1.170.0070.00716.56
7.1.160.0060.00616.46
7.1.150.0030.01016.32
7.1.140.0060.00816.45
7.1.130.0060.00616.42
7.1.120.0030.01116.50
7.1.110.0060.00616.53
7.1.100.0060.00717.19
7.1.90.0050.01116.47
7.1.80.0050.00816.53
7.1.70.0070.00716.73
7.1.60.0080.00917.35
7.1.50.0050.01016.61
7.1.40.0020.00816.45
7.1.30.0040.00616.56
7.1.20.0020.01016.50
7.1.10.0040.00916.55
7.1.00.0050.02118.50
7.0.330.0010.01215.99
7.0.320.0070.00716.24
7.0.310.0020.01216.12
7.0.300.0030.01016.17
7.0.290.0080.00716.11
7.0.280.0060.00716.25
7.0.270.0070.00516.09
7.0.260.0080.00616.01
7.0.250.0060.00616.22
7.0.240.0080.00616.19
7.0.230.0070.00416.16
7.0.220.0030.01116.17
7.0.210.0050.00916.12
7.0.200.0070.00416.43
7.0.190.0050.00716.22
7.0.180.0090.00516.17
7.0.170.0050.00816.13
7.0.160.0050.00816.17
7.0.150.0020.01316.18
7.0.140.0080.02618.17
7.0.130.0050.00716.29
7.0.120.0020.01216.26
7.0.110.0020.00716.20
7.0.100.0050.02217.36
7.0.90.0050.03217.44
7.0.80.0100.02417.43
7.0.70.0080.02917.53
7.0.60.0080.02117.45
7.0.50.0050.03617.48
7.0.40.0060.02116.04
7.0.30.0050.03616.14
7.0.20.0060.03016.15
7.0.10.0070.02516.21
7.0.00.0060.02616.12
5.6.400.0060.00915.13
5.6.390.0060.00815.12
5.6.380.0030.00915.01
5.6.370.0050.00514.82
5.6.360.0060.00615.14
5.6.350.0000.01615.22
5.6.340.0040.00915.23
5.6.330.0110.00514.99
5.6.320.0070.00414.98
5.6.310.0030.00915.13
5.6.300.0030.01115.12
5.6.290.0060.00615.22
5.6.280.0050.02717.24
5.6.270.0020.00915.04
5.6.260.0030.01015.26
5.6.250.0040.02717.12
5.6.240.0070.03216.94
5.6.230.0040.02917.03
5.6.220.0030.02516.97
5.6.210.0100.02416.85
5.6.200.0080.03017.12
5.6.190.0080.03017.12
5.6.180.0080.02117.14
5.6.170.0090.03017.10
5.6.160.0070.02817.14
5.6.150.0050.02417.06
5.6.140.0100.03117.05
5.6.130.0040.03417.10
5.6.120.0030.03517.15
5.6.110.0040.03417.01
5.6.100.0080.03116.96
5.6.90.0090.03117.04
5.6.80.0070.02616.76
5.6.70.0090.02816.86
5.6.60.0080.03416.92
5.6.50.0050.02516.85
5.6.40.0050.03516.79
5.6.30.0100.03016.83
5.6.20.0070.02116.81
5.6.10.0080.02716.76
5.6.00.0060.03416.77
5.5.380.0050.02916.92
5.5.370.0030.03716.75
5.5.360.0080.01617.03
5.5.350.0070.03516.86
5.5.340.0040.03416.99
5.5.330.0020.02416.98
5.5.320.0070.01917.04
5.5.310.0080.01916.85
5.5.300.0070.02817.01
5.5.290.0090.02816.95
5.5.280.0040.03317.08
5.5.270.0040.03217.12
5.5.260.0090.02116.96
5.5.250.0060.02816.83
5.5.240.0050.03116.71
5.5.230.0090.02916.77
5.5.220.0080.02916.82
5.5.210.0050.02116.69
5.5.200.0060.02916.62
5.5.190.0060.03316.79
5.5.180.0040.03316.66
5.5.170.0050.00615.03
5.5.160.0100.02916.77
5.5.150.0100.03016.76
5.5.140.0060.03116.75
5.5.130.0080.02516.70
5.5.120.0040.03016.77
5.5.110.0030.03716.78
5.5.100.0060.03116.53
5.5.90.0070.02316.68
5.5.80.0060.03016.58
5.5.70.0070.03216.72
5.5.60.0050.03216.61
5.5.50.0090.02316.69
5.5.40.0080.02516.66
5.5.30.0090.03116.68
5.5.20.0110.02716.79
5.5.10.0100.02616.66
5.5.00.0090.02316.52
5.4.450.0040.02914.42
5.4.440.0030.03214.40
5.4.430.0060.03014.44
5.4.420.0050.02514.29
5.4.410.0050.02814.39
5.4.400.0040.02314.10
5.4.390.0050.03014.16
5.4.380.0030.02914.23
5.4.370.0080.02614.22
5.4.360.0060.03414.16
5.4.350.0070.02914.20
5.4.340.0070.02714.32
5.4.330.0050.00511.79
5.4.320.0090.02514.36
5.4.310.0060.03014.32
5.4.300.0040.02614.26
5.4.290.0070.03014.28
5.4.280.0010.03314.23
5.4.270.0060.01914.21
5.4.260.0100.02414.17
5.4.250.0060.02814.15
5.4.240.0090.02714.23
5.4.230.0040.03214.09
5.4.220.0120.02314.32
5.4.210.0030.03214.11
5.4.200.0040.02014.31
5.4.190.0050.02314.13
5.4.180.0080.02714.00
5.4.170.0080.02514.15
5.4.160.0060.02714.11
5.4.150.0030.02114.29
5.4.140.0010.02313.38
5.4.130.0070.02313.52
5.4.120.0030.02813.22
5.4.110.0030.02313.29
5.4.100.0010.01813.41
5.4.90.0060.01413.23
5.4.80.0000.03213.42
5.4.70.0040.01913.46
5.4.60.0040.01713.39
5.4.50.0080.01213.39
5.4.40.0050.01413.36
5.4.30.0050.01513.27
5.4.20.0070.02013.44
5.4.10.0040.01813.40
5.4.00.0080.02313.15
5.3.290.0030.03512.80
5.3.280.0070.02812.74
5.3.270.0040.02212.94
5.3.260.0020.03412.81
5.3.250.0040.02912.91
5.3.240.0060.02312.75
5.3.230.0100.01512.69
5.3.220.0020.02912.66
5.3.210.0050.02112.52
5.3.200.0050.01512.57
5.3.190.0040.01612.68
5.3.180.0000.01912.80
5.3.170.0070.01312.76
5.3.160.0030.01912.77
5.3.150.0040.01412.73
5.3.140.0010.01812.73
5.3.130.0020.01812.71
5.3.120.0090.01212.57
5.3.110.0080.02212.69
5.3.100.0020.01612.50
5.3.90.0020.01712.57
5.3.80.0070.01612.37
5.3.70.0060.02512.41
5.3.60.0060.02912.50
5.3.50.0080.02412.35
5.3.40.0020.02012.40
5.3.30.0010.01912.43
5.3.20.0050.01512.27
5.3.10.0020.01612.27
5.3.00.0030.01412.23
5.2.170.0030.02711.24
5.2.160.0070.02711.18
5.2.150.0000.03011.26
5.2.140.0000.03011.26
5.2.130.0030.03311.20
5.2.120.0070.02311.25
5.2.110.0000.03011.11
5.2.100.0030.03011.16
5.2.90.0000.02711.00
5.2.80.0000.04011.24
5.2.70.0000.03011.16
5.2.60.0030.02710.98
5.2.50.0030.03010.93
5.2.40.0030.03011.09
5.2.30.0100.02010.86
5.2.20.0030.03310.96
5.2.10.0000.03010.88
5.2.00.0070.02710.79
5.1.60.0000.0309.85
5.1.50.0030.02310.04
5.1.40.0030.02010.04
5.1.30.0000.02710.45
5.1.20.0000.02710.39
5.1.10.0000.02710.11
5.1.00.0000.02310.09
5.0.50.0000.0208.40
5.0.40.0000.0208.31
5.0.30.0000.0308.23
5.0.20.0000.0238.28
5.0.10.0000.0238.23
5.0.00.0000.0508.23
4.4.90.0030.0138.23
4.4.80.0000.0178.23
4.4.70.0070.0178.23
4.4.60.0000.0178.23
4.4.50.0000.0178.23
4.4.40.0070.0208.23
4.4.30.0070.0108.23
4.4.20.0030.0138.23
4.4.10.0000.0178.23
4.4.00.0000.0238.23
4.3.110.0030.0138.23
4.3.100.0000.0138.23
4.3.90.0030.0108.23
4.3.80.0000.0238.23
4.3.70.0070.0078.23
4.3.60.0000.0138.23
4.3.50.0000.0178.23
4.3.40.0100.0138.23
4.3.30.0000.0178.23
4.3.20.0030.0138.23
4.3.10.0000.0178.23
4.3.00.0000.0178.23

preferences:
41.32 ms | 401 KiB | 5 Q