3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test implements ArrayAccess { public function offsetSet($offset, $value) { var_dump($offset); } public function offsetGet($offset){} public function offsetUnset($offset){} public function offsetExists($offset){} } $test = new Test(); $test['1'] = true;

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.5.30.0100.00817.32
8.5.20.0080.00920.29
8.5.10.0100.00720.23
8.5.00.0130.00819.81
8.4.180.0130.00823.88
8.4.170.0100.01024.01
8.4.160.0170.00825.62
8.4.150.0070.00616.92
8.4.140.0120.01017.57
8.4.130.0120.00917.78
8.4.120.0090.01124.11
8.4.110.0050.00618.57
8.4.100.0130.00718.83
8.4.90.0120.00820.44
8.4.80.0060.00518.49
8.4.70.0110.00818.81
8.4.60.0080.01118.52
8.4.50.0080.00920.16
8.4.40.0130.00620.45
8.4.30.0070.01317.62
8.4.20.0130.00717.66
8.4.10.0040.00417.50
8.3.300.0150.00620.57
8.3.290.0100.01220.72
8.3.280.0120.00818.48
8.3.270.0140.00716.83
8.3.260.0110.00816.79
8.3.250.0110.00818.92
8.3.240.0070.00316.64
8.3.230.0050.00516.57
8.3.220.0070.00219.00
8.3.210.0110.00816.53
8.3.200.0030.00616.68
8.3.190.0080.00717.29
8.3.180.0110.00720.47
8.3.170.0170.00016.66
8.3.160.0060.00917.15
8.3.150.0120.00316.78
8.3.140.0040.00418.81
8.3.130.0060.00318.59
8.3.120.0110.00720.55
8.3.110.0070.01516.78
8.3.100.0090.00016.69
8.3.90.0060.00316.62
8.3.80.0060.00318.68
8.3.70.0090.00616.50
8.3.60.0090.00616.75
8.3.50.0150.00821.08
8.3.40.0030.01118.93
8.3.30.0090.00618.55
8.3.20.0050.00320.20
8.3.10.0040.00421.80
8.3.00.0040.00719.38
8.2.300.0090.01018.90
8.2.290.0100.00920.25
8.2.280.0070.01118.21
8.2.270.0130.00616.70
8.2.260.0060.00316.84
8.2.250.0080.00016.88
8.2.240.0070.01317.27
8.2.230.0000.00820.94
8.2.220.0100.01024.06
8.2.210.0050.00326.77
8.2.200.0100.00016.63
8.2.190.0060.01216.75
8.2.180.0110.01118.41
8.2.170.0070.00722.96
8.2.160.0120.00320.51
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00420.52
8.2.120.0050.00326.35
8.2.110.0030.00621.02
8.2.100.0110.00018.05
8.2.90.0000.00819.08
8.2.80.0030.00617.97
8.2.70.0000.00917.38
8.2.60.0050.00319.13
8.2.50.0080.00018.07
8.2.40.0000.00821.00
8.2.30.0080.00020.62
8.2.20.0030.00617.73
8.2.10.0040.00418.18
8.2.00.0040.00417.97
8.1.340.0100.01119.88
8.1.330.0110.00716.44
8.1.320.0100.01116.30
8.1.310.0090.00916.01
8.1.300.0120.00417.00
8.1.290.0030.00718.88
8.1.280.0090.00625.92
8.1.270.0070.01122.00
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0090.00021.30
8.1.230.0090.00317.59
8.1.220.0030.00617.74
8.1.210.0000.00918.77
8.1.200.0100.00017.36
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0070.00022.09
8.1.150.0040.00418.91
8.1.140.0080.00319.58
8.1.130.0000.00817.77
8.1.120.0000.00717.51
8.1.110.0060.00317.46
8.1.100.0000.00817.40
8.1.90.0070.00017.50
8.1.80.0000.00717.45
8.1.70.0000.00717.42
8.1.60.0050.00217.62
8.1.50.0050.00317.43
8.1.40.0060.00317.53
8.1.30.0080.00017.55
8.1.20.0050.00517.55
8.1.10.0030.00617.55
8.1.00.0030.00517.47
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0050.00318.40
8.0.270.0030.00317.30
8.0.260.0030.00317.31
8.0.250.0060.00016.86
8.0.240.0040.00416.87
8.0.230.0030.00316.99
8.0.220.0000.00716.90
8.0.210.0040.00416.79
8.0.200.0000.00616.94
8.0.190.0030.00616.92
8.0.180.0030.00616.97
8.0.170.0070.00016.94
8.0.160.0000.00816.88
8.0.150.0070.00016.90
8.0.140.0040.00716.93
8.0.130.0000.00513.40
8.0.120.0070.00016.91
8.0.110.0040.00416.80
8.0.100.0060.00316.96
8.0.90.0040.00416.94
8.0.80.0070.00716.90
8.0.70.0040.00416.73
8.0.60.0040.00416.91
8.0.50.0070.00016.72
8.0.30.0100.00817.13
8.0.20.0100.01517.40
8.0.10.0040.00417.13
8.0.00.0160.00416.78
7.4.330.0000.00516.79
7.4.320.0030.00316.49
7.4.300.0000.00616.52
7.4.290.0040.00416.33
7.4.280.0060.00316.60
7.4.270.0070.00016.51
7.4.260.0070.00016.52
7.4.250.0070.00016.41
7.4.240.0030.00516.51
7.4.230.0020.00516.67
7.4.220.0120.01516.55
7.4.210.0070.01016.54
7.4.200.0000.00716.69
7.4.160.0120.00916.48
7.4.150.0170.00317.40
7.4.140.0090.00917.86
7.4.130.0090.00916.54
7.4.120.0100.00916.57
7.4.110.0040.01416.49
7.4.100.0040.01416.66
7.4.90.0120.00616.60
7.4.80.0030.01619.39
7.4.70.0060.01116.45
7.4.60.0130.00316.43
7.4.50.0030.01316.32
7.4.40.0050.01416.39
7.4.30.0130.00316.31
7.4.00.0070.00714.85
7.3.330.0080.00013.11
7.3.320.0020.00213.28
7.3.310.0050.00216.30
7.3.300.0070.00016.23
7.3.290.0090.00816.27
7.3.280.0080.00816.28
7.3.270.0060.01617.40
7.3.260.0120.00616.38
7.3.250.0090.00816.40
7.3.240.0110.01016.28
7.3.230.0040.01316.58
7.3.210.0160.00016.27
7.3.200.0100.01016.31
7.3.190.0110.00516.36
7.3.180.0120.00316.42
7.3.170.0030.01616.45
7.3.160.0100.00716.35
7.2.330.0100.00716.67
7.2.320.0060.01616.67
7.2.310.0130.00416.41
7.2.300.0080.00816.37
7.2.290.0070.01016.48
7.2.60.0030.00716.82
7.2.00.0090.00919.38
7.1.200.0100.00015.82
7.1.100.0000.01418.28
7.1.70.0030.00517.09
7.1.60.0070.01419.36
7.1.50.0030.01216.87
7.1.00.0000.08022.30
7.0.200.0000.00716.46
7.0.100.0030.03319.91
7.0.90.0070.03319.86
7.0.80.0070.03319.89
7.0.70.0070.03719.95
7.0.60.0030.05019.82
7.0.50.0070.07720.35
7.0.40.0000.04720.18
7.0.30.0070.03719.95
7.0.20.0030.04720.09
7.0.10.0000.04320.07
7.0.00.0030.04320.06
5.6.280.0000.05020.77
5.6.250.0070.03320.64
5.6.240.0000.04020.66
5.6.230.0030.03720.54
5.6.220.0000.03720.69
5.6.210.0000.03720.69
5.6.200.0000.03721.13
5.6.190.0070.03721.14
5.6.180.0000.04021.05
5.6.170.0130.06321.06
5.6.160.0030.04321.03
5.6.150.0070.04321.09
5.6.140.0030.03720.96
5.6.130.0030.04021.09
5.6.120.0030.09021.08
5.6.110.0030.06321.10
5.6.100.0030.07021.16
5.6.90.0100.08021.03
5.6.80.0170.04320.50
5.6.70.0000.05020.43
5.6.60.0070.08320.26
5.6.50.0030.04320.38
5.6.40.0070.06020.32
5.6.30.0130.06720.43
5.6.20.0130.04320.47
5.6.10.0030.04720.41
5.6.00.0070.07020.41
5.5.380.0030.03320.40
5.5.370.0030.03720.51
5.5.360.0030.03320.45
5.5.350.0000.03720.35
5.5.340.0100.02720.76
5.5.330.0030.08020.64
5.5.320.0070.06720.90
5.5.310.0030.04320.77
5.5.300.0070.04020.85
5.5.290.0100.05720.89
5.5.280.0070.03720.83
5.5.270.0130.08020.93
5.5.260.0070.03720.79
5.5.250.0100.06320.64
5.5.240.0030.07720.25
5.5.230.0030.04020.31
5.5.220.0070.07720.30
5.5.210.0200.07020.11
5.5.200.0130.07720.19
5.5.190.0070.08320.24
5.5.180.0200.07320.24
5.5.160.0070.04720.23
5.5.150.0070.07320.24
5.5.140.0000.07320.15
5.5.130.0030.07320.28
5.5.120.0130.07720.28
5.5.110.0100.04320.17
5.5.100.0130.04020.12
5.5.90.0100.07020.16
5.5.80.0070.08320.05
5.5.70.0030.07720.06
5.5.60.0100.08020.01
5.5.50.0130.05020.04
5.5.40.0100.07720.10
5.5.30.0130.07020.08
5.5.20.0170.03720.05
5.5.10.0130.07320.12
5.5.00.0070.07319.97

preferences:
47.47 ms | 1809 KiB | 5 Q