3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ObjArray implements ArrayAccess { private $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;

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.0070.00718.68
8.3.50.0140.00721.98
8.3.40.0000.01518.97
8.3.30.0070.00720.21
8.3.20.0070.00020.13
8.3.10.0050.00321.92
8.3.00.0000.00722.42
8.2.180.0140.00716.50
8.2.170.0040.01122.96
8.2.160.0130.00022.13
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00020.78
8.2.110.0070.00320.89
8.2.100.0090.00317.84
8.2.90.0000.00819.17
8.2.80.0030.00617.97
8.2.70.0000.00817.62
8.2.60.0040.00418.01
8.2.50.0000.01218.10
8.2.40.0040.00419.88
8.2.30.0040.00419.49
8.2.20.0040.00417.66
8.2.10.0000.00817.71
8.2.00.0080.00017.86
8.1.270.0060.00323.99
8.1.260.0070.00726.35
8.1.250.0040.00428.09
8.1.240.0000.01022.66
8.1.230.0120.00017.60
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0030.00617.38
8.1.190.0000.00917.35
8.1.180.0000.00818.10
8.1.170.0080.00018.50
8.1.160.0080.00018.86
8.1.150.0040.00418.66
8.1.140.0000.00717.41
8.1.130.0050.00317.85
8.1.120.0030.00517.38
8.1.110.0040.00417.46
8.1.100.0040.00417.39
8.1.90.0040.00417.46
8.1.80.0050.00217.41
8.1.70.0000.00717.45
8.1.60.0030.00517.59
8.1.50.0040.00417.52
8.1.40.0020.00517.43
8.1.30.0030.00517.65
8.1.20.0000.00817.66
8.1.10.0000.00917.51
8.1.00.0000.00717.49
8.0.300.0040.00418.77
8.0.290.0040.00416.72
8.0.280.0030.00318.37
8.0.270.0070.00017.27
8.0.260.0000.00716.83
8.0.250.0050.00216.90
8.0.240.0060.00516.96
8.0.230.0000.00716.93
8.0.220.0040.00416.77
8.0.210.0030.00316.83
8.0.200.0070.00016.86
8.0.190.0000.00716.93
8.0.180.0040.00416.88
8.0.170.0000.00816.89
8.0.160.0040.00416.91
8.0.150.0040.00416.80
8.0.140.0070.00016.75
8.0.130.0030.00313.37
8.0.120.0040.00416.77
8.0.110.0040.00416.90
8.0.100.0040.00416.95
8.0.90.0050.00216.87
8.0.80.0150.00016.94
8.0.70.0040.00416.97
8.0.60.0040.00416.80
8.0.50.0040.00416.76
8.0.30.0100.00917.05
8.0.20.0090.01217.40
8.0.10.0040.00416.89
8.0.00.0090.01216.68
7.4.330.0060.00016.77
7.4.320.0030.00316.62
7.4.300.0000.00716.66
7.4.290.0030.00316.65
7.4.280.0070.00016.52
7.4.270.0000.00716.66
7.4.260.0050.00313.28
7.4.250.0040.00416.50
7.4.240.0020.00516.54
7.4.230.0050.00216.35
7.4.220.0110.00716.65
7.4.210.0060.01116.61
7.4.200.0040.00216.60
7.4.190.0000.00716.38
7.4.160.0080.00816.32
7.4.150.0120.01217.40
7.4.140.0060.01317.86
7.4.130.0050.01216.45
7.4.120.0070.01216.63
7.4.110.0090.00916.33
7.4.100.0090.00916.54
7.4.90.0070.01016.42
7.4.80.0150.00419.39
7.4.70.0120.00616.47
7.4.60.0070.01016.43
7.4.50.0060.00316.54
7.4.40.0060.00922.77
7.4.30.0120.00316.62
7.4.00.0070.01014.92
7.3.330.0030.00313.20
7.3.320.0050.00013.30
7.3.310.0000.00716.41
7.3.300.0030.00316.38
7.3.290.0070.00716.33
7.3.280.0080.00816.38
7.3.270.0060.01117.40
7.3.260.0090.00716.40
7.3.250.0130.00416.42
7.3.240.0090.00916.52
7.3.230.0080.00816.66
7.3.210.0100.00716.32
7.3.200.0150.00319.39
7.3.190.0040.01716.50
7.3.180.0110.00516.52
7.3.170.0120.00316.34
7.3.160.0100.00716.36
7.3.120.0090.00614.94
7.3.110.0100.00914.78
7.3.100.0060.00614.96
7.3.90.0110.00014.84
7.3.80.0070.00714.75
7.3.70.0060.00814.73
7.3.60.0040.01214.70
7.3.50.0030.01314.90
7.3.40.0070.00714.80
7.3.30.0060.00914.94
7.3.20.0120.00316.55
7.3.10.0060.01216.40
7.3.00.0070.00716.69
7.2.330.0140.00316.69
7.2.320.0110.00616.67
7.2.310.0030.01416.62
7.2.300.0190.00316.54
7.2.290.0110.00516.41
7.2.250.0060.01214.69
7.2.240.0030.01115.29
7.2.230.0030.00814.94
7.2.220.0060.00915.33
7.2.210.0040.01115.06
7.2.200.0030.01014.73
7.2.190.0150.00614.79
7.2.180.0040.01314.86
7.2.170.0060.01215.00
7.2.00.0090.00619.17
7.1.330.0070.01015.98
7.1.320.0090.00615.49
7.1.310.0090.00615.95
7.1.300.0000.01315.69
7.1.290.0100.00615.83
7.1.280.0090.00615.74
7.1.270.0040.01215.69
7.1.260.0070.01115.84
7.1.100.0000.01118.40
7.1.70.0000.00917.25
7.1.60.0070.00317.37
7.1.50.0090.01516.98
7.1.00.0030.05722.46
7.0.200.0060.00616.60
7.0.140.0070.06722.09
7.0.60.0030.05320.02
7.0.50.0000.05717.84
7.0.40.0100.05320.09
7.0.30.0330.05020.21
7.0.20.0330.06320.19
7.0.10.0070.05320.07
7.0.00.0100.08720.16
5.6.280.0070.07020.82
5.6.210.0030.08320.48
5.6.200.0030.08318.18
5.6.190.0070.04020.61
5.6.180.0430.06720.41
5.6.170.0200.04320.50
5.6.160.0000.05720.54
5.6.150.0030.04018.19
5.6.140.0000.04318.28
5.6.130.0030.08018.18
5.6.120.0030.04021.00
5.6.110.0030.04321.03
5.6.100.0100.03721.14
5.6.90.0070.08721.04
5.6.80.0130.07320.54
5.5.350.3030.04320.39
5.5.340.0000.05318.07
5.5.330.0100.04320.52
5.5.320.0070.08320.35
5.5.310.0430.03320.35
5.5.300.0070.03718.07
5.5.290.0070.05018.05
5.5.280.0030.04320.88
5.5.270.0130.03720.77
5.5.260.0070.08320.85
5.5.250.0100.08320.66
5.5.240.0070.04320.27
5.4.450.0330.04319.48
5.4.440.0170.08719.30
5.4.430.0270.06319.33
5.4.420.0330.07319.47
5.4.410.0270.05019.51
5.4.400.0300.03319.35
5.4.390.0200.05319.16
5.4.380.0170.05319.24
5.4.370.0270.04019.23
5.4.360.0200.05019.31
5.4.350.0130.04018.98
5.4.340.0200.07719.22
5.4.320.0230.04719.25
5.4.310.0230.07719.24
5.4.300.0170.03718.84
5.4.290.0300.04318.97
5.4.280.0270.04719.14
5.4.270.0270.04719.16
5.4.260.0200.03719.14
5.4.250.0170.04719.13
5.4.240.0200.05319.09
5.4.230.0170.06019.22
5.4.220.0230.07319.07
5.4.210.0170.04718.85
5.4.200.0300.03019.23
5.4.190.0200.05719.21
5.4.180.0200.03719.21
5.4.170.0170.04019.18
5.4.160.0170.06019.20
5.4.150.0270.03319.13
5.4.140.0230.06016.39
5.4.130.0070.05016.51
5.4.120.0230.05016.37
5.4.110.0400.04316.32
5.4.100.0230.04316.55
5.4.90.0270.06716.35
5.4.80.0330.06316.53
5.4.70.0230.03316.54
5.4.60.0200.07716.51
5.4.50.0130.04016.43
5.4.40.0300.03316.16
5.4.30.0200.04316.52
5.4.20.0200.03716.25
5.4.10.0230.07016.38
5.4.00.0170.05015.73
5.3.290.0130.04314.64
5.3.280.0130.04714.72
5.3.270.0130.04314.64
5.3.260.0270.06014.61
5.3.250.0300.04014.51
5.3.240.0070.05014.64
5.3.230.0270.03714.61
5.3.220.0170.04014.47
5.3.210.0200.05714.62
5.3.200.0170.04314.58
5.3.190.0330.02714.56
5.3.180.0200.07314.48
5.3.170.0270.05314.48
5.3.160.0300.05014.47
5.3.150.0170.04714.61
5.3.140.0100.04714.79
5.3.130.0300.06314.55
5.3.120.0230.05014.62
5.3.110.0130.04714.46
5.3.100.0230.05714.16
5.3.90.0300.05314.00
5.3.80.0170.04314.00
5.3.70.0230.03314.25
5.3.60.0170.04014.13
5.3.50.0100.04714.06
5.3.40.0230.04013.96
5.3.30.0270.06714.09
5.3.20.0130.04313.85
5.3.10.0200.06013.58
5.3.00.0230.05013.66
5.2.170.0270.05711.06
5.2.160.0130.04011.07
5.2.150.0170.04011.16
5.2.140.0200.03711.16
5.2.130.0270.05011.12
5.2.120.0130.04311.12
5.2.110.0300.02311.20
5.2.100.0170.03711.33
5.2.90.0200.06011.04
5.2.80.0200.05711.11
5.2.70.0200.04311.19
5.2.60.0230.05311.05
5.2.50.0230.06711.07
5.2.40.0130.05011.09
5.2.30.0230.03310.93
5.2.20.0200.03011.18
5.2.10.0170.03310.79
5.2.00.0130.05010.65
5.1.60.0270.0309.91
5.1.50.0200.0309.93
5.1.40.0130.0479.91
5.1.30.0130.03710.39
5.1.20.0170.05310.52
5.1.10.0170.05010.01
5.1.00.0130.03010.20
5.0.50.0030.0238.44
5.0.40.0100.0178.57
5.0.30.0100.0278.23
5.0.20.0100.0238.37
5.0.10.0030.0438.06
5.0.00.0170.0538.15
4.4.90.0070.0377.03
4.4.80.0070.0237.03
4.4.70.0100.0177.03
4.4.60.0130.0137.03
4.4.50.0130.0277.03
4.4.40.0100.0337.03
4.4.30.0070.0207.03
4.4.20.0070.0337.03
4.4.10.0070.0177.03
4.4.00.0030.0237.03
4.3.110.0100.0177.03
4.3.100.0030.0207.03
4.3.90.0070.0207.03
4.3.80.0130.0307.03
4.3.70.0070.0377.03
4.3.60.0100.0237.03
4.3.50.0130.0177.03
4.3.40.0170.0237.03
4.3.30.0070.0337.03
4.3.20.0070.0207.03
4.3.10.0030.0277.03
4.3.00.0030.0337.03

preferences:
63.85 ms | 400 KiB | 5 Q