3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Data implements ArrayAccess { public $namespaceScopes = []; // make private public function offsetExists(string $namespace) : bool { return isset($this->namespaceScope[$namespace]); } public function offsetGet(string $namespace) : NamespaceScope { return $this->namespaceScopes[$namespace]; } public function offsetSet(string $namespace, NamespaceScope $namespaceScope) { $this->namespaceScopes[$namespace] = $namespaceScope; } public function offsetUnset(string $namespace) { unset($this->namespaceScopes[$namespace]); } }

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.70.0110.00416.50
8.3.60.0070.00716.75
8.3.50.0140.01021.22
8.3.40.0070.00718.84
8.3.30.0070.00718.73
8.3.20.0040.00420.07
8.3.10.0000.00721.90
8.3.00.0070.00021.73
8.2.180.0090.00616.36
8.2.170.0140.00722.96
8.2.160.0070.00720.35
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0030.00520.93
8.2.120.0040.00426.35
8.2.110.0090.00020.52
8.2.100.0110.00017.78
8.2.90.0030.00617.63
8.2.80.0000.00917.97
8.2.70.0000.00817.80
8.2.60.0000.00817.80
8.2.50.0000.00818.10
8.2.40.0040.00420.61
8.2.30.0070.00019.45
8.2.20.0000.00817.64
8.2.10.0050.00217.96
8.2.00.0040.00418.10
8.1.280.0030.01425.92
8.1.270.0110.00722.14
8.1.260.0000.00828.09
8.1.250.0030.00628.09
8.1.240.0040.00423.97
8.1.230.0000.01119.22
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0080.00316.98
8.1.190.0080.00017.10
8.1.180.0000.00818.10
8.1.170.0040.00418.43
8.1.160.0000.00720.71
8.1.150.0040.00418.97
8.1.140.0040.00419.59
8.1.130.0070.00017.65
8.1.120.0000.00717.28
8.1.110.0000.00817.45
8.1.100.0000.00817.40
8.1.90.0060.00317.41
8.1.80.0040.00417.36
8.1.70.0030.00317.46
8.1.60.0000.01117.57
8.1.50.0040.00417.34
8.1.40.0030.00617.37
8.1.30.0030.00617.66
8.1.20.0040.00417.52
8.1.10.0000.00717.34
8.1.00.0040.00417.31
8.0.300.0040.00421.59
8.0.290.0040.00416.75
8.0.280.0070.00018.29
8.0.270.0000.00717.31
8.0.260.0050.00317.24
8.0.250.0070.00016.95
8.0.240.0080.00016.98
8.0.230.0070.00016.93
8.0.220.0030.00716.88
8.0.210.0030.00516.83
8.0.200.0030.00316.83
8.0.190.0040.00816.99
8.0.180.0000.00816.79
8.0.170.0000.00716.92
8.0.160.0050.00316.88
8.0.150.0000.00716.75
8.0.140.0000.00716.78
8.0.130.0000.00513.34
8.0.120.0030.00516.75
8.0.110.0030.00516.94
8.0.100.0030.00516.95
8.0.90.0050.00216.78
8.0.80.0030.01316.91
8.0.70.0000.00916.86
8.0.60.0100.00016.74
8.0.50.0040.00416.77
8.0.30.0040.01616.84
8.0.20.0130.00517.40
8.0.10.0000.00817.04
8.0.00.0090.01016.68
7.4.330.0000.00616.76
7.4.320.0000.00616.59
7.4.300.0000.00916.34
7.4.290.0030.00516.59
7.4.280.0050.00316.46
7.4.270.0030.00316.50
7.4.260.0000.00716.42
7.4.250.0040.00416.50
7.4.240.0030.00316.55
7.4.230.0000.00716.60
7.4.220.0060.01216.52
7.4.210.0120.00716.56
7.4.200.0000.00716.55
7.4.160.0050.01116.53
7.4.150.0110.00617.40
7.4.140.0100.01317.86
7.4.130.0100.00716.30
7.4.120.0090.01216.52
7.4.110.0090.00916.33
7.4.100.0140.00316.53
7.4.90.0110.00716.50
7.4.80.0080.00819.39
7.4.70.0130.00316.52
7.4.60.0100.00716.54
7.4.50.0000.01516.39
7.4.40.0100.00616.21
7.4.30.0150.00616.31
7.4.00.0000.01315.04
7.3.330.0000.00513.20
7.3.320.0000.00513.26
7.3.310.0030.00316.28
7.3.300.0030.00316.11
7.3.290.0040.00416.11
7.3.280.0100.00816.17
7.3.270.0150.00917.40
7.3.260.0130.00716.31
7.3.250.0070.01116.32
7.3.240.0050.01316.38
7.3.230.0080.00816.39
7.3.210.0100.00616.32
7.3.200.0120.00419.39
7.3.190.0090.00616.49
7.3.180.0090.00916.37
7.3.170.0110.00816.37
7.3.160.0060.01816.21
7.2.330.0120.01116.27
7.2.320.0150.00416.45
7.2.310.0100.01016.52
7.2.300.0110.00616.54
7.2.290.0210.02416.33
7.2.60.0050.00316.73
7.2.00.0030.01219.01
7.1.200.0030.00915.51
7.1.100.0090.00318.06
7.1.70.0000.00816.79
7.1.60.0070.00719.40
7.1.50.0070.01316.88
7.1.00.0030.07722.33
7.0.200.0390.00314.62
7.0.100.0200.07019.89
7.0.90.0100.08320.03
7.0.80.0170.06719.95
7.0.70.0030.05319.86
7.0.60.0230.04719.92
7.0.50.0070.04020.34
7.0.40.0100.03720.14
7.0.30.0100.06720.19
7.0.20.0070.08020.09
7.0.10.0030.06720.13
7.0.00.0070.06719.91
5.6.280.0000.04321.08
5.6.250.0070.07720.57
5.6.240.0000.05720.55
5.6.230.0070.08320.70
5.6.220.0070.05320.54
5.6.210.0130.07020.79
5.6.200.0100.08721.00
5.6.190.0100.08320.96
5.6.180.0030.08020.94
5.6.170.0070.03721.04
5.6.160.0100.04721.05
5.6.150.0200.06721.02
5.6.140.0030.06321.02
5.6.130.0130.07320.94
5.6.120.0170.05721.05
5.6.110.0100.06321.03
5.6.100.0030.08321.05
5.6.90.0070.05721.00
5.6.80.0230.07020.36
5.6.70.0130.07320.43
5.6.60.0100.08020.49
5.6.50.0030.05720.46
5.6.40.0030.05020.39
5.6.30.0030.05020.48
5.6.20.0130.07320.47
5.6.10.0130.07720.39
5.6.00.0030.06020.28
5.5.380.0130.07320.35
5.5.370.0030.08720.45
5.5.360.0000.05020.39
5.5.350.0030.08720.36
5.5.340.0070.06020.89
5.5.330.0070.07720.94
5.5.320.0070.03720.92
5.5.310.0100.06720.92
5.5.300.0070.05020.92
5.5.290.0070.04020.80
5.5.280.0100.07720.74
5.5.270.0030.05320.83
5.5.260.0100.08020.88
5.5.250.0030.08320.73
5.5.240.0070.06020.23
5.5.230.0130.07020.11
5.5.220.0100.07320.18
5.5.210.0030.06720.02
5.5.200.0130.04720.09
5.5.190.0070.07720.27
5.5.180.0100.04720.23
5.5.160.0170.07020.16
5.5.150.0130.06020.11
5.5.140.0070.06720.11
5.5.130.0030.06320.21
5.5.120.0030.07720.11
5.5.110.0130.07319.98
5.5.100.0070.07320.02
5.5.90.0070.07320.07
5.5.80.0030.07320.05
5.5.70.0030.05020.12
5.5.60.0030.08020.00
5.5.50.0030.08020.09
5.5.40.0100.07320.06
5.5.30.0100.07320.08
5.5.20.0070.07720.05
5.5.10.0070.06319.98
5.5.00.0070.07020.00

preferences:
58.21 ms | 401 KiB | 5 Q