3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ObjArray implements ArrayAccess { private $data; public function toArray() { return $this->data; } public function offsetSet($key, $value) { var_dump($key, $value); $this->data[$key] = $value; } public function offsetGet($key) { return $this->data[$key]; } public function offsetUnset($key) { unset($this->data[$key]); } public function offsetExists($key) { return isset($this->data[$key]); } } $arr = new ObjArray; $arr[0] = 1; $arr[] = 2; var_dump($arr->toArray());

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.0150.00916.88
8.3.60.0040.01118.55
8.3.50.0070.01221.33
8.3.40.0140.00718.83
8.3.30.0110.00320.34
8.3.20.0000.00720.29
8.3.10.0030.00521.92
8.3.00.0070.00022.52
8.2.180.0070.01416.88
8.2.170.0030.01222.96
8.2.160.0070.00722.00
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00020.73
8.2.110.0100.00019.45
8.2.100.0120.00017.84
8.2.90.0040.00419.30
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0030.00717.80
8.2.50.0000.00818.07
8.2.40.0050.00519.88
8.2.30.0040.00419.32
8.2.20.0070.00017.61
8.2.10.0000.00717.76
8.2.00.0040.00417.70
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0100.00022.05
8.1.230.0030.00918.86
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0000.00817.23
8.1.180.0040.00419.00
8.1.170.0040.00418.52
8.1.160.0000.01018.85
8.1.150.0040.00418.68
8.1.140.0030.00617.51
8.1.130.0040.00417.80
8.1.120.0030.00517.38
8.1.110.0030.00517.52
8.1.100.0000.00717.50
8.1.90.0080.00017.51
8.1.80.0000.00717.52
8.1.70.0000.00717.43
8.1.60.0090.00017.58
8.1.50.0050.00317.52
8.1.40.0080.00017.48
8.1.30.0000.00717.47
8.1.20.0030.00517.74
8.1.10.0000.00717.54
8.1.00.0040.00417.45
8.0.300.0000.00718.77
8.0.290.0030.00616.63
8.0.280.0000.00718.39
8.0.270.0030.00317.29
8.0.260.0030.00316.69
8.0.250.0050.00216.96
8.0.240.0030.00616.86
8.0.230.0070.00016.95
8.0.220.0030.00316.85
8.0.210.0000.00716.86
8.0.200.0040.00416.95
8.0.190.0040.00417.00
8.0.180.0000.00716.88
8.0.170.0000.00716.95
8.0.160.0040.00416.79
8.0.150.0070.00016.81
8.0.140.0070.00016.75
8.0.130.0030.00313.26
8.0.120.0080.00016.86
8.0.110.0000.00716.89
8.0.100.0000.00816.95
8.0.90.0000.00716.91
8.0.80.0120.00316.78
8.0.70.0000.00717.01
8.0.60.0040.00416.85
8.0.50.0020.00516.93
8.0.30.0110.00817.19
8.0.20.0110.01017.40
8.0.10.0040.00416.91
8.0.00.0120.00816.66
7.4.330.0040.00015.08
7.4.320.0070.00016.56
7.4.300.0030.00316.43
7.4.290.0030.00316.51
7.4.280.0070.00016.48
7.4.270.0030.00316.51
7.4.260.0070.00013.30
7.4.250.0070.00016.57
7.4.240.0060.00216.61
7.4.230.0050.00316.39
7.4.220.0090.00916.38
7.4.210.0070.00816.62
7.4.200.0000.00716.59
7.4.190.0000.00716.57
7.4.160.0030.02116.30
7.4.150.0040.01317.40
7.4.140.0050.01417.86
7.4.130.0120.00716.53
7.4.120.0100.00916.59
7.4.110.0110.00816.31
7.4.100.0070.01116.42
7.4.90.0030.01416.58
7.4.80.0150.00419.39
7.4.70.0070.01116.41
7.4.60.0030.01316.69
7.4.50.0040.00416.65
7.4.40.0120.00322.77
7.4.30.0130.00416.47
7.4.10.0150.00315.02
7.4.00.0050.01314.79
7.3.330.0050.00013.38
7.3.320.0020.00213.39
7.3.310.0040.00416.36
7.3.300.0000.00816.39
7.3.290.0110.00416.46
7.3.280.0040.01316.34
7.3.270.0130.00417.40
7.3.260.0190.00616.52
7.3.250.0110.00716.55
7.3.240.0120.00616.62
7.3.230.0100.01316.48
7.3.210.0140.00316.66
7.3.200.0160.00519.39
7.3.190.0120.01016.71
7.3.180.0100.00616.65
7.3.170.0080.00716.53
7.3.160.0170.00516.52
7.3.130.0100.01014.83
7.3.120.0090.00614.80
7.3.110.0100.00714.61
7.3.100.0090.00615.01
7.3.90.0080.00314.75
7.3.80.0060.01014.71
7.3.70.0000.01114.75
7.3.60.0070.01114.52
7.3.50.0030.01314.90
7.3.40.0070.00314.84
7.3.30.0030.01014.78
7.3.20.0120.00316.70
7.3.10.0000.01016.72
7.3.00.0100.00716.28
7.2.330.0140.00316.46
7.2.320.0170.00616.51
7.2.310.0110.01416.74
7.2.300.0110.01116.43
7.2.290.0030.01316.78
7.2.260.0140.00715.24
7.2.250.0100.01015.33
7.2.240.0110.00315.29
7.2.230.0120.00914.90
7.2.220.0000.01915.19
7.2.210.0070.00714.87
7.2.200.0070.01015.04
7.2.190.0080.00415.15
7.2.180.0090.00614.95
7.2.170.0090.00314.90
7.2.160.0000.01115.18
7.2.150.0060.01016.99
7.2.140.0060.00317.00
7.2.130.0060.00916.64
7.2.120.0090.00916.66
7.2.110.0000.01717.04
7.2.100.0060.00916.75
7.2.90.0090.00617.00
7.2.80.0060.00616.85
7.2.70.0030.00716.95
7.2.60.0120.00316.98
7.2.50.0030.01016.63
7.2.40.0080.00416.98
7.2.30.0030.00717.04
7.2.20.0060.00916.96
7.2.10.0040.01116.77
7.2.00.0070.00618.08
7.1.330.0040.00715.73
7.1.320.0130.00315.68
7.1.310.0000.01315.82
7.1.300.0030.01415.79
7.1.290.0100.00715.91
7.1.280.0070.01015.65
7.1.270.0030.01415.90
7.1.260.0030.00715.85
7.1.250.0030.01015.86
7.1.240.0060.00915.79
7.1.230.0060.00915.78
7.1.220.0050.00515.94
7.1.210.0130.00015.64
7.1.200.0040.00815.72
7.1.190.0030.00715.99
7.1.180.0000.01015.82
7.1.170.0060.00615.92
7.1.160.0030.01015.79
7.1.150.0060.00615.97
7.1.140.0140.00015.91
7.1.130.0080.00815.78
7.1.120.0000.01115.90
7.1.110.0040.00715.66
7.1.100.0030.01016.83
7.1.90.0090.00615.81
7.1.80.0060.00315.66
7.1.70.0020.00816.34
7.1.60.0020.01116.67
7.1.50.0080.01116.38
7.1.40.0090.00615.46
7.1.30.0030.00715.75
7.1.20.0060.00915.79
7.1.10.0060.00615.92
7.1.00.0050.04319.03
7.0.330.0050.00815.34
7.0.320.0040.00415.20
7.0.310.0070.00715.61
7.0.300.0030.00615.66
7.0.290.0000.00915.48
7.0.280.0040.00715.15
7.0.270.0040.01215.34
7.0.260.0030.01015.43
7.0.250.0030.00915.43
7.0.240.0060.00615.27
7.0.230.0030.01115.21
7.0.220.0040.00815.35
7.0.210.0070.00315.54
7.0.200.0040.00715.98
7.0.190.0080.00615.27
7.0.180.0120.00015.14
7.0.170.0060.00615.34
7.0.160.0000.00815.54
7.0.150.0080.00615.61
7.0.140.0080.03718.67
7.0.130.0100.00015.61
7.0.120.0110.00015.45
7.0.110.0040.01115.57
7.0.100.0030.04117.61
7.0.90.0050.02317.67
7.0.80.0000.02817.68
7.0.70.0050.03117.72
7.0.60.0100.03217.82
7.0.50.0080.04117.84
7.0.40.0070.04316.67
7.0.30.0070.03916.63
7.0.20.0050.03216.71
7.0.10.0030.02616.84
7.0.00.0030.03816.82
5.6.400.0030.01014.82
5.6.390.0000.01814.76
5.6.380.0110.00314.50
5.6.370.0060.00914.41
5.6.360.0080.00414.15
5.6.350.0000.01314.38
5.6.340.0030.00614.27
5.6.330.0030.00614.40
5.6.320.0000.01214.55
5.6.310.0070.00714.19
5.6.300.0100.01014.59
5.6.290.0100.00714.16
5.6.280.0060.03917.53
5.6.270.0130.00314.73
5.6.260.0090.00614.38
5.6.250.0050.02617.50
5.6.240.0130.04017.49
5.6.230.0120.02517.56
5.6.220.0020.02617.40
5.6.210.0070.04717.39
5.6.200.0100.03017.67
5.6.190.0060.04217.61
5.6.180.0030.03217.78
5.6.170.0090.02017.79
5.6.160.0100.04517.81
5.6.150.0050.03017.56
5.6.140.0050.05017.77
5.6.130.0050.02817.67
5.6.120.0120.03717.67
5.6.110.0070.03117.76
5.6.100.0100.04017.74
5.6.90.0050.02717.70
5.6.80.0090.04117.31
5.6.70.0130.02217.41
5.6.60.0080.04217.35
5.6.50.0120.04217.30
5.6.40.0020.04817.51
5.6.30.0110.04417.25
5.6.20.0080.04117.37
5.6.10.0080.04217.43
5.6.00.0110.04017.29
5.5.380.0050.04317.39
5.5.370.0100.03117.46
5.5.360.0100.04317.46
5.5.350.0100.04317.50
5.5.340.0100.03817.64
5.5.330.0080.03217.40
5.5.320.0050.04217.41
5.5.310.0080.03117.45
5.5.300.0070.02717.54
5.5.290.0050.04617.56
5.5.280.0090.04117.55
5.5.270.0030.03617.38
5.5.260.0080.04417.54
5.5.250.0100.02717.54
5.5.240.0070.04217.25
5.5.230.0060.03017.35
5.5.220.0160.03317.07
5.5.210.0050.04717.10
5.5.200.0130.03317.14
5.5.190.0070.02517.29
5.5.180.0020.02717.22
5.5.170.0000.01814.24
5.5.160.0080.04517.17
5.5.150.0000.03517.39
5.5.140.0020.02717.15
5.5.130.0040.02717.13
5.5.120.0050.02517.20
5.5.110.0080.02117.33
5.5.100.0020.02517.21
5.5.90.0070.02317.18
5.5.80.0020.02317.15
5.5.70.0090.02017.21
5.5.60.0070.02717.12
5.5.50.0090.01817.11
5.5.40.0030.02917.22
5.5.30.0050.04617.08
5.5.20.0050.02416.95
5.5.10.0070.03017.09
5.5.00.0090.04017.22
5.4.450.0130.02715.31
5.4.440.0030.03215.33
5.4.430.0050.02715.24
5.4.420.0080.03015.37
5.4.410.0050.03915.29
5.4.400.0050.04415.03
5.4.390.0050.04015.27
5.4.380.0120.03515.06
5.4.370.0020.04415.12
5.4.360.0100.03915.13
5.4.350.0080.03715.17
5.4.340.0100.03715.14
5.4.330.0030.01011.21
5.4.320.0030.02315.03
5.4.310.0020.02215.04
5.4.300.0120.01515.06
5.4.290.0080.02015.17
5.4.280.0070.01915.15
5.4.270.0030.02015.20
5.4.260.0030.02215.19
5.4.250.0090.01715.17
5.4.240.0070.02015.17
5.4.230.0060.02115.04
5.4.220.0060.02015.12
5.4.210.0070.01715.12
5.4.200.0030.03515.22
5.4.190.0040.04015.15
5.4.180.0050.02015.05
5.4.170.0100.03715.07
5.4.160.0040.02715.11
5.4.150.0030.03315.07
5.4.140.0030.02313.73
5.4.130.0070.02213.73
5.4.120.0050.02113.83
5.4.110.0000.03013.79
5.4.100.0050.02213.77
5.4.90.0050.02013.84
5.4.80.0000.02613.81
5.4.70.0080.01813.79
5.4.60.0010.02313.79
5.4.50.0030.01813.84
5.4.40.0020.02213.84
5.4.30.0030.02213.73
5.4.20.0040.01913.81
5.4.10.0030.01713.77
5.4.00.0020.02113.51
5.3.290.0060.02313.01
5.3.280.0070.02012.92
5.3.270.0050.02012.90
5.3.260.0050.03312.89
5.3.250.0060.01912.98
5.3.240.0040.02112.94
5.3.230.0000.02512.90
5.3.220.0050.02212.91
5.3.210.0020.02312.86
5.3.200.0040.02112.88
5.3.190.0020.02112.94
5.3.180.0000.03212.92
5.3.170.0100.01512.95
5.3.160.0020.02512.90
5.3.150.0020.02212.87
5.3.140.0030.02212.85
5.3.130.0030.02512.94
5.3.120.0020.02012.88
5.3.110.0050.01812.88
5.3.100.0030.02212.67
5.3.90.0050.01912.65
5.3.80.0030.02312.58
5.3.70.0050.02212.63
5.3.60.0070.02012.63
5.3.50.0030.02212.61
5.3.40.0030.02112.64
5.3.30.0030.01712.57
5.3.20.0030.01612.42
5.3.10.0050.02112.39
5.3.00.0040.01912.39
5.2.170.0000.03012.31
5.2.160.0070.02012.31
5.2.150.0000.03012.31
5.2.140.0000.03312.31
5.2.130.0000.03012.31
5.2.120.0000.03012.31
5.2.110.0070.02312.31
5.2.100.0030.02312.31
5.2.90.0000.03012.31
5.2.80.0030.02712.31
5.2.70.0030.03312.31
5.2.60.0030.02712.31
5.2.50.0100.02012.31
5.2.40.0000.02712.31
5.2.30.0000.02712.31
5.2.20.0030.02712.31
5.2.10.0000.02312.31
5.2.00.0000.03012.31
5.1.60.0000.03712.31
5.1.50.0030.05312.31
5.1.40.0000.02712.31
5.1.30.0000.05012.31
5.1.20.0070.05312.31
5.1.10.0100.03312.31
5.1.00.0030.04312.31
5.0.50.0070.04312.31
5.0.40.0030.04712.31
5.0.30.0000.04312.31
5.0.20.0070.04012.31
5.0.10.0070.03312.31
5.0.00.0030.06312.31
4.4.90.0000.01312.31
4.4.80.0000.01312.31
4.4.70.0000.02712.31
4.4.60.0000.01312.31
4.4.50.0000.01312.31
4.4.40.0000.03712.31
4.4.30.0030.02012.31
4.4.20.0100.02012.31
4.4.10.0030.01712.31
4.4.00.0070.02312.31
4.3.110.0030.03012.31
4.3.100.0000.03312.31
4.3.90.0000.03712.31
4.3.80.0030.04312.31
4.3.70.0030.03712.31
4.3.60.0030.01712.31
4.3.50.0070.03312.31
4.3.40.0070.04712.31
4.3.30.0030.03012.31
4.3.20.0000.03012.31
4.3.10.0000.02312.31
4.3.00.0030.02012.31

preferences:
60.81 ms | 401 KiB | 5 Q