3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Outside { protected $data; public function __construct($data) { $this->data = $data; } public function getArrayAccess() { return new class($this->data) extends Outside implements ArrayAccess { public function offsetGet($offset) { return $this->data[$offset]; } public function offsetSet($offset, $data) { return ($this->data[$offset] = $data); } public function offsetUnset($offset) { unset($this->data[$offset]); } public function offsetExists($offset) { return isset($this->data[$offset]); } }; } }

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.0110.00718.30
8.3.50.0150.00721.05
8.3.40.0110.00318.42
8.3.30.0110.00418.54
8.3.20.0070.00020.34
8.3.10.0060.00321.64
8.3.00.0040.00420.16
8.2.180.0130.00716.32
8.2.170.0100.00322.96
8.2.160.0070.01020.23
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0030.00617.50
8.2.110.0060.00320.43
8.2.100.0080.00417.38
8.2.90.0050.00319.14
8.2.80.0050.00317.97
8.2.70.0040.00417.50
8.2.60.0070.00317.80
8.2.50.0000.00818.07
8.2.40.0090.00019.16
8.2.30.0040.00422.28
8.2.20.0050.00217.56
8.2.10.0040.00417.82
8.2.00.0000.00817.98
8.1.280.0040.01525.92
8.1.270.0060.01223.76
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00420.88
8.1.230.0040.00717.42
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.10
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0050.00518.57
8.1.160.0040.00421.80
8.1.150.0040.00418.77
8.1.140.0050.00317.38
8.1.130.0000.00717.58
8.1.120.0070.00017.36
8.1.110.0000.00717.36
8.1.100.0040.00417.32
8.1.90.0040.00417.37
8.1.80.0040.00417.38
8.1.70.0040.00417.31
8.1.60.0040.00417.34
8.1.50.0050.00317.40
8.1.40.0070.00017.38
8.1.30.0050.00317.60
8.1.20.0000.00817.46
8.1.10.0040.00417.39
8.1.00.0000.00717.39
8.0.300.0040.00418.77
8.0.290.0070.00016.58
8.0.280.0030.00318.25
8.0.270.0080.00017.08
8.0.260.0000.00617.14
8.0.250.0030.00416.79
8.0.240.0030.00316.79
8.0.230.0030.00516.80
8.0.220.0030.00616.70
8.0.210.0030.00516.74
8.0.200.0030.00616.82
8.0.190.0080.00016.80
8.0.180.0040.00416.79
8.0.170.0000.00816.84
8.0.160.0000.00716.63
8.0.150.0030.00516.61
8.0.140.0000.00716.76
8.0.130.0030.00313.26
8.0.120.0000.00716.74
8.0.110.0000.00816.69
8.0.100.0030.00516.60
8.0.90.0040.00416.68
8.0.80.0030.01316.71
8.0.70.0000.00816.84
8.0.60.0040.00416.66
8.0.50.0040.00416.57
8.0.30.0100.00716.91
8.0.20.0090.01017.40
8.0.10.0000.00816.81
8.0.00.0110.00616.65
7.4.330.0000.00515.08
7.4.320.0030.00316.38
7.4.300.0030.00316.38
7.4.290.0030.00316.51
7.4.280.0060.00316.44
7.4.270.0040.00416.41
7.4.260.0000.00716.27
7.4.250.0030.00316.25
7.4.240.0040.00316.38
7.4.230.0040.00316.46
7.4.220.0060.01216.51
7.4.210.0040.01116.32
7.4.200.0030.00316.30
7.4.160.0090.00616.37
7.4.150.0170.00017.40
7.4.140.0130.00617.86
7.4.130.0110.00816.34
7.4.120.0110.00916.34
7.4.110.0180.00016.54
7.4.100.0120.01216.55
7.4.90.0140.00416.38
7.4.80.0110.00619.39
7.4.70.0090.00916.27
7.4.60.0110.00716.41
7.4.50.0030.00616.30
7.4.40.0030.01816.14
7.4.30.0100.00616.27
7.4.10.0040.01414.90
7.4.00.0080.00814.55
7.3.330.0030.00313.18
7.3.320.0000.00613.00
7.3.310.0040.00416.27
7.3.300.0030.00516.18
7.3.290.0080.00716.21
7.3.280.0150.00316.14
7.3.270.0080.00817.40
7.3.260.0170.00016.19
7.3.250.0090.00816.28
7.3.240.0140.00616.30
7.3.230.0130.00316.39
7.3.210.0160.00016.20
7.3.200.0030.01316.31
7.3.190.0130.00716.35
7.3.180.0130.00316.45
7.3.170.0070.01116.27
7.3.160.0030.01216.30
7.3.130.0130.00614.68
7.3.120.0060.00914.56
7.3.110.0070.01414.68
7.3.100.0060.00914.70
7.3.90.0070.01014.84
7.3.80.0060.00614.97
7.3.70.0030.00914.70
7.3.60.0000.00914.44
7.3.50.0070.00314.68
7.3.40.0060.00914.69
7.3.30.0080.00414.65
7.3.20.0030.01016.52
7.3.10.0030.00816.37
7.3.00.0070.00516.15
7.2.330.0130.00316.50
7.2.320.0140.01016.51
7.2.310.0070.01016.67
7.2.300.0060.01116.47
7.2.290.0130.01316.30
7.2.260.0100.01014.76
7.2.250.0120.00414.82
7.2.240.0060.00614.86
7.2.230.0080.00814.79
7.2.220.0030.00914.78
7.2.210.0040.01115.04
7.2.200.0060.00914.80
7.2.190.0060.00614.76
7.2.180.0030.00914.52
7.2.170.0030.00614.53
7.2.160.0030.00714.86
7.2.150.0070.01016.54
7.2.140.0030.01516.86
7.2.130.0050.00716.40
7.2.120.0050.00916.61
7.2.110.0050.00616.49
7.2.100.0030.01116.35
7.2.90.0040.00816.75
7.2.80.0050.01216.45
7.2.70.0050.01016.52
7.2.60.0070.00716.72
7.2.50.0060.01016.48
7.2.40.0130.00316.79
7.2.30.0090.00816.62
7.2.20.0050.00816.71
7.2.10.0000.01216.48
7.2.00.0050.01017.62
7.1.330.0000.01215.52
7.1.320.0070.00715.70
7.1.310.0080.00615.46
7.1.300.0040.01115.66
7.1.290.0030.00915.63
7.1.280.0100.00715.78
7.1.270.0060.00315.38
7.1.260.0080.00415.62
7.1.250.0030.00715.57
7.1.240.0030.01215.63
7.1.230.0100.00315.62
7.1.220.0030.01015.68
7.1.210.0000.00915.73
7.1.200.0050.00715.46
7.1.190.0030.01015.67
7.1.180.0030.01015.34
7.1.170.0020.01315.54
7.1.160.0000.01415.47
7.1.150.0060.00315.26
7.1.140.0060.00715.36
7.1.130.0030.00715.63
7.1.120.0060.00315.39
7.1.110.0030.01015.80
7.1.100.0050.00816.86
7.1.90.0030.01115.41
7.1.80.0000.01015.30
7.1.70.0050.00516.29
7.1.60.0050.01117.41
7.1.50.0110.01025.27
7.1.40.0070.00715.70
7.1.30.0030.01415.62
7.1.20.0000.01115.51
7.1.10.0080.00315.59
7.1.00.0030.04318.96
7.0.330.0030.00615.28
7.0.320.0040.00415.16
7.0.310.0120.00014.94
7.0.300.0050.00515.24
7.0.290.0090.00315.01
7.0.280.0070.00715.26
7.0.270.0090.00315.18
7.0.260.0040.00815.26
7.0.250.0090.00315.29
7.0.240.0030.01015.49
7.0.230.0070.01015.39
7.0.220.0100.00315.24
7.0.210.0060.00915.22
7.0.200.0050.00715.95
7.0.190.0100.00714.97
7.0.180.0040.01115.39
7.0.170.0040.01215.39
7.0.160.0060.00615.26
7.0.150.0000.01415.09
7.0.140.0090.00615.26
7.0.130.0100.00315.39
7.0.120.0070.00415.23
7.0.110.0050.00515.35
7.0.100.0000.01215.14
7.0.90.0030.00615.32
7.0.80.0030.01015.15
7.0.70.0060.00915.31
7.0.60.0030.05017.63
7.0.50.0080.04616.58
7.0.40.0070.02516.68
7.0.30.0150.03816.78
7.0.20.0150.03816.76
7.0.10.0050.02516.74
7.0.00.0060.02216.71
5.6.400.0040.00414.36
5.6.390.0000.01014.11
5.6.380.0100.00314.16
5.6.370.0070.01013.99
5.6.360.0120.00414.41
5.6.350.0070.00314.13
5.6.340.0070.00713.98
5.6.330.0080.00414.16
5.6.320.0030.01014.08
5.6.310.0090.00314.00
5.6.300.0040.00714.14
5.6.290.0030.01014.20
5.6.280.0030.04117.44
5.6.270.0030.00614.19
5.6.260.0000.01314.15
5.6.250.0000.01414.24
5.6.240.0090.00614.09
5.6.230.0110.00014.31
5.6.220.0000.01514.11
5.6.210.0090.03417.31
5.6.200.0060.03616.15
5.6.190.0070.04517.46
5.6.180.0220.03617.28
5.6.170.0100.03517.31
5.6.160.0030.02317.37
5.6.150.0060.03116.09
5.6.140.0040.04216.10
5.6.130.0070.02216.21
5.6.120.0020.04817.44
5.6.110.0060.03817.46
5.6.100.0030.04317.59
5.6.90.0040.03917.65
5.6.80.0130.03217.21
5.6.70.0080.00813.87
5.6.60.0110.00413.91
5.6.50.0070.00713.98
5.6.40.0040.00814.10
5.6.30.0050.00514.11
5.6.20.0080.00313.87
5.6.10.0040.01114.32
5.6.00.0030.01014.12
5.5.380.0100.00314.18
5.5.370.0030.00913.94
5.5.360.0060.00613.95
5.5.350.2180.02517.09
5.5.340.0070.02115.92
5.5.330.0050.03117.09
5.5.320.0170.02517.18
5.5.310.0170.04417.13
5.5.300.0090.01516.00
5.5.290.0050.04115.86
5.5.280.0100.04317.30
5.5.270.0020.02517.42
5.5.260.0070.04417.54
5.5.250.0030.04317.17
5.5.240.0060.04317.09
5.5.230.0000.00913.64
5.5.220.0100.00014.09
5.5.210.0070.00713.92
5.5.200.0100.00314.33
5.5.190.0000.00813.62
5.5.180.0030.01013.90
5.5.170.0110.00414.12
5.5.160.0070.00714.03
5.5.150.0070.01013.91
5.5.140.0030.01313.82
5.5.130.0070.00713.79
5.5.120.0000.01614.05
5.5.110.0100.00713.92
5.5.100.0100.00313.73
5.5.90.0070.00713.85
5.5.80.0060.00614.11
5.5.70.0070.00713.71
5.5.60.0060.00613.96
5.5.50.0070.00714.07
5.5.40.0150.00013.65
5.5.30.0060.00914.04
5.5.20.0030.00613.73
5.5.10.0110.00013.75
5.5.00.0060.00913.89
5.4.450.0100.02514.93
5.4.440.0050.03215.01
5.4.430.0080.02915.17
5.4.420.0350.03515.19
5.4.410.0380.02815.19
5.4.400.0420.02915.13
5.4.390.0400.03415.10
5.4.380.0350.03515.07
5.4.370.0400.02714.93
5.4.360.0350.03314.89
5.4.350.0430.04014.91
5.4.340.0380.03414.96
5.4.330.0000.00710.59
5.4.320.0440.02715.12
5.4.310.0370.03415.00
5.4.300.0450.02914.91
5.4.290.0470.03314.87
5.4.280.0410.03615.06
5.4.270.0420.03214.94
5.4.260.0380.03414.98
5.4.250.0400.02915.07
5.4.240.0420.04314.85
5.4.230.0450.02814.95
5.4.220.0500.02314.95
5.4.210.0450.02715.05
5.4.200.0390.03014.92
5.4.190.0450.03115.04
5.4.180.0430.03214.88
5.4.170.0450.02814.91
5.4.160.0480.02514.97
5.4.150.0450.02715.02
5.4.140.0420.03013.69
5.4.130.0460.02413.67
5.4.120.0480.03113.56
5.4.110.0540.03213.63
5.4.100.0430.02813.67
5.4.90.0350.03213.48
5.4.80.0320.03413.55
5.4.70.0160.01413.47
5.4.60.0110.02113.66
5.4.50.0190.03513.67
5.4.40.0160.02513.59
5.4.30.0060.03613.57
5.4.20.0050.03113.61
5.4.10.0120.02913.51
5.4.00.0030.00910.74

preferences:
54.6 ms | 401 KiB | 5 Q