3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestTable implements ArrayAccess { public function offsetExists($offset) { var_dump($offset); } public function offsetGet($offset) { var_dump($offset); } public function offsetSet($offset, $value) { var_dump($offset, $value); } public function offsetUnset($offset) { var_dump($offset); } } $testTable = new TestTable(); $testTable[] = 'foo'; $testTable[] = 'bar'; $testTable[] = 'qux';

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.0120.00618.52
8.3.50.0110.01122.01
8.3.40.0070.00718.72
8.3.30.0070.00719.05
8.3.20.0040.00420.16
8.3.10.0080.00020.39
8.3.00.0030.00619.26
8.2.180.0110.00716.38
8.2.170.0140.00022.96
8.2.160.0140.00020.24
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0030.00626.16
8.2.120.0070.00022.29
8.2.110.0030.00619.39
8.2.100.0040.00817.75
8.2.90.0030.00519.20
8.2.80.0050.00517.97
8.2.70.0030.00517.50
8.2.60.0030.00717.93
8.2.50.0030.00618.07
8.2.40.0000.00920.07
8.2.30.0030.00518.05
8.2.20.0000.00817.84
8.2.10.0030.00518.02
8.2.00.0080.00017.73
8.1.280.0120.00925.92
8.1.270.0040.00423.77
8.1.260.0000.00726.35
8.1.250.0110.00428.09
8.1.240.0030.00523.98
8.1.230.0060.00617.42
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0030.00617.35
8.1.180.0050.00318.10
8.1.170.0070.00318.50
8.1.160.0070.00022.00
8.1.150.0050.00318.83
8.1.140.0000.00817.43
8.1.130.0030.00317.82
8.1.120.0040.00317.37
8.1.110.0030.00517.53
8.1.100.0030.00517.44
8.1.90.0070.00017.43
8.1.80.0050.00217.36
8.1.70.0030.00317.32
8.1.60.0080.00017.50
8.1.50.0040.00417.43
8.1.40.0050.00317.52
8.1.30.0000.00917.57
8.1.20.0000.00817.69
8.1.10.0050.00217.51
8.1.00.0000.00817.46
8.0.300.0050.00318.77
8.0.290.0000.00716.63
8.0.280.0030.00318.35
8.0.270.0030.00317.25
8.0.260.0000.00817.15
8.0.250.0030.00316.89
8.0.240.0030.00316.91
8.0.230.0070.00016.91
8.0.220.0030.00316.92
8.0.210.0030.00316.84
8.0.200.0040.00416.82
8.0.190.0000.01016.96
8.0.180.0050.00216.88
8.0.170.0000.00916.79
8.0.160.0030.00316.77
8.0.150.0070.00016.75
8.0.140.0020.00516.84
8.0.130.0060.00013.27
8.0.120.0040.00416.84
8.0.110.0040.00416.95
8.0.100.0070.00016.78
8.0.90.0030.00316.94
8.0.80.0060.01216.88
8.0.70.0070.00016.86
8.0.60.0000.00716.84
8.0.50.0000.00716.71
8.0.30.0180.00317.03
8.0.20.0180.00717.40
8.0.10.0080.00017.06
8.0.00.0110.00616.48
7.4.330.0050.00015.00
7.4.320.0070.00016.60
7.4.300.0050.00216.61
7.4.290.0070.00016.51
7.4.280.0040.00316.48
7.4.270.0070.00016.52
7.4.260.0070.00016.60
7.4.250.0040.00416.51
7.4.240.0030.00416.48
7.4.230.0000.00716.48
7.4.220.0100.00916.45
7.4.210.0070.00716.66
7.4.200.0040.00416.71
7.4.160.0100.00716.48
7.4.150.0200.00717.40
7.4.140.0130.00817.86
7.4.130.0110.00616.52
7.4.120.0080.00816.47
7.4.110.0060.00916.42
7.4.100.0130.01016.64
7.4.90.0110.01116.54
7.4.80.0110.01119.39
7.4.70.0040.01216.50
7.4.60.0030.01316.45
7.4.50.0000.00716.52
7.4.40.0030.01416.34
7.4.30.0140.00716.45
7.4.00.0080.00315.06
7.3.330.0000.00713.27
7.3.320.0030.00313.23
7.3.310.0070.00016.19
7.3.300.0000.00716.29
7.3.290.0100.01116.30
7.3.280.0070.00916.29
7.3.270.0030.01617.40
7.3.260.0190.00016.25
7.3.250.0060.01016.33
7.3.240.0080.01216.46
7.3.230.0000.01616.39
7.3.210.0100.01016.38
7.3.200.0000.01719.39
7.3.190.0160.00616.45
7.3.180.0080.00816.63
7.3.170.0080.00816.53
7.3.160.0060.00916.22
7.2.330.0140.00916.44
7.2.320.0030.01616.67
7.2.310.0130.00316.39
7.2.300.0070.01016.39
7.2.290.0070.01116.75
7.1.200.0110.00315.41
7.1.70.0000.00716.96
7.1.60.0180.00719.32
7.1.50.0140.01016.71
7.1.00.0070.06722.57
7.0.200.0000.01016.86
7.0.140.0070.06722.09
7.0.70.5130.03319.93
7.0.60.0030.08319.93
7.0.50.0100.06717.97
7.0.40.0130.08320.30
7.0.30.0230.06020.16
7.0.20.0230.04320.22
7.0.10.0370.06320.15
7.0.00.0030.04020.15
5.6.280.0070.07020.82
5.6.210.0030.07020.51
5.6.200.0100.03318.28
5.6.190.0070.08720.49
5.6.180.0230.05720.59
5.6.170.0470.06720.39
5.6.160.0070.07320.43
5.6.150.0030.05318.16
5.6.140.0070.07718.21
5.6.130.0000.04318.11
5.6.120.0030.07721.03
5.6.110.0030.06020.96
5.6.100.0000.04320.98
5.6.90.0070.04720.98
5.6.80.0000.04320.34
5.6.70.0070.03720.38
5.5.350.0030.07320.45
5.5.340.0130.06717.99
5.5.330.0030.04020.35
5.5.320.0130.07320.36
5.5.310.0130.05020.35
5.5.300.0030.05018.04
5.5.290.0130.07317.98
5.5.280.0100.04720.88
5.5.270.0000.05020.87
5.5.260.0200.07320.80
5.5.250.0130.08320.66
5.5.240.0070.08020.19
5.4.450.0230.04319.50
5.4.440.0400.04319.64
5.4.430.0070.03019.56
5.4.420.0630.00019.52
5.4.410.0630.00019.36
5.4.400.0630.00019.23
5.4.390.0700.00019.13
5.4.380.0630.00019.13
5.4.370.0630.00019.24
5.4.360.0800.00019.15
5.4.350.0670.00019.21
5.4.340.0630.00019.07
5.4.320.0130.04912.50
5.4.310.0090.04512.50
5.4.300.0080.04812.50
5.4.290.0230.06212.50
5.4.280.0120.04312.39
5.4.270.0090.04712.40
5.4.260.0110.04012.40
5.4.250.0160.04012.40
5.4.240.0130.03812.40
5.4.230.0070.04512.39
5.4.220.0110.03212.39
5.4.210.0070.03412.39
5.4.200.0060.03912.39
5.4.190.0060.03612.38
5.4.180.0060.03612.39
5.4.170.0040.03712.39
5.4.160.0100.03512.39
5.4.150.0100.04512.39
5.4.140.0060.03612.07
5.4.130.0100.03112.06
5.4.120.0080.03412.02
5.4.110.0120.03712.02
5.4.100.0050.03512.02
5.4.90.0040.03912.02
5.4.80.0100.03212.02
5.4.70.0110.03612.01
5.4.60.0090.03412.01
5.4.50.0090.03312.01
5.4.40.0060.03412.00
5.4.30.0070.03312.00
5.4.20.0070.03411.99
5.4.10.0060.04312.00
5.4.00.0120.04211.49
5.3.290.0070.04312.80
5.3.280.0060.03812.70
5.3.270.0080.03712.72
5.3.260.0070.03912.72
5.3.250.0090.03412.72
5.3.240.0070.03612.72
5.3.230.0060.03712.71
5.3.220.0130.03112.68
5.3.210.0080.03712.68
5.3.200.0070.03512.68
5.3.190.0080.03612.68
5.3.180.0080.03512.67
5.3.170.0070.03912.66
5.3.160.0070.03612.67
5.3.150.0060.03712.67
5.3.140.0090.03612.66
5.3.130.0060.03912.66
5.3.120.0050.04012.65
5.3.110.0040.04112.66
5.3.100.0050.03812.13
5.3.90.0050.03812.11
5.3.80.0060.03812.09
5.3.70.0100.03312.10
5.3.60.0050.04512.08
5.3.50.0040.04112.03
5.3.40.0040.03812.03
5.3.30.0080.03311.98
5.3.20.0060.03511.77
5.3.10.0050.03911.73
5.3.00.0040.03711.72
5.2.170.0070.0289.22
5.2.160.0080.0269.23
5.2.150.0050.0319.23
5.2.140.0090.0339.23
5.2.130.0120.0379.19
5.2.120.0080.0369.18
5.2.110.0070.0399.20
5.2.100.0070.0409.18
5.2.90.0060.0369.18
5.2.80.0040.0399.18
5.2.70.0060.0329.18
5.2.60.0080.0309.13
5.2.50.0060.0309.10
5.2.40.0050.0349.08
5.2.30.0060.0409.06
5.2.20.0060.0419.05
5.2.10.0080.0358.95
5.2.00.0070.0358.81
5.1.60.0050.0258.09
5.1.50.0070.0228.09
5.1.40.0050.0238.07
5.1.30.0040.0268.42
5.1.20.0030.0288.45
5.1.10.0090.0228.17
5.1.00.0040.0268.16
5.0.50.0060.0196.65
5.0.40.0060.0216.51
5.0.30.0080.0366.32
5.0.20.0060.0176.29
5.0.10.0060.0196.26
5.0.00.0050.0306.26
4.4.90.0060.0134.77
4.4.80.0040.0164.75
4.4.70.0060.0194.76
4.4.60.0070.0214.75
4.4.50.0020.0204.77
4.4.40.0030.0264.71
4.4.30.0050.0144.75
4.4.20.0050.0144.84
4.4.10.0020.0174.85
4.4.00.0060.0274.76
4.3.110.0050.0254.67
4.3.100.0050.0204.67
4.3.90.0040.0134.64
4.3.80.0030.0254.59
4.3.70.0040.0134.63
4.3.60.0010.0164.63
4.3.50.0050.0154.63
4.3.40.0050.0234.54
4.3.30.0030.0163.30
4.3.20.0020.0163.28
4.3.10.0040.0143.24
4.3.00.0170.01716.51

preferences:
37.76 ms | 401 KiB | 5 Q