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) { } } class Di { public $aa; public function __constructor() { $this->aa = new AA(); $this->aa['test'] = 123; } } $di = new Di(); $di->aa['test'] = 123;

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.0140.00718.55
8.3.50.0100.01017.33
8.3.40.0070.01419.02
8.3.30.0090.00618.71
8.3.20.0040.01118.91
8.3.10.0000.00920.52
8.3.00.0060.01317.50
8.2.180.0130.00716.75
8.2.170.0080.00822.96
8.2.160.0030.01020.27
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00420.08
8.2.110.0070.00320.87
8.2.100.0110.00017.91
8.2.90.0000.00919.22
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0090.00018.07
8.2.40.0000.00819.98
8.2.30.0040.00418.19
8.2.20.0000.00817.64
8.2.10.0070.00017.73
8.2.00.0050.00317.63
8.1.280.0030.01725.92
8.1.270.0140.00324.66
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00620.70
8.1.230.0080.00320.97
8.1.220.0040.00418.77
8.1.210.0030.00818.96
8.1.200.0050.00517.35
8.1.190.0050.00217.66
8.1.180.0040.00418.10
8.1.170.0050.00218.96
8.1.160.0040.00418.89
8.1.150.0080.00018.71
8.1.140.0080.00017.46
8.1.130.0000.00717.77
8.1.120.0000.00717.49
8.1.110.0030.00317.35
8.1.100.0040.00417.46
8.1.90.0070.00017.43
8.1.80.0040.00417.50
8.1.70.0030.00317.32
8.1.60.0040.00417.54
8.1.50.0070.00017.50
8.1.40.0040.00417.49
8.1.30.0080.00017.68
8.1.20.0000.00817.56
8.1.10.0080.00017.43
8.1.00.0080.00017.29
8.0.300.0000.00820.02
8.0.290.0040.00416.62
8.0.280.0070.00018.44
8.0.270.0070.00017.24
8.0.260.0030.00316.73
8.0.250.0000.00716.87
8.0.240.0060.00316.93
8.0.230.0000.00716.96
8.0.220.0030.00516.77
8.0.210.0080.00016.90
8.0.200.0030.00316.97
8.0.190.0020.00516.86
8.0.180.0070.00016.96
8.0.170.0000.00816.88
8.0.160.0000.00716.91
8.0.150.0000.00716.95
8.0.140.0040.00816.91
8.0.130.0030.00313.41
8.0.120.0040.00416.89
8.0.110.0040.00416.79
8.0.100.0040.00416.87
8.0.90.0070.00016.68
8.0.80.0140.00616.78
8.0.70.0000.00816.77
8.0.60.0000.00717.01
8.0.50.0040.00416.88
8.0.30.0090.01017.04
8.0.20.0090.01117.07
8.0.10.0040.00416.92
8.0.00.0150.00516.69
7.4.330.0020.00213.00
7.4.320.0000.00716.62
7.4.300.0060.00016.40
7.4.290.0000.00716.58
7.4.280.0040.00416.43
7.4.270.0040.00416.52
7.4.260.0030.00313.30
7.4.250.0040.00416.56
7.4.240.0050.00316.41
7.4.230.0030.00516.61
7.4.220.0060.01016.70
7.4.210.0070.00816.57
7.4.200.0040.00316.66
7.4.190.0030.00316.73
7.4.160.0060.01016.38
7.4.150.0140.00716.39
7.4.140.0090.00917.17
7.4.130.0080.00916.37
7.4.120.0100.01016.56
7.4.110.0130.00316.38
7.4.100.0070.01016.59
7.4.90.0140.00516.45
7.4.80.0100.00718.38
7.4.70.0030.01316.37
7.4.60.0150.00316.57
7.4.50.0030.00616.40
7.4.40.0080.00616.49
7.4.30.0100.00616.43
7.4.00.0110.00415.26
7.3.330.0040.00313.17
7.3.320.0000.00513.14
7.3.310.0040.00416.16
7.3.300.0080.00016.23
7.3.290.0140.00016.25
7.3.280.0120.00516.28
7.3.270.0130.00317.07
7.3.260.0130.00616.98
7.3.250.0110.00816.39
7.3.240.0030.01316.53
7.3.230.0100.00716.54
7.3.210.0070.01016.46
7.3.200.0110.00419.39
7.3.190.0060.01316.57
7.3.180.0040.01816.25
7.3.170.0160.00616.37
7.3.160.0070.01016.48
7.3.120.0030.00914.80
7.3.10.0070.00616.65
7.3.00.0070.00616.61
7.2.330.0140.00316.56
7.2.320.0080.00816.37
7.2.310.0100.01316.58
7.2.300.0080.00816.67
7.2.290.0090.00916.66
7.2.130.0110.00516.78
7.2.120.0100.00316.84
7.2.110.0120.00616.66
7.2.100.0110.00816.92
7.2.90.0090.00717.04
7.2.80.0060.00816.80
7.2.70.0090.01016.55
7.2.60.0020.00917.05
7.2.50.0050.00816.91
7.2.40.0020.01116.87
7.2.30.0040.01116.80
7.2.20.0090.00616.80
7.2.10.0050.00916.78
7.2.00.0060.00617.76
7.1.250.0040.01115.76
7.1.100.0000.01317.54
7.1.70.0120.00017.08
7.1.60.0100.00317.12
7.1.50.0090.00616.61
7.1.40.0000.01216.51
7.1.30.0110.00516.25
7.1.20.0150.00416.71
7.1.10.0140.00516.50
7.1.00.0080.00016.91
7.0.200.0030.00916.74
7.0.190.0030.01016.55
7.0.180.0040.00816.04
7.0.170.0090.00416.09
7.0.160.0000.01216.18
7.0.150.0160.00316.04
7.0.140.0050.00816.23
7.0.130.0040.01316.31
7.0.120.0120.00816.55
7.0.110.0080.01116.49
7.0.100.0020.01016.21
7.0.90.0090.01216.18
7.0.80.0000.01216.19
7.0.70.0080.00416.19
7.0.60.0060.00616.07
7.0.50.0080.00316.38
7.0.40.0050.00915.18
7.0.30.0090.00415.18
7.0.20.0040.00915.18
7.0.10.0000.01315.18
7.0.00.0020.00715.18
5.6.300.0040.04420.88
5.6.290.0030.05620.79
5.6.280.0120.04321.04
5.6.270.0040.04821.08
5.6.260.0120.04021.03
5.6.250.0040.05320.87
5.6.240.0140.06620.99
5.6.230.0040.04920.82
5.6.220.0030.04320.91
5.6.210.0000.04921.08
5.6.200.0040.04720.84
5.6.190.0070.05021.03
5.6.180.0040.04620.96
5.6.170.0090.03720.99
5.6.160.0000.04721.04
5.6.150.0000.05120.97
5.6.140.0000.04621.00
5.6.130.0030.04420.93
5.6.120.0070.04320.93
5.6.110.0000.04620.83
5.6.100.0070.04820.92
5.6.90.0130.03620.81
5.6.80.0030.04120.32
5.6.70.0120.03820.24
5.6.60.0060.04120.43
5.6.50.0000.06520.35
5.6.40.0070.03820.42
5.6.30.0060.03820.39
5.6.20.0100.04020.26
5.6.10.0040.05720.10
5.6.00.0040.04820.30
5.5.380.0100.05117.63
5.5.370.0070.04017.41
5.5.360.0030.04517.45
5.5.350.0070.04017.52
5.5.340.0030.04418.01
5.5.330.0040.04417.71
5.5.320.0070.04318.02
5.5.310.0000.04317.96
5.5.300.0060.04518.03
5.5.290.0070.04318.06
5.5.280.0130.03317.86
5.5.270.0060.04718.07
5.5.260.0070.04318.08
5.5.250.0070.04317.65
5.5.240.0070.03717.09
5.5.230.0060.03517.52
5.5.220.0030.03917.38
5.5.210.0030.05017.48
5.5.200.0070.05217.20
5.5.190.0120.03117.41
5.5.180.0100.04817.41
5.5.160.0040.08117.35
5.5.150.0030.03817.44
5.5.140.0000.04317.05
5.5.130.0070.05017.44
5.5.120.0000.04117.49
5.5.110.0030.03917.18
5.5.100.0070.03717.36
5.5.90.0070.03817.09
5.5.80.0090.03117.36
5.5.70.0030.04117.27
5.5.60.0000.04117.38
5.5.50.0150.03017.30
5.5.40.0040.03717.33
5.5.30.0040.03917.32
5.5.20.0030.04117.24
5.5.10.0140.04417.30
5.5.00.0000.04517.27
5.4.450.0070.04019.58
5.4.440.0130.03619.53
5.4.430.0130.07619.52
5.4.420.0100.05019.47
5.4.410.0040.04319.40
5.4.400.0040.03919.14
5.4.390.0000.04519.07
5.4.380.0130.06618.91
5.4.370.0060.03718.89
5.4.360.0000.04519.08
5.4.350.0060.04618.92
5.4.340.0060.03718.95
5.4.320.0030.04319.07
5.4.310.0030.03819.06
5.4.300.0100.07919.11
5.4.290.0060.03519.20
5.4.280.0000.04419.23
5.4.270.0000.05319.07
5.4.260.0060.04219.02
5.4.250.0070.03718.89
5.4.240.0000.04119.05
5.4.230.0000.05519.13
5.4.220.0060.03418.93
5.4.210.0210.03519.14
5.4.200.0030.04319.20
5.4.190.0070.04318.91
5.4.180.0030.03818.96
5.4.170.0060.03419.12
5.4.160.0060.03519.05
5.4.150.0060.03718.90
5.4.140.0110.02816.63
5.4.130.0030.03416.81
5.4.120.0030.03716.70
5.4.110.0060.03216.54
5.4.100.0060.03116.51
5.4.90.0000.03916.79
5.4.80.0000.03716.77
5.4.70.0030.03616.67
5.4.60.0030.04716.70
5.4.50.0070.05916.70
5.4.40.0100.03216.61
5.4.30.0030.03416.67
5.4.20.0070.03616.67
5.4.10.0100.05016.68
5.4.00.0100.04215.95
5.3.290.0000.04315.18
5.3.280.0030.03815.18
5.3.270.0090.03115.18
5.3.260.0000.03915.18
5.3.250.0090.03515.18
5.3.240.0030.03715.18
5.3.230.0000.04115.18
5.3.220.0030.04115.18
5.3.210.0000.04115.18
5.3.200.0070.03315.18
5.3.190.0030.03815.18
5.3.180.0000.03815.18
5.3.170.0000.03915.18
5.3.160.0070.04015.18
5.3.150.0000.04215.18
5.3.140.0070.03415.18
5.3.130.0070.03515.18
5.3.120.0000.04715.18
5.3.110.0040.03915.18
5.3.100.0090.03115.18
5.3.90.0000.04515.18
5.3.80.0070.03315.18
5.3.70.0000.03915.18
5.3.60.0060.03215.18
5.3.50.0000.03615.18
5.3.40.0030.03615.18
5.3.30.0030.03615.18
5.3.20.0030.03415.18
5.3.10.0060.03115.18
5.3.00.0000.03715.18
5.2.170.0030.03115.18
5.2.160.0030.02815.18
5.2.150.0000.04715.18
5.2.140.0000.03515.18
5.2.130.0030.03915.18
5.2.120.0030.03015.18
5.2.110.0000.04515.18
5.2.100.0030.02715.18
5.2.90.0000.04715.18
5.2.80.0000.05415.18
5.2.70.0030.03115.18
5.2.60.0000.03115.18
5.2.50.0070.06015.18
5.2.40.0100.05415.18
5.2.30.0040.03915.18
5.2.20.0000.03415.18
5.2.10.0000.04215.18
5.2.00.0070.03015.18
5.1.60.0030.03715.18
5.1.50.0000.03215.18
5.1.40.0030.02515.18
5.1.30.0070.02115.18
5.1.20.0030.03115.18
5.1.10.0000.02815.18
5.1.00.0030.02815.18
5.0.50.0060.01815.18
5.0.40.0090.01515.18
5.0.30.0130.03915.18
5.0.20.0060.01515.18
5.0.10.0030.03015.18
5.0.00.0070.03215.18
4.4.90.0030.01315.18
4.4.80.0000.01615.18
4.4.70.0070.01415.18
4.4.60.0030.01315.18
4.4.50.0030.02915.18
4.4.40.0000.04915.18
4.4.30.0000.01715.18
4.4.20.0000.01915.18
4.4.10.0040.01415.18
4.4.00.0030.02315.18
4.3.110.0060.01215.18
4.3.100.0130.01615.18
4.3.90.0000.01715.18
4.3.80.0000.02615.18
4.3.70.0000.01615.18
4.3.60.0000.01515.18
4.3.50.0030.01315.18
4.3.40.0000.02515.18
4.3.30.0000.01715.18
4.3.20.0030.01515.18
4.3.10.0030.01415.18
4.3.00.0030.02415.18

preferences:
46.23 ms | 401 KiB | 5 Q