3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ExtendedArrayAccess implements ArrayAccess { private $data = array(); function __construct(array $array = array()) { $this->data = $array; } function offsetExists($offset) { return isset($this->data[$offset]); } function offsetGet($offset) { return $this->data[$offset]; } function offsetSet($offset, $value) { $this->data[$offset] = $value; } function offsetUnset($offset) { unset($this->data[$offset]); } } $array = new ExtendedArrayAccess(); $array[0] = null; assert(isset($array[0]) === false); assert(empty($array[0]) === true);

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.00418.24
8.3.50.0110.00621.27
8.3.40.0070.00718.76
8.3.30.0070.00718.79
8.3.20.0040.00418.73
8.3.10.0050.00321.24
8.3.00.0080.00021.56
8.2.180.0030.01318.29
8.2.170.0090.00622.96
8.2.160.0060.00920.22
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00421.03
8.2.110.0060.00321.18
8.2.100.0060.00617.91
8.2.90.0040.00419.36
8.2.80.0060.00318.05
8.2.70.0040.00417.50
8.2.60.0040.00418.04
8.2.50.0080.00018.07
8.2.40.0050.00318.22
8.2.30.0080.00021.21
8.2.20.0040.00417.83
8.2.10.0000.00817.82
8.2.00.0070.00317.82
8.1.280.0120.00625.92
8.1.270.0070.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.64
8.1.230.0110.00020.83
8.1.220.0080.00017.74
8.1.210.0060.00318.84
8.1.200.0040.00417.48
8.1.190.0000.00717.53
8.1.180.0040.00418.10
8.1.170.0000.00918.66
8.1.160.0070.00018.82
8.1.150.0080.00018.56
8.1.140.0000.00717.38
8.1.130.0070.00017.79
8.1.120.0000.00817.48
8.1.110.0040.00417.44
8.1.100.0040.00417.53
8.1.90.0040.00417.36
8.1.80.0070.00017.38
8.1.70.0030.00317.39
8.1.60.0030.00617.63
8.1.50.0000.00817.55
8.1.40.0040.00417.55
8.1.30.0080.00017.64
8.1.20.0050.00317.52
8.1.10.0000.00817.55
8.1.00.0030.00717.50
8.0.300.0000.00719.92
8.0.290.0080.00017.18
8.0.280.0040.00418.38
8.0.270.0000.00817.15
8.0.260.0040.00416.77
8.0.250.0040.00416.97
8.0.240.0060.00316.86
8.0.230.0000.00716.99
8.0.220.0000.00716.91
8.0.210.0020.00516.81
8.0.200.0000.00716.97
8.0.190.0040.00416.85
8.0.180.0030.00516.90
8.0.170.0040.00416.86
8.0.160.0000.00816.89
8.0.150.0000.00716.92
8.0.140.0040.00416.94
8.0.130.0060.00013.33
8.0.120.0030.00516.98
8.0.110.0000.00717.04
8.0.100.0000.00716.99
8.0.90.0030.00616.95
8.0.80.0070.01016.85
8.0.70.0040.00416.82
8.0.60.0080.00016.87
8.0.50.0000.00816.80
8.0.30.0140.00517.26
8.0.20.0110.00817.40
8.0.10.0000.00717.12
8.0.00.0100.00816.72
7.4.330.0000.00616.75
7.4.320.0000.00716.52
7.4.300.0000.00616.59
7.4.290.0070.00016.64
7.4.280.0040.00416.58
7.4.270.0040.00416.50
7.4.260.0050.00013.28
7.4.250.0040.00416.60
7.4.240.0030.00316.64
7.4.230.0070.00016.68
7.4.220.0100.01016.58
7.4.210.0090.00716.58
7.4.200.0000.00816.64
7.4.190.0020.00516.70
7.4.160.0130.00416.50
7.4.150.0160.00417.40
7.4.140.0100.01017.86
7.4.130.0110.00616.56
7.4.120.0030.01516.66
7.4.110.0140.00316.59
7.4.100.0030.01316.53
7.4.90.0030.01416.42
7.4.80.0170.00719.39
7.4.70.0090.00916.54
7.4.60.0090.00816.51
7.4.50.0030.00616.50
7.4.40.0080.00522.77
7.4.30.0110.01116.44
7.4.00.0110.00415.12
7.3.330.0060.00013.44
7.3.320.0030.00313.41
7.3.310.0040.00416.33
7.3.300.0000.00716.36
7.3.290.0120.00616.44
7.3.280.0130.00716.43
7.3.270.0220.01917.40
7.3.260.0110.00718.24
7.3.250.0090.00916.54
7.3.240.0070.01116.63
7.3.230.0030.02016.59
7.3.210.0070.01116.46
7.3.200.0070.01519.39
7.3.190.0060.01016.52
7.3.180.0080.00816.56
7.3.170.0090.01316.41
7.3.160.0120.00316.45
7.3.120.0060.00614.84
7.2.330.0030.01816.66
7.2.320.0070.01616.52
7.2.310.0090.01316.78
7.2.300.0170.00016.70
7.2.290.0140.00316.66
7.2.60.0000.00817.09
7.2.00.0030.01219.51
7.1.200.0070.00716.00
7.1.100.0070.00718.34
7.1.70.0070.00317.30
7.1.60.0180.00719.17
7.1.50.0100.01416.79
7.1.00.0000.03722.36
7.0.200.0040.00416.79
7.0.140.0030.07022.11
7.0.100.0070.04020.18
7.0.90.0070.08019.87
7.0.80.0030.06019.90
7.0.70.0070.03719.91
7.0.60.0100.07719.89
7.0.50.0100.06320.30
7.0.40.0100.07720.09
7.0.30.0030.04020.09
7.0.20.0000.04320.18
7.0.10.0030.04320.06
7.0.00.0070.07020.04
5.6.280.0030.07321.05
5.6.250.0070.04720.64
5.6.240.0070.07020.55
5.6.230.0070.07720.70
5.6.220.0030.08720.62
5.6.210.0070.09720.67
5.6.200.0030.04021.15
5.6.190.0070.07721.04
5.6.180.0100.09321.09
5.6.170.0030.06720.95
5.6.160.0070.07021.01
5.6.150.0100.07321.12
5.6.140.0100.08021.09
5.6.130.0030.06020.97
5.6.120.0070.06020.94
5.6.110.0070.08320.97
5.6.100.0100.05321.02
5.6.90.0170.07021.07
5.6.80.0100.08020.34
5.6.70.0000.04020.34
5.6.60.0070.03320.46
5.6.50.0170.06720.34
5.6.40.0130.06020.31
5.6.30.0030.07020.25
5.6.20.0100.06020.31
5.6.10.0070.05720.41
5.6.00.0000.05020.51
5.5.380.0070.06720.38
5.5.370.0000.07320.48
5.5.360.0170.07020.36
5.5.350.0070.07020.41
5.5.340.0000.04320.79
5.5.330.0100.06320.92
5.5.320.0000.08720.77
5.5.310.0100.03720.88
5.5.300.0100.07320.79
5.5.290.0100.06320.92
5.5.280.0070.08020.84
5.5.270.0070.08020.92
5.5.260.0070.03720.91
5.5.250.0130.03720.64
5.5.240.0130.03020.30
5.5.230.0030.04020.27
5.5.220.0100.05320.30
5.5.210.0130.03020.15
5.5.200.0000.06020.21
5.5.190.0170.07320.23
5.5.180.0070.05320.23
5.5.160.0170.06720.13
5.5.150.0270.05720.18
5.5.140.0030.07720.18
5.5.130.0130.07020.27
5.5.120.0000.05320.18
5.5.110.0100.04320.18
5.5.100.0130.04020.07
5.5.90.0070.07019.98
5.5.80.0030.07320.14
5.5.70.0070.07720.11
5.5.60.0100.03020.07
5.5.50.0030.06020.01
5.5.40.0170.07320.09
5.5.30.0130.05720.14
5.5.20.0130.05720.13
5.5.10.0000.07719.99
5.5.00.0070.06320.10
5.4.450.0100.07719.56
5.4.440.0100.03319.51
5.4.430.0130.04719.50
5.4.420.0070.05019.35
5.4.410.0100.07319.26
5.4.400.0070.06019.05
5.4.390.0070.03319.05
5.4.380.0070.05019.05
5.4.370.0070.07319.14
5.4.360.0030.03719.21
5.4.350.0030.03718.86
5.4.340.0070.07318.88
5.4.320.0000.06018.90
5.4.310.0100.07019.09
5.4.300.0070.07319.23
5.4.290.0030.04719.04
5.4.280.0000.05718.86
5.4.270.0130.06719.04
5.4.260.0100.06719.04
5.4.250.0130.07719.04
5.4.240.0070.04319.13
5.4.230.0170.08719.15
5.4.220.0130.06719.04
5.4.210.0130.06318.95
5.4.200.0070.05019.20
5.4.190.0070.03319.04
5.4.180.0000.04019.23
5.4.170.0000.03719.02
5.4.160.0030.03319.07
5.4.150.0070.06319.11
5.4.140.0070.04716.36
5.4.130.0030.03716.28
5.4.120.0100.06716.39
5.4.110.0030.03316.47
5.4.100.0100.06716.39
5.4.90.0030.05716.45
5.4.80.0030.08716.41
5.4.70.0030.08016.32
5.4.60.0030.05316.38
5.4.50.0070.05316.32
5.4.40.0000.04016.46
5.4.30.0000.05716.39
5.4.20.0000.04716.50
5.4.10.0030.06016.46
5.4.00.0000.07315.85
5.3.290.0100.07014.71
5.3.280.0130.05714.73
5.3.270.0130.06314.59
5.3.260.0070.04314.60
5.3.250.0070.09014.67
5.3.240.0070.06714.59
5.3.230.0070.03714.53
5.3.220.0070.09014.62
5.3.210.0070.06014.50
5.3.200.0100.02714.64
5.3.190.0100.07014.53
5.3.180.0030.04014.68
5.3.170.0030.03314.63
5.3.160.0100.05714.58
5.3.150.0070.03014.68
5.3.140.0070.03714.63
5.3.130.0070.05714.44
5.3.120.0000.05314.56
5.3.110.0070.08714.55
5.3.100.0100.07313.98
5.3.90.0030.07013.96
5.3.80.0100.07314.09
5.3.70.0030.05013.96
5.3.60.0000.03713.93
5.3.50.0130.06714.07
5.3.40.0030.07313.87
5.3.30.0030.07713.94
5.3.20.0030.05013.59
5.3.10.0000.03313.68
5.3.00.0000.07713.71
5.2.170.0070.06011.66
5.2.160.0070.05711.66
5.2.150.0070.03311.66
5.2.140.0000.04311.66
5.2.130.0030.03011.66
5.2.120.0070.04711.66
5.2.110.0070.03311.66
5.2.100.0100.05011.66
5.2.90.0000.04011.66
5.2.80.0070.05311.66
5.2.70.0070.06011.66
5.2.60.0030.04011.66
5.2.50.0070.02711.66
5.2.40.0030.02311.66
5.2.30.0030.05311.66
5.2.20.0000.03011.66
5.2.10.0000.05711.66
5.2.00.0000.03011.66
5.1.60.0030.02011.66
5.1.50.0000.04011.66
5.1.40.0000.02311.66
5.1.30.0000.03711.66
5.1.20.0070.05011.66
5.1.10.0000.03311.66
5.1.00.0030.02311.66
5.0.50.0000.03311.66
5.0.40.0030.03311.66
5.0.30.0000.03011.66
5.0.20.0030.03311.66
5.0.10.0070.01311.66
5.0.00.0000.06711.66
4.4.90.0070.02011.66
4.4.80.0030.01311.66
4.4.70.0100.02711.66
4.4.60.0000.03711.66
4.4.50.0070.01011.66
4.4.40.0070.03711.66
4.4.30.0000.02011.66
4.4.20.0030.01311.66
4.4.10.0030.02011.66
4.4.00.0070.05011.66
4.3.110.0030.02311.66
4.3.100.0000.01711.66
4.3.90.0000.03711.66
4.3.80.0000.05311.66
4.3.70.0030.02011.66
4.3.60.0000.02311.66
4.3.50.0030.01011.66
4.3.40.0000.05311.66
4.3.30.0000.03011.66
4.3.20.0030.01011.66
4.3.10.0030.03311.66
4.3.00.0000.02711.66

preferences:
46.36 ms | 401 KiB | 5 Q