3v4l.org

run code in 300+ PHP versions simultaneously
<?php class aa implements ArrayAccess { protected $_data = array(); public function offsetGet($key) { return $this->_data[$key]; } public function offsetSet($key, $value) { $this->_data[$key] = $value; } public function offsetExists($key) { return isset($this->_data[$key]); } public function offsetUnset($key) { unset($this->_data[$key]); } } $a = new aa; $a['name'] = 'Dżozef'; $a['id'] = 5; $b = array(); $b[0] = $a; $b[1] = array( 'name' => 'Kinszasa', 'id' => 17, ); var_dump(array_column($b, null, 'id'));

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.0150.00618.27
8.3.50.0130.00221.09
8.3.40.0150.00018.55
8.3.30.0070.00720.31
8.3.20.0070.00020.33
8.3.10.0050.00321.92
8.3.00.0080.00022.43
8.2.180.0120.00416.63
8.2.170.0090.00622.96
8.2.160.0080.00820.41
8.2.150.0080.00024.18
8.2.140.0170.00324.66
8.2.130.0100.00726.16
8.2.120.0000.00819.64
8.2.110.0060.00322.05
8.2.100.0110.00019.21
8.2.90.0030.00619.25
8.2.80.0080.00019.40
8.2.70.0050.00317.75
8.2.60.0000.00917.93
8.2.50.0040.00418.07
8.2.40.0020.00518.16
8.2.30.0090.00018.16
8.2.20.0000.00717.72
8.2.10.0000.00817.66
8.2.00.0030.00817.61
8.1.280.0100.00325.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.73
8.1.230.0070.00419.10
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0000.00817.54
8.1.180.0000.00720.13
8.1.170.0060.00318.53
8.1.160.0070.00022.19
8.1.150.0040.00418.53
8.1.140.0000.00717.50
8.1.130.0030.00317.83
8.1.120.0100.00017.50
8.1.110.0000.00817.35
8.1.100.0000.00817.37
8.1.90.0040.00417.44
8.1.80.0050.00217.46
8.1.70.0000.00717.42
8.1.60.0050.00717.54
8.1.50.0050.00317.51
8.1.40.0080.00017.42
8.1.30.0040.00417.61
8.1.20.0000.00817.68
8.1.10.0050.00317.43
8.1.00.0100.00017.44
8.0.300.0060.00318.77
8.0.290.0040.00417.18
8.0.280.0080.00018.32
8.0.270.0030.00317.30
8.0.260.0030.00316.82
8.0.250.0030.00316.94
8.0.240.0040.00417.02
8.0.230.0000.00716.86
8.0.220.0040.00416.78
8.0.210.0030.00316.83
8.0.200.0030.00316.91
8.0.190.0040.00416.88
8.0.180.0050.00516.81
8.0.170.0000.00816.78
8.0.160.0050.00316.87
8.0.150.0070.00016.90
8.0.140.0020.00516.76
8.0.130.0070.00013.36
8.0.120.0040.00416.76
8.0.110.0080.00016.79
8.0.100.0060.00316.75
8.0.90.0000.00716.93
8.0.80.0120.00416.83
8.0.70.0070.00016.83
8.0.60.0080.00016.73
8.0.50.0000.00816.67
8.0.30.0100.00817.04
8.0.20.0120.00817.40
8.0.10.0050.00317.00
8.0.00.0040.01316.71
7.4.330.0030.00315.00
7.4.320.0040.00416.48
7.4.300.0000.00616.51
7.4.290.0070.00016.57
7.4.280.0030.00316.50
7.4.270.0030.00316.53
7.4.260.0110.00016.37
7.4.250.0040.00416.36
7.4.240.0060.00116.52
7.4.230.0040.00416.50
7.4.220.0120.00616.54
7.4.210.0050.01216.56
7.4.200.0000.00716.30
7.4.190.0000.00716.75
7.4.160.0080.00816.62
7.4.150.0160.00317.40
7.4.140.0130.00817.86
7.4.130.0150.02116.56
7.4.120.0120.00416.43
7.4.110.0080.01116.43
7.4.100.0000.01716.44
7.4.90.0110.00616.55
7.4.80.0060.01019.39
7.4.70.0130.00316.38
7.4.60.0030.01316.57
7.4.50.0060.00316.54
7.4.40.0100.00722.77
7.4.30.0140.00316.46
7.4.00.0130.00615.00
7.3.330.0060.00013.29
7.3.320.0060.00013.33
7.3.310.0040.00416.29
7.3.300.0060.00016.34
7.3.290.0140.00016.27
7.3.280.0090.00816.23
7.3.270.0130.00317.40
7.3.260.0150.00416.41
7.3.250.0080.01116.56
7.3.240.0150.00716.44
7.3.230.0080.00816.59
7.3.210.0030.01316.29
7.3.200.0180.00319.39
7.3.190.0130.00616.30
7.3.180.0100.00616.60
7.3.170.0100.01416.65
7.3.160.0110.00616.30
7.3.120.0040.01414.74
7.3.110.0060.01314.89
7.3.100.0080.00614.79
7.3.90.0100.01015.08
7.3.80.0040.01214.63
7.3.70.0060.00914.92
7.3.60.0030.01014.84
7.3.50.0070.00714.87
7.3.40.0070.00714.66
7.3.30.0060.00914.85
7.3.20.0100.00716.82
7.3.10.0080.00716.55
7.3.00.0080.00416.41
7.2.330.0120.00616.29
7.2.320.0110.01116.43
7.2.310.0090.01316.73
7.2.300.0070.01016.64
7.2.290.0100.00616.50
7.2.250.0070.01115.00
7.2.240.0000.02014.95
7.2.230.0060.00815.07
7.2.220.0000.01514.96
7.2.210.0060.00915.34
7.2.200.0000.01214.96
7.2.190.0000.00914.90
7.2.180.0030.01015.07
7.2.170.0100.00615.18
7.2.160.0030.00614.95
7.2.150.0110.00716.76
7.2.140.0060.00916.77
7.2.130.0060.00716.68
7.2.120.0060.00816.90
7.2.110.0100.00516.75
7.2.100.0090.00616.63
7.2.90.0090.00616.76
7.2.80.0050.01016.69
7.2.70.0100.00516.77
7.2.60.0100.00516.66
7.2.50.0020.01116.73
7.2.40.0070.00516.88
7.2.30.0060.00816.88
7.2.20.0030.00816.76
7.2.10.0060.01016.71
7.2.00.0030.00817.73
7.1.330.0070.00715.98
7.1.320.0090.00615.89
7.1.310.0070.00715.89
7.1.300.0030.01415.75
7.1.290.0070.00716.02
7.1.280.0070.01015.89
7.1.270.0110.00415.75
7.1.260.0100.00016.02
7.1.250.0080.00615.63
7.1.200.0080.00415.92
7.1.70.0070.00716.93
7.1.60.0060.01819.21
7.1.50.0000.01516.90
7.1.00.0100.05022.35
7.0.200.0070.01016.85
7.0.140.0000.07322.15
7.0.60.0070.05319.85
7.0.50.0070.08317.89
7.0.40.0100.08320.24
7.0.30.0300.04320.11
7.0.20.0100.04720.10
7.0.10.0300.05020.24
7.0.00.0030.06320.29
5.6.280.0030.07021.04
5.6.210.0030.04320.66
5.6.200.0070.04018.24
5.6.190.0070.09020.48
5.6.180.0270.06720.48
5.6.170.0270.08020.71
5.6.160.0030.08320.39
5.6.150.0170.06718.14
5.6.140.0030.06018.18
5.6.130.0030.08718.24
5.6.120.0000.04321.12
5.6.110.0030.08320.98
5.6.100.0070.04721.03
5.6.90.0070.08720.98
5.6.80.0100.04320.44
5.6.70.0230.07320.44
5.5.350.0030.03020.48
5.5.340.0030.04017.97
5.5.330.0100.05320.30
5.5.320.0170.04020.34
5.5.310.0370.06320.37
5.5.300.0230.03018.01
5.5.290.0030.08717.95
5.5.280.0030.06720.89
5.5.270.0000.04320.73
5.5.260.0070.07320.96
5.5.250.0070.04320.71
5.5.240.0100.06020.25
5.4.450.0030.05319.48
5.4.440.0200.03719.34
5.4.430.0170.04019.52
5.4.420.0230.06319.53
5.4.410.0200.03719.40
5.4.400.0300.07018.96
5.4.390.0200.08019.10
5.4.380.0300.05318.84
5.4.370.0270.07019.20
5.4.360.0270.04018.84
5.4.350.0300.06319.20
5.4.340.0270.04719.29
5.4.320.0170.05319.18
5.4.310.0200.05319.20
5.4.300.0230.04718.84
5.4.290.0230.06319.20
5.4.280.0230.04318.97
5.4.270.0230.03718.96
5.4.260.0230.07319.06
5.4.250.0170.04718.98
5.4.240.0200.06018.83
5.4.230.0100.04718.97
5.4.220.0130.04319.17
5.4.210.0130.06019.14
5.4.200.0230.03319.14
5.4.190.0330.06719.14
5.4.180.0170.06019.05
5.4.170.0170.07718.96
5.4.160.0270.07019.16
5.4.150.0170.05318.95
5.4.140.0230.07016.35
5.4.130.0130.05716.33
5.4.120.0300.06016.32
5.4.110.0170.04316.25
5.4.100.0170.05016.28
5.4.90.0230.04316.40
5.4.80.0200.05316.45
5.4.70.0230.04316.38
5.4.60.0230.03316.34
5.4.50.0230.06716.25
5.4.40.0270.04316.37
5.4.30.0270.06716.48
5.4.20.0170.07716.42
5.4.10.0270.06716.42
5.4.00.0230.03715.93
5.3.290.0200.08014.66
5.3.280.0230.05714.62
5.3.270.0270.06714.66
5.3.260.0270.04314.73
5.3.250.0230.04714.63
5.3.240.0270.05714.54
5.3.230.0200.05014.53
5.3.220.0300.07014.47
5.3.210.0330.06714.49
5.3.200.0270.06714.59
5.3.190.0130.04714.65
5.3.180.0300.05014.57
5.3.170.0100.05014.65
5.3.160.0270.06714.52
5.3.150.0130.06714.79
5.3.140.0300.06314.53
5.3.130.0270.07014.45
5.3.120.0270.07014.57
5.3.110.0200.07714.70
5.3.100.0270.04714.11
5.3.90.0230.06314.10
5.3.80.0200.07714.07
5.3.70.0200.03713.93
5.3.60.0200.03713.92
5.3.50.0170.03713.87
5.3.40.0170.03714.00
5.3.30.0200.06313.86
5.3.20.0230.03313.71
5.3.10.0270.04013.59
5.3.00.0270.04713.66
5.2.170.0230.03711.05
5.2.160.0170.03311.07
5.2.150.0130.03011.11
5.2.140.0130.03011.16
5.2.130.0200.02711.16
5.2.120.0130.03011.02
5.2.110.0170.06011.19
5.2.100.0230.03711.02
5.2.90.0130.04011.04
5.2.80.0170.03711.06
5.2.70.0130.03311.00
5.2.60.0130.03011.19
5.2.50.0130.03311.25
5.2.40.0100.03011.11
5.2.30.0130.02711.14
5.2.20.0130.03710.86
5.2.10.0130.06011.09
5.2.00.0170.02310.95
5.1.60.0230.0209.98
5.1.50.0130.02310.02
5.1.40.0100.0309.99
5.1.30.0130.03310.35
5.1.20.0130.02310.28
5.1.10.0070.03010.05
5.1.00.0130.02010.16
5.0.50.0030.0238.78
5.0.40.0100.0138.30
5.0.30.0100.0338.29
5.0.20.0130.0138.26
5.0.10.0070.0208.11
5.0.00.0030.0338.09
4.4.90.0100.0107.26
4.4.80.0030.0177.26
4.4.70.0070.0177.26
4.4.60.0030.0177.26
4.4.50.0070.0137.26
4.4.40.0030.0307.26
4.4.30.0030.0177.26
4.4.20.0030.0177.26
4.4.10.0070.0137.26
4.4.00.0100.0237.26
4.3.110.0070.0237.26
4.3.100.0030.0207.26
4.3.90.0070.0137.26
4.3.80.0030.0237.26
4.3.70.0030.0177.26
4.3.60.0070.0177.26
4.3.50.0070.0137.26
4.3.40.0030.0237.26
4.3.30.0000.0177.26
4.3.20.0030.0137.26
4.3.10.0000.0177.26
4.3.00.0000.0177.26

preferences:
43.25 ms | 401 KiB | 5 Q