3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AA implements ArrayAccess { public function offsetSet($offset, $value) { echo "set $offset = $value\n"; } 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.0070.00718.52
8.3.50.0190.00922.00
8.3.40.0070.00718.96
8.3.30.0090.00919.13
8.3.20.0050.00220.13
8.3.10.0040.00422.04
8.3.00.0040.00422.39
8.2.180.0160.00318.29
8.2.170.0110.00422.96
8.2.160.0060.00820.77
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00319.66
8.2.110.0100.00322.16
8.2.100.0080.00617.91
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0000.00817.59
8.2.60.0050.00317.93
8.2.50.0060.00318.07
8.2.40.0040.00418.16
8.2.30.0070.00318.17
8.2.20.0000.00817.77
8.2.10.0080.00017.75
8.2.00.0070.00017.61
8.1.280.0070.01425.92
8.1.270.0000.00923.89
8.1.260.0060.00326.35
8.1.250.0110.00728.09
8.1.240.0110.00023.61
8.1.230.0040.00719.05
8.1.220.0000.00717.74
8.1.210.0040.00418.77
8.1.200.0040.00417.35
8.1.190.0040.00417.60
8.1.180.0050.00318.10
8.1.170.0040.00418.64
8.1.160.0000.00721.93
8.1.150.0070.00018.69
8.1.140.0070.00017.42
8.1.130.0030.00317.74
8.1.120.0000.00717.45
8.1.110.0000.00817.50
8.1.100.0030.00317.46
8.1.90.0040.00317.48
8.1.80.0040.00417.43
8.1.70.0000.00717.45
8.1.60.0040.00417.56
8.1.50.0040.00417.43
8.1.40.0000.00817.52
8.1.30.0040.00417.56
8.1.20.0030.00617.59
8.1.10.0050.00217.51
8.1.00.0040.00417.52
8.0.300.0070.00018.77
8.0.290.0030.00316.91
8.0.280.0070.00018.44
8.0.270.0020.00517.26
8.0.260.0000.00618.44
8.0.250.0030.00317.01
8.0.240.0030.00416.96
8.0.230.0030.00316.93
8.0.220.0000.00716.86
8.0.210.0070.00016.92
8.0.200.0040.00416.85
8.0.190.0040.00416.84
8.0.180.0040.00316.81
8.0.170.0000.00816.83
8.0.160.0070.00016.88
8.0.150.0070.00016.80
8.0.140.0050.00316.85
8.0.130.0050.00313.35
8.0.120.0030.00616.84
8.0.110.0030.00316.94
8.0.100.0060.00316.93
8.0.90.0040.00416.89
8.0.80.0090.01216.93
8.0.70.0070.00016.78
8.0.60.0040.00416.78
8.0.50.0050.00216.93
8.0.30.0070.01217.10
8.0.20.0120.01117.40
8.0.10.0000.00717.07
8.0.00.0080.01016.75
7.4.330.0000.00515.00
7.4.320.0030.00316.61
7.4.300.0070.00016.40
7.4.290.0000.00716.54
7.4.280.0030.00416.59
7.4.270.0040.00416.53
7.4.260.0000.00816.56
7.4.250.0050.00316.59
7.4.240.0060.00116.55
7.4.230.0060.00016.55
7.4.220.0030.01216.71
7.4.210.0070.00916.50
7.4.200.0070.00016.68
7.4.190.0000.00716.46
7.4.160.0090.00716.38
7.4.150.0070.01317.40
7.4.140.0130.00817.86
7.4.130.0130.00716.59
7.4.120.0110.00816.46
7.4.110.0110.00516.58
7.4.100.0120.00916.43
7.4.90.0130.00916.46
7.4.80.0030.01919.39
7.4.70.0150.00416.47
7.4.60.0100.00616.57
7.4.50.0000.00416.72
7.4.40.0060.01222.77
7.4.30.0060.00916.51
7.4.00.0060.01014.92
7.3.330.0000.00513.18
7.3.320.0000.00513.25
7.3.310.0000.00716.31
7.3.300.0030.00316.35
7.3.290.0170.00316.33
7.3.280.0090.00716.32
7.3.270.0170.00017.40
7.3.260.0130.01016.38
7.3.250.0120.00716.53
7.3.240.0160.00016.25
7.3.230.0070.01416.43
7.3.210.0030.01316.69
7.3.200.0060.01519.39
7.3.190.0150.00616.41
7.3.180.0060.01016.52
7.3.170.0100.00616.57
7.3.160.0030.01616.38
7.3.120.0050.01314.75
7.3.110.0100.01014.77
7.3.100.0030.01014.93
7.3.90.0030.01214.79
7.3.80.0040.01114.71
7.3.70.0030.01014.95
7.3.60.0060.00914.82
7.3.50.0090.00314.97
7.3.40.0030.01014.91
7.3.30.0030.01014.52
7.3.20.0070.00416.43
7.3.10.0120.00016.50
7.3.00.0030.01016.73
7.2.330.0130.00316.55
7.2.320.0090.01516.45
7.2.310.0100.00716.61
7.2.300.0100.00616.66
7.2.290.0130.00416.71
7.2.250.0030.01314.93
7.2.240.0080.00815.06
7.2.230.0040.01615.02
7.2.220.0030.00714.76
7.2.210.0030.01014.63
7.2.200.0070.00414.96
7.2.190.0000.01414.79
7.2.180.0070.00715.04
7.2.170.0000.01314.91
7.2.00.0090.00619.57
7.1.330.0000.01415.74
7.1.320.0030.00715.72
7.1.310.0060.00915.88
7.1.300.0090.00615.56
7.1.290.0100.00715.80
7.1.280.0040.00815.83
7.1.270.0070.00715.76
7.1.260.0040.00916.01
7.1.100.0290.01017.62
7.1.70.0060.00617.07
7.1.60.0100.00319.82
7.1.50.0070.01317.02
7.1.00.0030.07322.51
7.0.200.0090.00316.63
7.0.140.0000.07722.10
7.0.60.0170.07719.88
7.0.50.0130.04317.83
7.0.40.0030.04720.27
7.0.30.0230.05020.06
7.0.20.0200.07720.07
7.0.10.0130.08320.30
7.0.00.0070.08020.05
5.6.280.0100.06721.11
5.6.210.0130.06020.77
5.6.200.0000.07718.16
5.6.190.0030.04320.34
5.6.180.0500.05320.63
5.6.170.0200.07320.43
5.6.160.0170.07720.55
5.6.150.0070.07718.15
5.6.140.0130.06318.22
5.6.130.0030.04318.19
5.6.120.0000.04721.00
5.6.110.0130.07021.13
5.6.100.0070.05321.11
5.6.90.0070.06721.00
5.6.80.0100.08020.39
5.5.350.0000.08720.50
5.5.340.0070.05017.98
5.5.330.0070.05320.27
5.5.320.0100.08020.28
5.5.310.0300.07320.33
5.5.300.0000.04017.95
5.5.290.0070.06317.95
5.5.280.0030.06320.74
5.5.270.0070.08020.79
5.5.260.0030.04720.84
5.5.250.0030.09020.69
5.5.240.0200.06720.01
5.4.450.0200.04319.53
5.4.440.0230.04319.64
5.4.430.0200.04019.38
5.4.420.0370.03319.46
5.4.410.0230.04019.39
5.4.400.0230.04019.20
5.4.390.0200.04019.20
5.4.380.0330.03319.13
5.4.370.0230.04719.22
5.4.360.0230.03718.98
5.4.350.0270.03019.23
5.4.340.0300.03019.22
5.4.320.0130.04719.15
5.4.310.0270.04018.86
5.4.300.0270.04318.84
5.4.290.0300.03719.19
5.4.280.0330.03719.14
5.4.270.0330.03019.24
5.4.260.0300.06719.30
5.4.250.0330.05718.84
5.4.240.0330.05319.23
5.4.230.0370.07319.05
5.4.220.0330.07318.94
5.4.210.0330.03319.23
5.4.200.0470.03319.07
5.4.190.0300.05319.30
5.4.180.0400.05719.14
5.4.170.0470.06318.93
5.4.160.0400.02718.83
5.4.150.0400.07019.09
5.4.140.0330.04016.34
5.4.130.0400.06016.37
5.4.120.0270.05316.41
5.4.110.0300.04316.59
5.4.100.0330.05316.54
5.4.90.0300.03716.56
5.4.80.0270.03716.19
5.4.70.0230.04716.34
5.4.60.0330.04016.49
5.4.50.0270.06316.43
5.4.40.0200.04716.15
5.4.30.0230.03716.24
5.4.20.0230.04716.52
5.4.10.0270.05716.24
5.4.00.0270.03715.81
5.3.290.0300.06714.57
5.3.280.0330.03714.57
5.3.270.0300.04314.72
5.3.260.0270.06714.52
5.3.250.0330.06714.61
5.3.240.0330.05014.58
5.3.230.0400.05014.57
5.3.220.0400.05014.59
5.3.210.0300.03714.50
5.3.200.0300.03314.73
5.3.190.0300.03714.65
5.3.180.0300.03314.66
5.3.170.0230.06014.54
5.3.160.0230.03314.57
5.3.150.0270.04314.57
5.3.140.0230.04014.61
5.3.130.0300.07014.73
5.3.120.0400.03714.46
5.3.110.0300.06714.54
5.3.100.0330.04314.09
5.3.90.0230.04713.94
5.3.80.0270.06713.91
5.3.70.0270.04014.24
5.3.60.0270.03713.93
5.3.50.0230.04314.11
5.3.40.0300.05014.11
5.3.30.0370.03014.03
5.3.20.0230.04013.63
5.3.10.0230.04313.63
5.3.00.0370.06313.88
5.2.170.0200.04011.32
5.2.160.0270.05711.08
5.2.150.0270.05311.23
5.2.140.0330.03311.38
5.2.130.0200.03011.12
5.2.120.0300.04011.27
5.2.110.0300.05311.04
5.2.100.0200.04711.33
5.2.90.0230.06011.06
5.2.80.0230.05311.19
5.2.70.0230.05011.01
5.2.60.0230.04311.06
5.2.50.0170.03310.95
5.2.40.0230.04311.16
5.2.30.0270.05011.14
5.2.20.0230.03010.96
5.2.10.0230.05310.76
5.2.00.0330.04710.71
5.1.60.0170.04010.15
5.1.50.0230.04310.10
5.1.40.0270.0239.98
5.1.30.0270.02310.24
5.1.20.0200.03010.47
5.1.10.0330.0439.96
5.1.00.0200.03010.07
5.0.50.0100.0238.45
5.0.40.0130.0308.32
5.0.30.0100.0578.33
5.0.20.0070.0208.13
5.0.10.0100.0338.25
5.0.00.0100.0378.08
4.4.90.0200.0207.89
4.4.80.0100.0177.89
4.4.70.0170.0237.89
4.4.60.0100.0177.89
4.4.50.0130.0277.89
4.4.40.0100.0277.89
4.4.30.0130.0177.89
4.4.20.0130.0307.89
4.4.10.0100.0137.89
4.4.00.0100.0237.89
4.3.110.0100.0237.89
4.3.100.0130.0137.89
4.3.90.0070.0337.89
4.3.80.0130.0337.89
4.3.70.0170.0277.89
4.3.60.0130.0307.89
4.3.50.0130.0307.89
4.3.40.0170.0437.89
4.3.30.0030.0407.89
4.3.20.0070.0377.89
4.3.10.0070.0307.89
4.3.00.0070.0337.89

preferences:
34.88 ms | 401 KiB | 5 Q