3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AA implements ArrayAccess { public function offsetSet($offset, $value) { echo "set $offset = $value<br>"; } public function offsetExists($offset) { } public function offsetUnset($offset) { } public function offsetGet($offset) { } } $aa = new AA(); $aa['test'] = 1;

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.0040.01116.88
8.3.50.0130.00517.44
8.3.40.0080.01218.70
8.3.30.0060.00918.67
8.3.20.0040.00418.77
8.3.10.0040.00420.51
8.3.00.0040.00419.26
8.2.180.0180.00316.75
8.2.170.0090.00922.96
8.2.160.0140.00321.02
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00419.95
8.2.110.0080.00020.53
8.2.100.0040.00817.91
8.2.90.0000.01019.05
8.2.80.0080.00017.77
8.2.70.0000.00917.50
8.2.60.0040.00417.92
8.2.50.0030.00518.07
8.2.40.0050.00318.05
8.2.30.0040.00418.00
8.2.20.0050.00217.71
8.2.10.0050.00217.63
8.2.00.0040.00417.61
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0050.00528.09
8.1.240.0110.00023.84
8.1.230.0000.01220.91
8.1.220.0050.00317.74
8.1.210.0030.00618.90
8.1.200.0060.00317.35
8.1.190.0000.00817.66
8.1.180.0040.00418.10
8.1.170.0050.00318.71
8.1.160.0050.00218.95
8.1.150.0040.00418.67
8.1.140.0060.00317.33
8.1.130.0040.00417.83
8.1.120.0030.00517.45
8.1.110.0070.00017.51
8.1.100.0070.00017.46
8.1.90.0030.00417.46
8.1.80.0000.00817.54
8.1.70.0030.00317.36
8.1.60.0080.00017.49
8.1.50.0050.00217.47
8.1.40.0080.00017.48
8.1.30.0040.00417.63
8.1.20.0000.00817.56
8.1.10.0040.00417.59
8.1.00.0040.00417.56
8.0.300.0030.00419.89
8.0.290.0000.00716.63
8.0.280.0000.00718.39
8.0.270.0040.00417.32
8.0.260.0030.00316.75
8.0.250.0000.00816.98
8.0.240.0040.00416.96
8.0.230.0030.00316.96
8.0.220.0070.00016.79
8.0.210.0000.00716.79
8.0.200.0030.00316.92
8.0.190.0080.00016.94
8.0.180.0000.00716.99
8.0.170.0050.00316.80
8.0.160.0080.00017.01
8.0.150.0040.00416.75
8.0.140.0000.01216.77
8.0.130.0050.00013.34
8.0.120.0040.00416.83
8.0.110.0040.00416.73
8.0.100.0050.00316.79
8.0.90.0000.00716.80
8.0.80.0120.00616.87
8.0.70.0070.00016.73
8.0.60.0040.00416.77
8.0.50.0040.00416.88
8.0.30.0090.01117.05
8.0.20.0080.01017.28
8.0.10.0040.00417.03
8.0.00.0090.01116.75
7.4.330.0000.00512.98
7.4.320.0000.00716.46
7.4.300.0030.00316.61
7.4.290.0000.00716.52
7.4.280.0060.00316.61
7.4.270.0070.00016.59
7.4.260.0050.00013.39
7.4.250.0060.00316.59
7.4.240.0000.00716.53
7.4.230.0040.00416.51
7.4.220.0130.01016.45
7.4.210.0090.00616.55
7.4.200.0030.00316.62
7.4.190.0070.00016.41
7.4.160.0000.01616.47
7.4.150.0070.01016.62
7.4.140.0080.00816.57
7.4.130.0070.01016.58
7.4.120.0080.00816.42
7.4.110.0090.01216.45
7.4.100.0080.01516.51
7.4.90.0120.00616.36
7.4.80.0160.00016.65
7.4.70.0030.01316.28
7.4.60.0170.00016.51
7.4.50.0040.00016.36
7.4.40.0080.00316.60
7.4.30.0060.00916.38
7.4.00.0080.00815.01
7.3.330.0030.00313.39
7.3.320.0000.00613.15
7.3.310.0070.00016.13
7.3.300.0030.00316.18
7.3.290.0040.01116.36
7.3.280.0080.01116.28
7.3.270.0100.00716.52
7.3.260.0120.00816.49
7.3.250.0140.00916.26
7.3.240.0070.01016.45
7.3.230.0050.01116.36
7.3.210.0100.00616.48
7.3.200.0030.01719.39
7.3.190.0100.00716.63
7.3.180.0090.00616.33
7.3.170.0100.00716.59
7.3.160.0090.00616.68
7.3.120.0070.01015.01
7.3.10.0000.01116.75
7.3.00.0100.00316.59
7.2.330.0100.01316.77
7.2.320.0090.01216.37
7.2.310.0070.01116.72
7.2.300.0110.01116.40
7.2.290.0060.01016.74
7.2.130.0030.00916.94
7.2.120.0060.00916.99
7.2.110.0070.00716.87
7.2.100.0000.01216.93
7.2.90.0090.00616.56
7.2.80.0040.00816.98
7.2.70.0000.01417.05
7.2.60.0110.00417.09
7.2.50.0220.00816.87
7.2.40.0110.00416.88
7.2.30.0070.01016.89
7.2.20.0070.00316.56
7.2.10.0060.01017.00
7.2.00.0060.00616.72
7.1.250.0060.00315.76
7.1.200.0040.00815.77
7.1.70.0040.00416.91
7.1.60.0100.01619.40
7.1.50.0070.01416.98
7.1.00.0070.06722.33
7.0.200.0030.00616.80
7.0.140.0000.07722.11
7.0.120.0000.06722.00
7.0.60.0070.08319.86
7.0.50.0100.07717.86
7.0.40.0170.08720.31
7.0.30.0400.07320.21
7.0.20.0230.04020.16
7.0.10.0100.06020.09
7.0.00.0000.08720.09
5.6.280.0030.07020.93
5.6.210.0000.04320.75
5.6.200.0070.07018.29
5.6.190.0000.05320.42
5.6.180.0230.07320.47
5.6.170.0270.07720.54
5.6.160.0100.06320.70
5.6.150.0070.07718.16
5.6.140.0030.06318.15
5.6.130.0030.08318.18
5.6.120.0200.07020.98
5.6.110.0070.06321.11
5.6.100.0000.04720.94
5.6.90.0000.04320.96
5.6.80.0100.04020.54
5.5.350.0270.04720.39
5.5.340.0100.08317.94
5.5.330.0070.09020.19
5.5.320.0130.05020.25
5.5.310.0330.06320.34
5.5.300.0100.03317.93
5.5.290.0130.06717.98
5.5.280.0030.09320.78
5.5.270.0030.04020.77
5.5.260.0030.08720.77
5.5.250.0100.07720.78
5.5.240.0070.07020.27
5.4.450.0070.03719.64
5.4.440.0000.04019.39
5.4.430.0070.03319.17
5.4.420.0000.04319.41
5.4.410.0030.04019.28
5.4.400.0000.03718.86
5.4.390.0000.04019.09
5.4.380.0000.04319.23
5.4.370.0070.03019.19
5.4.360.0070.04719.32
5.4.350.0000.03719.16
5.4.340.0000.03719.11
5.4.320.0100.05319.20
5.4.310.0070.04318.85
5.4.300.0000.07718.99
5.4.290.0070.05718.84
5.4.280.0100.07019.22
5.4.270.0030.05718.86
5.4.260.0030.08019.13
5.4.250.0070.05019.35
5.4.240.0030.07319.19
5.4.230.0070.06019.15
5.4.220.0000.07719.08
5.4.210.0070.07019.19
5.4.200.0070.07018.84
5.4.190.0030.04018.94
5.4.180.0130.05319.14
5.4.170.0030.05318.84
5.4.160.0000.07719.21
5.4.150.0030.05018.83
5.4.140.0070.06716.38
5.4.130.0030.07016.67
5.4.120.0000.06316.35
5.4.110.0030.04016.40
5.4.100.0030.07316.40
5.4.90.0000.07316.55
5.4.80.0030.04316.25
5.4.70.0000.05716.17
5.4.60.0070.07016.43
5.4.50.0070.07316.50
5.4.40.0200.02716.52
5.4.30.0000.05716.48
5.4.20.0000.07016.50
5.4.10.0030.06716.52
5.4.00.0030.04715.80
5.3.290.0070.06314.58
5.3.280.0000.08014.67
5.3.270.0000.07014.68
5.3.260.0030.08014.61
5.3.250.0030.04314.82
5.3.240.0030.07314.61
5.3.230.0000.08314.82
5.3.220.0030.07014.54
5.3.210.0070.05014.46
5.3.200.0030.05714.56
5.3.190.0030.07014.79
5.3.180.0030.07314.55
5.3.170.0070.07314.57
5.3.160.0030.07314.70
5.3.150.0070.04014.61
5.3.140.0030.04714.48
5.3.130.0030.07314.46
5.3.120.0030.08314.63
5.3.110.0030.05014.66
5.3.100.0000.04014.07
5.3.90.0030.06714.11
5.3.80.0030.03713.94
5.3.70.0030.07313.93
5.3.60.0030.06014.16
5.3.50.0030.07014.08
5.3.40.0000.07314.04
5.3.30.0030.05013.95
5.3.20.0000.07713.70
5.3.10.0030.07013.57
5.3.00.0000.06713.74
5.2.170.0030.05312.11
5.2.160.0030.05712.11
5.2.150.0070.05312.11
5.2.140.0000.04712.11
5.2.130.0000.06312.11
5.2.120.0030.05712.11
5.2.110.0030.05012.11
5.2.100.0000.06012.11
5.2.90.0030.05012.11
5.2.80.0030.04012.11
5.2.70.0000.03312.11
5.2.60.0030.03312.11
5.2.50.0100.05712.11
5.2.40.0030.06012.11
5.2.30.0070.02712.11
5.2.20.0030.03312.11
5.2.10.0130.05012.11
5.2.00.0000.05712.11
5.1.60.0070.03312.11
5.1.50.0000.02712.11
5.1.40.0000.04312.11
5.1.30.0030.05312.11
5.1.20.0030.05012.11
5.1.10.0000.04712.11
5.1.00.0000.04312.11
5.0.50.0000.04712.11
5.0.40.0030.03712.11
5.0.30.0030.06712.11
5.0.20.0070.01712.11
5.0.10.0000.03312.11
5.0.00.0030.03312.11
4.4.90.0030.01312.11
4.4.80.0030.01312.11
4.4.70.0000.02712.11
4.4.60.0000.03712.11
4.4.50.0030.03012.11
4.4.40.0070.05012.11
4.4.30.0030.02012.11
4.4.20.0000.03312.11
4.4.10.0000.03012.11
4.4.00.0030.04012.11
4.3.110.0070.01712.11
4.3.100.0000.02312.11
4.3.90.0000.03712.11
4.3.80.0000.03012.11
4.3.70.0000.01712.11
4.3.60.0000.01712.11
4.3.50.0000.03712.11
4.3.40.0000.05312.11
4.3.30.0000.03012.11
4.3.20.0000.02312.11
4.3.10.0000.03012.11
4.3.00.0100.02312.11

preferences:
41.84 ms | 401 KiB | 5 Q