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->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.0060.00918.56
8.3.50.0140.00521.99
8.3.40.0110.00318.92
8.3.30.0090.00918.68
8.3.20.0080.00018.75
8.3.10.0050.00320.95
8.3.00.0060.00321.89
8.2.180.0090.00616.48
8.2.170.0160.00322.96
8.2.160.0070.00720.47
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00819.39
8.2.110.0110.01121.04
8.2.100.0080.00317.91
8.2.90.0070.00417.75
8.2.80.0040.00417.97
8.2.70.0000.00817.93
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0000.00922.32
8.2.30.0070.00019.32
8.2.20.0040.00417.63
8.2.10.0050.00317.81
8.2.00.0090.00017.71
8.1.280.0150.00425.92
8.1.270.0110.00723.99
8.1.260.0170.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00320.94
8.1.230.0110.00020.97
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0000.00917.25
8.1.180.0050.00318.10
8.1.170.0030.00618.53
8.1.160.0080.00318.75
8.1.150.0070.00018.59
8.1.140.0000.00717.45
8.1.130.0000.00817.92
8.1.120.0000.00817.45
8.1.110.0040.00417.39
8.1.100.0040.00417.54
8.1.90.0080.00017.50
8.1.80.0070.00017.38
8.1.70.0030.00317.39
8.1.60.0000.00817.60
8.1.50.0000.00817.48
8.1.40.0000.00817.40
8.1.30.0040.00417.54
8.1.20.0030.00517.52
8.1.10.0000.00717.49
8.1.00.0000.00817.41
8.0.300.0000.00719.98
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0050.00317.32
8.0.260.0060.00316.74
8.0.250.0040.00416.80
8.0.240.0030.00817.00
8.0.230.0070.00016.85
8.0.220.0030.00316.81
8.0.210.0000.00716.79
8.0.200.0030.00316.98
8.0.190.0000.00716.86
8.0.180.0030.00516.89
8.0.170.0000.00716.96
8.0.160.0000.00716.90
8.0.150.0070.00016.89
8.0.140.0050.00316.89
8.0.130.0000.00513.37
8.0.120.0000.00816.92
8.0.110.0000.00716.95
8.0.100.0040.00416.83
8.0.90.0040.00416.84
8.0.80.0120.00316.90
8.0.70.0000.00816.70
8.0.60.0040.00416.80
8.0.50.0040.00416.84
8.0.30.0150.00717.27
8.0.20.0130.00917.40
8.0.10.0030.00516.84
8.0.00.0130.00816.79
7.4.330.0050.00016.76
7.4.320.0000.00716.50
7.4.300.0060.00016.41
7.4.290.0000.00916.42
7.4.280.0070.00016.47
7.4.270.0060.00016.60
7.4.260.0000.00513.28
7.4.250.0040.00416.57
7.4.240.0000.00716.41
7.4.230.0040.00416.61
7.4.220.0070.01016.59
7.4.210.0090.00716.56
7.4.200.0070.00016.62
7.4.190.0030.00316.60
7.4.160.0130.01016.60
7.4.150.0100.00717.40
7.4.140.0080.00917.86
7.4.130.0040.01216.59
7.4.120.0070.00916.51
7.4.110.0070.01016.56
7.4.100.0030.01416.45
7.4.90.0130.01016.43
7.4.80.0070.01019.39
7.4.70.0070.01116.45
7.4.60.0060.01016.51
7.4.50.0060.00316.37
7.4.40.0070.01022.77
7.4.30.0100.00716.55
7.4.00.0040.00715.00
7.3.330.0060.00013.39
7.3.320.0000.00713.25
7.3.310.0050.00316.24
7.3.300.0000.00716.39
7.3.290.0070.00716.40
7.3.280.0090.00616.37
7.3.270.0080.00817.40
7.3.260.0050.01318.24
7.3.250.0140.00216.42
7.3.240.0040.01116.29
7.3.230.0120.00316.54
7.3.210.0040.01216.61
7.3.200.0090.01419.39
7.3.190.0090.00916.27
7.3.180.0090.00616.74
7.3.170.0140.00716.50
7.3.160.0090.01316.38
7.3.120.0070.00614.84
7.3.10.0060.00616.54
7.3.00.0000.01316.64
7.2.330.0190.00616.46
7.2.320.0100.00716.43
7.2.310.0060.01616.74
7.2.300.0120.00816.55
7.2.290.0030.02116.43
7.2.130.0060.00616.75
7.2.120.0140.00016.78
7.2.110.0090.00617.09
7.2.100.0090.00616.84
7.2.90.0070.00716.96
7.2.80.0090.00616.82
7.2.70.0090.00616.63
7.2.60.0070.00716.71
7.2.50.0040.01216.80
7.2.40.0000.01316.88
7.2.30.0080.00417.03
7.2.20.0090.00317.12
7.2.10.0040.01116.64
7.2.00.0080.00718.38
7.1.250.0100.00015.69
7.1.100.0040.01417.94
7.1.70.0030.00617.09
7.1.60.0090.01519.40
7.1.50.0070.00716.93
7.1.00.0030.03722.32
7.0.200.0040.00416.73
7.0.140.0070.07021.97
7.0.110.0170.03320.05
7.0.100.0100.03720.00
7.0.90.0100.03320.07
7.0.80.0070.04320.06
7.0.70.0100.07020.04
7.0.60.0130.07319.87
7.0.50.0030.08019.93
7.0.40.0030.08319.85
7.0.30.0100.06319.79
7.0.20.0100.08319.69
7.0.10.0100.07719.71
7.0.00.0030.08319.80
5.6.280.0070.07021.12
5.6.260.0030.04020.72
5.6.250.0130.03320.61
5.6.240.0070.03320.70
5.6.230.0030.04020.56
5.6.220.0030.08720.65
5.6.210.0030.08320.60
5.6.200.0100.07720.71
5.6.190.0000.09020.66
5.6.180.0070.08020.57
5.6.170.0000.06020.48
5.6.160.0030.08720.68
5.6.150.0070.08320.45
5.6.140.0030.08720.62
5.6.130.0130.07020.59
5.6.120.0070.07720.47
5.6.110.0070.08020.65
5.6.100.0100.08320.54
5.6.90.0070.07720.57
5.6.80.0130.07320.04
5.6.70.0070.08019.99
5.6.60.0100.07720.04
5.6.50.0070.07319.95
5.6.40.0030.08020.00
5.6.30.0030.07719.84
5.6.20.0070.04319.95
5.6.10.0130.06719.95
5.6.00.0030.07320.21
5.5.380.0000.04317.57
5.5.370.0070.03717.59
5.5.360.0100.07717.58
5.5.350.0070.08017.75
5.5.340.0030.08018.22
5.5.330.0130.07017.91
5.5.320.0070.07718.08
5.5.310.0100.08018.09
5.5.300.0030.08017.87
5.5.290.0030.04318.06
5.5.280.0100.07317.91
5.5.270.0070.08018.26
5.5.260.0070.08018.07
5.5.250.0100.07318.05
5.5.240.0100.07317.61
5.5.230.0000.06017.29
5.5.220.0000.08017.30
5.5.210.0100.06717.48
5.5.200.0170.05717.45
5.5.190.0070.07717.40
5.5.180.0100.07317.50
5.5.160.0130.05317.29
5.5.150.0100.07717.57
5.5.140.0070.07317.57
5.5.130.0070.07717.47
5.5.120.0070.07317.43
5.5.110.0070.08017.27
5.5.100.0070.07317.35
5.5.90.0000.08017.34
5.5.80.0100.07017.37
5.5.70.0170.04717.46
5.5.60.0100.07317.07
5.5.50.0100.07017.49
5.5.40.0030.07717.16
5.5.30.0200.06017.36
5.5.20.0130.07317.14
5.5.10.0030.04717.36
5.5.00.0130.05717.36
5.4.450.0000.07719.57
5.4.440.0070.06019.36
5.4.430.0070.08719.55
5.4.420.0030.06319.33
5.4.410.0100.07019.51
5.4.400.0200.06319.20
5.4.390.0100.07018.99
5.4.380.0070.06319.18
5.4.370.0070.07719.00
5.4.360.0030.08019.00
5.4.350.0100.07319.20
5.4.340.0030.08019.16
5.4.320.0030.07319.21
5.4.310.0200.06719.02
5.4.300.0170.06719.01
5.4.290.0030.07019.01
5.4.280.0130.07318.98
5.4.270.0070.07319.02
5.4.260.0070.07319.18
5.4.250.0100.08019.00
5.4.240.0030.07719.23
5.4.230.0070.07319.09
5.4.220.0100.07019.32
5.4.210.0100.07318.96
5.4.200.0130.06718.98
5.4.190.0100.07019.02
5.4.180.0070.07318.98
5.4.170.0070.04018.97
5.4.160.0100.03719.11
5.4.150.0100.06318.99
5.4.140.0030.06716.61
5.4.130.0030.05716.55
5.4.120.0070.07716.38
5.4.110.0100.07716.62
5.4.100.0030.07716.63
5.4.90.0070.07016.37
5.4.80.0100.07016.61
5.4.70.0100.06716.44
5.4.60.0130.05016.53
5.4.50.0070.07016.39
5.4.40.0070.03716.29
5.4.30.0000.04016.39
5.4.20.0030.06316.43
5.4.10.0070.06716.55
5.4.00.0030.06315.93
5.3.290.0130.07014.68
5.3.280.0170.06714.75
5.3.270.0070.07714.75
5.3.260.0070.06314.74
5.3.250.0070.03714.64
5.3.240.0000.08014.84
5.3.230.0200.06314.65
5.3.220.0030.08014.57
5.3.210.0070.07714.70
5.3.200.0130.07014.59
5.3.190.0070.07014.54
5.3.180.0070.07314.59
5.3.170.0100.07014.58
5.3.160.0070.07714.56
5.3.150.0100.06014.57
5.3.140.0070.06714.54
5.3.130.0030.06014.56
5.3.120.0070.04014.63
5.3.110.0000.04314.57
5.3.100.0070.07314.09
5.3.90.0070.03714.16
5.3.80.0070.07714.08
5.3.70.0100.05314.15
5.3.60.0070.07714.09
5.3.50.0030.07714.04
5.3.40.0100.06314.18
5.3.30.0030.07313.92
5.3.20.0100.06713.66
5.3.10.0130.05713.70
5.3.00.0100.06713.64
5.2.170.0030.06011.16
5.2.160.0030.03711.15
5.2.150.0000.06311.24
5.2.140.0070.04711.23
5.2.130.0030.06011.18
5.2.120.0070.06010.97
5.2.110.0030.06711.21
5.2.100.0000.07011.12
5.2.90.0100.05311.11
5.2.80.0000.07310.96
5.2.70.0070.06311.08
5.2.60.0030.05711.12
5.2.50.0130.05011.02
5.2.40.0030.06010.99
5.2.30.0030.05711.06
5.2.20.0030.06311.20
5.2.10.0070.02710.83
5.2.00.0100.05710.69
5.1.60.0000.04010.36
5.1.50.0070.03310.36
5.1.40.0030.03010.36
5.1.30.0000.02710.36
5.1.20.0030.02710.42
5.1.10.0000.03310.36
5.1.00.0030.03710.36
5.0.50.0070.03710.36
5.0.40.0070.03710.36
5.0.30.0030.06310.36
5.0.20.0030.03310.36
5.0.10.0100.03310.36
5.0.00.0070.05710.36
4.4.90.0070.03010.36
4.4.80.0000.03710.36
4.4.70.0030.03310.36
4.4.60.0070.03010.36
4.4.50.0000.04310.36
4.4.40.0030.02710.36
4.4.30.0000.03010.36
4.4.20.0000.03710.36
4.4.10.0000.02310.36
4.4.00.0000.04710.36
4.3.110.0000.01710.36
4.3.100.0030.03010.36
4.3.90.0000.03710.36
4.3.80.0030.05310.36
4.3.70.0000.03310.36
4.3.60.0030.03310.36
4.3.50.0070.02310.36
4.3.40.0000.04310.36
4.3.30.0000.03710.36
4.3.20.0000.02010.36
4.3.10.0000.03710.36
4.3.00.0000.04010.36

preferences:
49.7 ms | 401 KiB | 5 Q