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->in->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.0070.00716.50
8.3.50.0240.00816.59
8.3.40.0040.01118.84
8.3.30.0110.00718.82
8.3.20.0040.00418.91
8.3.10.0040.00420.51
8.3.00.0090.00017.63
8.2.180.0070.01316.61
8.2.170.0040.01122.96
8.2.160.0140.00020.94
8.2.150.0070.01124.18
8.2.140.0060.01224.66
8.2.130.0080.00026.16
8.2.120.0000.00819.83
8.2.110.0100.00722.00
8.2.100.0080.00417.91
8.2.90.0100.00019.30
8.2.80.0000.00819.40
8.2.70.0050.00317.50
8.2.60.0000.01117.93
8.2.50.0090.00018.07
8.2.40.0110.00418.06
8.2.30.0020.00518.13
8.2.20.0030.00617.65
8.2.10.0000.00717.75
8.2.00.0030.00917.72
8.1.280.0070.01025.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0030.00628.09
8.1.240.0100.01023.92
8.1.230.0110.00020.92
8.1.220.0030.00617.74
8.1.210.0030.00519.03
8.1.200.0060.00317.48
8.1.190.0050.00317.53
8.1.180.0040.00418.10
8.1.170.0080.00418.66
8.1.160.0030.00518.95
8.1.150.0060.00318.59
8.1.140.0000.00817.46
8.1.130.0030.00317.81
8.1.120.0040.00417.49
8.1.110.0000.00717.49
8.1.100.0050.00317.40
8.1.90.0040.00417.43
8.1.80.0000.00717.39
8.1.70.0070.00017.44
8.1.60.0000.00817.55
8.1.50.0030.00517.47
8.1.40.0030.00617.42
8.1.30.0040.00417.59
8.1.20.0040.00417.58
8.1.10.0000.00717.56
8.1.00.0090.00017.57
8.0.300.0070.00020.09
8.0.290.0030.00616.88
8.0.280.0070.00018.46
8.0.270.0040.00417.27
8.0.260.0030.00316.88
8.0.250.0040.00416.91
8.0.240.0000.00816.91
8.0.230.0070.00016.86
8.0.220.0070.00016.95
8.0.210.0030.00317.00
8.0.200.0000.00717.01
8.0.190.0040.00316.96
8.0.180.0000.00716.87
8.0.170.0040.00416.98
8.0.160.0070.00016.95
8.0.150.0040.00416.88
8.0.140.0060.00617.01
8.0.130.0030.00313.41
8.0.120.0050.00216.93
8.0.110.0040.00416.84
8.0.100.0040.00417.01
8.0.90.0040.00416.85
8.0.80.0070.01416.92
8.0.70.0070.00016.82
8.0.60.0000.00716.75
8.0.50.0030.00616.82
8.0.30.0110.00916.90
8.0.20.0080.02617.16
8.0.10.0060.00316.95
8.0.00.0060.01816.81
7.4.330.0030.00312.98
7.4.320.0030.00716.63
7.4.300.0030.00316.52
7.4.290.0000.00716.51
7.4.280.0040.00416.63
7.4.270.0070.00016.54
7.4.260.0000.00513.28
7.4.250.0030.00716.53
7.4.240.0000.00716.55
7.4.230.0080.00016.66
7.4.220.0110.00716.45
7.4.210.0050.01016.63
7.4.200.0030.00316.63
7.4.190.0040.00416.41
7.4.160.0060.00916.64
7.4.150.0090.00916.66
7.4.140.0110.00916.37
7.4.130.0110.00516.46
7.4.120.0110.00616.52
7.4.110.0130.00416.41
7.4.100.0130.00316.55
7.4.90.0170.00716.40
7.4.80.0120.00619.39
7.4.70.0090.00916.59
7.4.60.0000.01616.49
7.4.50.0030.00616.63
7.4.40.0060.00916.50
7.4.30.0060.00916.65
7.4.00.0040.01315.02
7.3.330.0060.00013.20
7.3.320.0060.00013.34
7.3.310.0040.00416.26
7.3.300.0030.00316.24
7.3.290.0060.00916.38
7.3.280.0060.00816.36
7.3.270.0070.01016.28
7.3.260.0060.00916.30
7.3.250.0140.00816.35
7.3.240.0100.00716.44
7.3.230.0130.00916.38
7.3.210.0070.01016.39
7.3.200.0060.01016.52
7.3.190.0120.00916.31
7.3.180.0130.00316.52
7.3.170.0070.01416.37
7.3.160.0060.00916.39
7.3.120.0050.00814.81
7.3.110.0040.01414.93
7.3.100.0030.01014.98
7.3.90.0090.00314.95
7.3.80.0000.01614.64
7.3.70.0040.01414.84
7.3.60.0030.01014.70
7.3.50.0090.00614.75
7.3.40.0060.00314.77
7.3.30.0090.00314.66
7.3.20.0060.00316.48
7.3.10.0070.00716.64
7.3.00.0040.01116.82
7.2.330.0030.01516.86
7.2.320.0110.01116.72
7.2.310.0080.01616.69
7.2.300.0040.01316.64
7.2.290.0070.01016.50
7.2.250.0070.01315.25
7.2.240.0100.00715.31
7.2.230.0040.00414.83
7.2.220.0000.00815.20
7.2.210.0030.00714.94
7.2.200.0060.00315.31
7.2.190.0070.01314.90
7.2.180.0000.01315.06
7.2.170.0140.00314.83
7.2.60.0030.01417.17
7.2.00.0030.01319.54
7.1.330.0040.00716.00
7.1.320.0100.00315.42
7.1.310.0070.00716.00
7.1.300.0130.00615.60
7.1.290.0030.01015.91
7.1.280.0000.01115.80
7.1.270.0000.01215.79
7.1.260.0030.00915.89
7.1.200.0120.00315.79
7.1.100.0040.00718.11
7.1.70.0000.00817.21
7.1.60.0100.01619.40
7.1.50.0100.01317.11
7.1.00.0030.07322.34
7.0.200.0000.00716.34
7.0.140.0000.07322.18
7.0.120.0000.07722.13
7.0.60.0330.07019.82
7.0.50.0070.06717.89
7.0.40.0130.08320.09
7.0.30.0330.07720.24
7.0.20.0330.06720.26
7.0.10.0100.03720.20
7.0.00.0030.04720.07
5.6.280.0000.07720.91
5.6.210.0070.08320.51
5.6.200.0000.08018.13
5.6.190.0100.07720.61
5.6.180.0130.04320.41
5.6.170.0430.07020.43
5.6.160.0070.08720.54
5.6.150.0000.04018.23
5.6.140.0130.07318.18
5.6.130.0100.03318.18
5.6.120.0070.03721.10
5.6.110.0070.08721.05
5.6.100.0000.04321.02
5.6.90.0130.08021.00
5.6.80.0130.06020.41
5.5.350.0300.07320.44
5.5.340.0100.07717.95
5.5.330.0100.07720.41
5.5.320.0600.07020.30
5.5.310.0370.06720.37
5.5.300.0030.07318.07
5.5.290.0070.04017.98
5.5.280.0070.05020.88
5.5.270.0130.08320.87
5.5.260.0100.08320.88
5.5.250.0030.04020.69
5.5.240.0000.04320.29
5.4.450.4000.04319.45
5.4.440.0070.06019.45
5.4.430.1470.04319.31
5.4.420.3670.04319.29
5.4.410.4400.04019.13
5.4.400.4070.03718.94
5.4.390.4000.03719.11
5.4.380.4000.03719.07
5.4.370.4770.03019.20
5.4.360.4400.03719.21
5.4.350.4430.04319.04
5.4.340.3530.04018.99
5.4.320.4500.04019.04
5.4.310.4330.04019.21
5.4.300.3830.03719.21
5.4.290.3870.02319.22
5.4.280.3770.04019.21
5.4.270.3970.03718.98
5.4.260.3530.04019.04
5.4.250.4070.02719.16
5.4.240.3230.03719.16
5.4.230.2270.03719.00
5.4.220.3930.04019.14
5.4.210.3830.03319.22
5.4.200.3470.03019.22
5.4.190.3470.04019.10
5.4.180.3770.03019.21
5.4.170.3230.03319.22
5.4.160.0000.04719.22
5.4.150.0000.04018.92
5.4.140.4070.04016.50
5.4.130.3970.03016.45
5.4.120.4770.03316.55
5.4.110.4700.03316.68
5.4.100.4530.03316.57
5.4.90.4770.03016.27
5.4.80.4430.03716.56
5.4.70.4730.03316.51
5.4.60.4670.03716.30
5.4.50.0030.05716.60
5.4.40.4730.04016.61
5.4.30.4770.03316.43
5.4.20.4770.03016.30
5.4.10.4630.03716.30
5.4.00.4600.03715.91
5.3.290.4830.03014.71
5.3.280.3100.03314.59
5.3.270.3230.04014.64
5.3.260.0370.03714.67
5.3.250.1070.04014.54
5.3.240.4300.03714.66
5.3.230.4030.03014.75
5.3.220.4470.03314.60
5.3.210.4770.03314.63
5.3.200.4930.03014.46
5.3.190.4770.03714.57
5.3.180.4230.03714.73
5.3.170.4570.03714.56
5.3.160.2030.04314.48
5.3.150.0030.07714.64
5.3.140.0630.06314.62
5.3.130.4800.03714.63
5.3.120.4400.04314.56
5.3.110.4830.03714.61
5.3.100.3970.04014.07
5.3.90.4100.04314.03
5.3.80.4030.03314.06
5.3.70.4070.03714.03
5.3.60.3830.02313.95
5.3.50.3700.04013.98
5.3.40.4570.04014.11
5.3.30.4330.04013.96
5.3.20.4670.03713.77
5.3.10.4670.03013.66
5.3.00.4430.03313.72
5.2.170.3970.04311.21
5.2.160.3900.03311.19
5.2.150.4170.02011.13
5.2.140.4070.02711.11
5.2.130.4100.02311.07
5.2.120.4030.03311.27
5.2.110.3830.03311.18
5.2.100.3970.03711.11
5.2.90.3970.02711.09
5.2.80.3770.02711.02
5.2.70.3270.02711.11
5.2.60.3330.03011.05
5.2.50.3130.02711.05
5.2.40.2430.02711.16
5.2.30.2530.03010.87
5.2.20.2770.03310.93
5.2.10.2730.02710.92
5.2.00.2470.02710.78
5.1.60.2800.0239.99
5.1.50.2700.02310.16
5.1.40.2570.02310.05
5.1.30.2930.03010.27
5.1.20.2670.02710.36
5.1.10.2670.02710.04
5.1.00.2870.02310.07
5.0.50.1570.0278.63
5.0.40.1530.0238.32
5.0.30.1630.0408.28
5.0.20.1830.0208.23
5.0.10.1530.0238.16
5.0.00.1830.0308.21
4.4.90.1230.0175.93
4.4.80.1430.0235.78
4.4.70.1470.0205.81
4.4.60.1270.0175.84
4.4.50.1500.0135.93
4.4.40.1570.0275.82
4.4.30.1200.0175.81
4.4.20.1370.0135.86
4.4.10.1470.0135.85
4.4.00.1500.0275.91
4.3.110.1830.0105.70
4.3.100.1830.0135.80
4.3.90.1930.0175.69
4.3.80.1530.0205.75
4.3.70.1500.0135.79
4.3.60.1970.0175.79
4.3.50.1870.0135.79
4.3.40.1570.0275.73
4.3.30.1030.0204.57
4.3.20.0900.0174.47
4.3.10.1000.0174.47
4.3.00.0700.0234.47

preferences:
36.75 ms | 401 KiB | 5 Q