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 __construct() { $this->aa = new AA(); $this->aa->in = $this->aa; } } $di = new Di(); $di->aa->in->in->aa->in['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.0070.01016.75
8.3.50.0150.00717.50
8.3.40.0100.00718.79
8.3.30.0090.00618.82
8.3.20.0080.00018.90
8.3.10.0060.00320.65
8.3.00.0040.00417.75
8.2.180.0190.00318.41
8.2.170.0150.00022.96
8.2.160.0100.00722.20
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0080.00019.95
8.2.110.0100.00020.96
8.2.100.0080.00417.84
8.2.90.0080.00019.28
8.2.80.0040.00418.04
8.2.70.0000.00817.50
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0000.00718.03
8.2.30.0030.00318.07
8.2.20.0000.00717.83
8.2.10.0030.01019.58
8.2.00.0000.00817.83
8.1.270.0050.00324.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00722.46
8.1.230.0040.00820.88
8.1.220.0000.00818.77
8.1.210.0050.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.52
8.1.180.0040.00418.10
8.1.170.0040.00418.84
8.1.160.0050.00218.81
8.1.150.0000.00718.68
8.1.140.0040.00417.43
8.1.130.0030.00317.82
8.1.120.0030.00517.50
8.1.110.0040.00417.46
8.1.100.0030.00517.38
8.1.90.0040.00417.49
8.1.80.0080.00017.48
8.1.70.0070.00317.43
8.1.60.0000.00817.52
8.1.50.0050.00317.39
8.1.40.0030.00617.55
8.1.30.0000.00717.69
8.1.20.0030.00517.66
8.1.10.0050.00317.52
8.1.00.0040.00417.41
8.0.300.0020.00519.89
8.0.290.0040.00416.75
8.0.280.0070.00018.32
8.0.270.0040.00417.26
8.0.260.0040.00416.88
8.0.250.0040.00417.02
8.0.240.0090.00017.04
8.0.230.0000.00716.99
8.0.220.0000.00816.97
8.0.210.0000.00716.92
8.0.200.0030.00516.98
8.0.190.0030.00617.02
8.0.180.0070.00016.95
8.0.170.0080.00016.84
8.0.160.0040.00417.05
8.0.150.0000.00816.86
8.0.140.0040.00416.96
8.0.130.0030.00313.36
8.0.120.0020.00516.80
8.0.110.0000.00716.79
8.0.100.0040.00416.83
8.0.90.0070.00017.00
8.0.80.0120.00916.92
8.0.70.0000.00717.00
8.0.60.0000.00716.98
8.0.50.0040.00416.97
8.0.30.0130.00817.21
8.0.20.0140.00816.96
8.0.10.0050.00316.92
8.0.00.0170.01416.90
7.4.330.0000.00513.02
7.4.320.0000.00616.66
7.4.300.0060.00016.54
7.4.290.0000.00716.61
7.4.280.0030.00616.48
7.4.270.0050.00216.64
7.4.260.0070.00013.27
7.4.250.0040.00416.59
7.4.240.0000.00716.62
7.4.230.0070.00016.50
7.4.220.0130.00616.57
7.4.210.0060.01116.55
7.4.200.0070.00016.52
7.4.190.0070.00016.47
7.4.160.0040.01216.61
7.4.150.0110.01116.44
7.4.140.0120.00616.47
7.4.130.0060.01316.47
7.4.120.0080.00916.56
7.4.110.0070.01016.42
7.4.100.0090.00916.59
7.4.90.0060.00916.45
7.4.80.0100.00716.41
7.4.70.0140.00716.64
7.4.60.0120.00916.59
7.4.50.0030.00516.61
7.4.40.0040.00716.65
7.4.30.0070.00916.64
7.4.00.0000.01115.12
7.3.330.0030.00313.46
7.3.320.0050.00013.39
7.3.310.0000.00716.28
7.3.300.0000.00716.35
7.3.290.0000.01416.36
7.3.280.0070.00816.35
7.3.270.0030.01516.47
7.3.260.0100.01016.44
7.3.250.0070.01316.45
7.3.240.0150.00316.60
7.3.230.0060.01016.57
7.3.210.0130.00316.29
7.3.200.0100.01219.39
7.3.190.0110.00816.29
7.3.180.0070.01016.48
7.3.170.0100.00716.61
7.3.160.0130.00316.51
7.3.120.0000.00814.83
7.2.330.0100.00716.80
7.2.320.0060.01216.36
7.2.310.0150.00816.57
7.2.300.0060.01016.60
7.2.290.0060.01116.53
7.2.00.0000.01019.51
7.1.200.0030.01015.60
7.1.100.0190.01316.29
7.1.70.0030.00517.26
7.1.60.0100.01419.40
7.1.50.0040.01816.76
7.1.00.0030.03322.28
7.0.200.0050.00216.98
7.0.140.0030.07321.93
7.0.120.0000.06722.03
7.0.60.0100.07719.82
7.0.50.0030.04317.86
7.0.40.0070.07320.20
7.0.30.0230.04320.30
7.0.20.0370.06320.30
7.0.10.0270.06720.30
7.0.00.0070.06020.07
5.6.280.0070.07021.05
5.6.210.0000.09020.47
5.6.200.0070.08318.20
5.6.190.0030.05320.50
5.6.180.4130.04720.48
5.6.170.0200.04320.61
5.6.160.0070.04720.66
5.6.150.0100.05318.19
5.6.140.0130.07718.28
5.6.130.0070.05318.19
5.6.120.0070.09021.02
5.6.110.0170.08020.99
5.6.100.0070.08321.09
5.6.90.0070.08721.03
5.6.80.0030.03720.44
5.6.70.4000.02720.38
5.5.350.0230.07320.39
5.5.340.0100.07018.02
5.5.330.0070.06720.27
5.5.320.0370.08020.30
5.5.310.0170.05020.41
5.5.300.0130.07017.96
5.5.290.0130.03018.04
5.5.280.0000.05720.73
5.5.270.0030.04020.68
5.5.260.0100.08020.68
5.5.250.0100.08320.61
5.5.240.0170.07320.13
5.4.450.0070.05319.33
5.4.440.0070.04019.56
5.4.430.0000.08719.64
5.4.420.0070.06319.32
5.4.410.0030.08019.35
5.4.400.0030.08319.24
5.4.390.0130.07018.92
5.4.380.0030.04318.86
5.4.370.0130.06019.02
5.4.360.0070.06719.25
5.4.350.0030.04719.21
5.4.340.0070.04719.14
5.4.320.0070.07718.87
5.4.310.0100.06718.87
5.4.300.0070.07018.87
5.4.290.0070.08018.86
5.4.280.0170.06718.97
5.4.270.0030.08318.87
5.4.260.0170.06719.14
5.4.250.0030.06719.14
5.4.240.0100.06318.84
5.4.230.0070.07718.84
5.4.220.0130.05719.14
5.4.210.0030.08318.97
5.4.200.0030.07319.14
5.4.190.0030.04019.23
5.4.180.0170.06718.98
5.4.170.0100.06718.96
5.4.160.0100.06319.24
5.4.150.0100.07319.05
5.4.140.0170.05716.60
5.4.130.0070.05316.35
5.4.120.0230.05716.31
5.4.110.0070.06016.44
5.4.100.0100.06016.50
5.4.90.0030.06316.59
5.4.80.0030.07316.46
5.4.70.0170.04316.42
5.4.60.0070.07716.65
5.4.50.0130.06716.39
5.4.40.0070.07316.40
5.4.30.0070.06316.38
5.4.20.0000.05716.34
5.4.10.0130.06316.38
5.4.00.0070.07715.80
5.3.290.0100.04314.71
5.3.280.0000.04714.61
5.3.270.0000.07014.69
5.3.260.0000.05314.62
5.3.250.0070.05314.61
5.3.240.0030.07314.61
5.3.230.0100.07314.63
5.3.220.0030.05314.73
5.3.210.0070.04314.58
5.3.200.0030.08314.57
5.3.190.0070.04314.72
5.3.180.0070.07714.73
5.3.170.0100.06014.72
5.3.160.0070.07314.46
5.3.150.0070.04314.73
5.3.140.0030.07014.72
5.3.130.0100.07714.53
5.3.120.0130.07314.58
5.3.110.0030.07314.61
5.3.100.0070.07314.09
5.3.90.0030.08014.02
5.3.80.0100.06314.00
5.3.70.0130.03714.05
5.3.60.0070.06314.02
5.3.50.0100.06314.01
5.3.40.0030.05013.92
5.3.30.0170.04713.88
5.3.20.0030.07313.70
5.3.10.0100.04313.58
5.3.00.0100.07013.67
5.2.170.0030.04011.13
5.2.160.0000.06311.08
5.2.150.0000.04011.11
5.2.140.0030.05711.04
5.2.130.0200.03011.27
5.2.120.0070.05711.26
5.2.110.0070.03011.27
5.2.100.0130.05711.11
5.2.90.0030.06011.12
5.2.80.0030.06011.16
5.2.70.0070.06311.25
5.2.60.0030.05711.02
5.2.50.0000.06311.04
5.2.40.0070.06010.92
5.2.30.0070.05010.95
5.2.20.0000.06310.93
5.2.10.0070.03310.86
5.2.00.0100.04010.68
5.1.60.0030.02710.07
5.1.50.0070.0539.96
5.1.40.0030.05710.13
5.1.30.0100.04710.40
5.1.20.0000.06310.37
5.1.10.0000.05710.03
5.1.00.0100.0509.99
5.0.50.0000.0408.53
5.0.40.0030.0438.43
5.0.30.0070.0408.25
5.0.20.0000.0278.36
5.0.10.0000.0378.25
5.0.00.0070.0438.23
4.4.90.0030.0238.00
4.4.80.0100.0308.00
4.4.70.0070.0338.00
4.4.60.0000.0308.00
4.4.50.0000.0308.00
4.4.40.0030.0538.00
4.4.30.0030.0208.00
4.4.20.0030.0208.00
4.4.10.0070.0308.00
4.4.00.0000.0578.00
4.3.110.0030.0308.00
4.3.100.0070.0108.00
4.3.90.0070.0338.00
4.3.80.0070.0508.00
4.3.70.0070.0308.00
4.3.60.0030.0378.00
4.3.50.0000.0408.00
4.3.40.0000.0508.00
4.3.30.0000.0378.00
4.3.20.0030.0338.00
4.3.10.0000.0308.00
4.3.00.0000.0378.00

preferences:
50.64 ms | 400 KiB | 5 Q