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; $this->aa->out = $this->aa; } } $di = new Di(); $di->aa->in->in->out->out->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.0090.00918.56
8.3.50.0110.00721.99
8.3.40.0150.00318.84
8.3.30.0110.00319.04
8.3.20.0040.00420.38
8.3.10.0080.00021.96
8.3.00.0000.00822.50
8.2.180.0150.00616.63
8.2.170.0070.00722.96
8.2.160.0090.00619.13
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0070.00726.16
8.2.120.0060.00319.26
8.2.110.0100.00022.16
8.2.100.0090.00319.64
8.2.90.0000.00719.05
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0050.00317.93
8.2.50.0060.00318.07
8.2.40.0030.00918.28
8.2.30.0040.00418.10
8.2.20.0030.00617.55
8.2.10.0000.00817.80
8.2.00.0080.00017.75
8.1.280.0110.00425.92
8.1.270.0080.00022.07
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.68
8.1.230.0080.00318.92
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0110.00017.35
8.1.190.0000.00817.64
8.1.180.0040.00418.71
8.1.170.0030.00618.64
8.1.160.0000.00722.15
8.1.150.0000.00818.65
8.1.140.0040.00417.46
8.1.130.0040.00417.83
8.1.120.0030.00417.36
8.1.110.0060.00317.44
8.1.100.0040.00417.32
8.1.90.0040.00417.43
8.1.80.0000.00717.37
8.1.70.0070.00017.37
8.1.60.0000.00917.48
8.1.50.0040.00417.53
8.1.40.0000.00817.43
8.1.30.0040.00417.54
8.1.20.0040.00417.52
8.1.10.0040.00417.57
8.1.00.0080.00317.50
8.0.300.0040.00418.77
8.0.290.0040.00417.16
8.0.280.0000.00818.45
8.0.270.0030.00317.14
8.0.260.0070.00016.74
8.0.250.0000.00816.94
8.0.240.0050.00216.85
8.0.230.0070.00017.02
8.0.220.0000.00716.89
8.0.210.0070.00016.85
8.0.200.0040.00416.88
8.0.190.0000.00816.96
8.0.180.0040.00416.88
8.0.170.0000.00816.86
8.0.160.0040.00416.86
8.0.150.0000.00716.81
8.0.140.0000.00716.91
8.0.130.0030.00313.29
8.0.120.0080.00016.83
8.0.110.0040.00416.89
8.0.100.0000.00716.82
8.0.90.0000.00716.98
8.0.80.0030.01216.96
8.0.70.0040.00416.93
8.0.60.0050.00216.89
8.0.50.0030.00516.84
8.0.30.0150.00517.23
8.0.20.0110.00817.40
8.0.10.0040.00416.91
8.0.00.0070.01116.75
7.4.330.0000.00515.00
7.4.320.0030.00316.59
7.4.300.0000.00616.51
7.4.290.0040.00416.52
7.4.280.0000.00716.42
7.4.270.0030.00316.62
7.4.260.0000.00716.55
7.4.250.0020.00516.48
7.4.240.0060.00216.51
7.4.230.0030.00316.41
7.4.220.0060.01316.45
7.4.210.0060.00816.54
7.4.200.0030.00316.63
7.4.190.0000.00716.67
7.4.160.0100.00616.39
7.4.150.0070.01117.40
7.4.140.0050.01417.86
7.4.130.0070.01016.47
7.4.120.0060.01016.55
7.4.110.0070.01016.57
7.4.100.0120.00616.47
7.4.90.0090.01216.48
7.4.80.0090.00919.39
7.4.70.0170.00716.52
7.4.60.0090.00816.54
7.4.50.0000.00816.67
7.4.40.0060.00922.77
7.4.30.0100.00916.64
7.4.00.0090.00614.81
7.3.330.0020.00213.23
7.3.320.0000.00513.14
7.3.310.0000.00716.39
7.3.300.0030.00316.44
7.3.290.0070.00716.42
7.3.280.0080.00816.37
7.3.270.0170.00717.40
7.3.260.0080.00816.43
7.3.250.0140.00516.62
7.3.240.0150.00016.39
7.3.230.0060.01016.39
7.3.210.0140.00416.57
7.3.200.0030.01619.39
7.3.190.0070.01016.44
7.3.180.0130.00316.63
7.3.170.0100.00616.60
7.3.160.0030.01216.47
7.3.120.0070.00314.61
7.2.330.0110.00816.81
7.2.320.0040.00716.45
7.2.310.0090.01516.73
7.2.300.0060.00916.71
7.2.290.0070.01016.76
7.2.00.0000.01719.27
7.1.100.0030.00918.18
7.1.70.0000.00716.81
7.1.60.0100.01019.82
7.1.50.0100.01016.98
7.1.00.0070.07022.35
7.0.200.0050.00316.68
7.0.140.0070.07022.15
7.0.100.0130.08719.99
7.0.90.0030.07719.89
7.0.80.0200.04720.13
7.0.70.0070.07319.97
7.0.60.0300.08020.06
7.0.50.0030.07020.16
7.0.40.0030.07020.18
7.0.30.0030.05019.94
7.0.20.0130.06020.12
7.0.10.0000.06319.99
7.0.00.0070.04020.09
5.6.280.0100.06720.79
5.6.250.0130.07320.73
5.6.240.0030.09020.68
5.6.230.0070.08720.49
5.6.220.0030.06320.67
5.6.210.0070.07320.52
5.6.200.0070.07321.06
5.6.190.0070.08720.94
5.6.180.0030.04721.04
5.6.170.0130.03321.02
5.6.160.0100.04020.96
5.6.150.0030.04321.07
5.6.140.0130.03321.08
5.6.130.0000.05320.94
5.6.120.0000.04721.02
5.6.110.0030.04321.00
5.6.100.0030.06721.16
5.6.90.0030.04721.15
5.6.80.0170.03720.42
5.6.70.0030.04020.46
5.6.60.0100.03320.39
5.6.50.0070.03720.47
5.6.40.0030.04020.53
5.6.30.0030.04020.47
5.6.20.0030.03320.29
5.6.10.0000.04320.32
5.6.00.0070.04020.35
5.5.380.0030.04320.35
5.5.370.0100.06720.44
5.5.360.0030.08720.34
5.5.350.0070.08720.43
5.5.340.0100.07320.78
5.5.330.0070.08320.80
5.5.320.0070.04020.91
5.5.310.0030.04320.89
5.5.300.0070.04320.75
5.5.290.0070.04020.78
5.5.280.0100.03320.89
5.5.270.0030.04320.86
5.5.260.0100.03720.79
5.5.250.0000.05320.57
5.5.240.0070.04320.19
5.5.230.0000.04720.11
5.5.220.0000.04320.16
5.5.210.0030.04020.21
5.5.200.0100.03720.13
5.5.190.0000.04320.24
5.5.180.0030.04020.18
5.5.160.0100.03320.08
5.5.150.0100.03720.26
5.5.140.0030.03720.25
5.5.130.0030.04020.19
5.5.120.0130.02720.21
5.5.110.0070.03020.11
5.5.100.0070.03320.14
5.5.90.0030.03319.98
5.5.80.0070.03720.11
5.5.70.0070.04720.12
5.5.60.0030.04320.07
5.5.50.0030.04320.11
5.5.40.0000.07719.96
5.5.30.0100.07320.09
5.5.20.0070.08020.05
5.5.10.0070.03320.13
5.5.00.0000.05720.11
5.4.450.0030.05719.38
5.4.440.0000.04319.36
5.4.430.0100.04719.44
5.4.420.0070.03719.55
5.4.410.0030.04719.07
5.4.400.0000.04019.14
5.4.390.0100.03018.95
5.4.380.0000.04019.03
5.4.370.0030.04019.13
5.4.360.0030.04319.03
5.4.350.0100.03318.90
5.4.340.0100.03018.87
5.4.320.0000.04019.14
5.4.310.0000.03719.04
5.4.300.0000.04319.02
5.4.290.0030.03319.16
5.4.280.0130.03019.12
5.4.270.0030.03319.04
5.4.260.0030.03319.13
5.4.250.0100.03319.22
5.4.240.0070.02718.84
5.4.230.0070.03319.04
5.4.220.0000.03319.13
5.4.210.0030.03319.09
5.4.200.0070.06319.02
5.4.190.0030.07719.19
5.4.180.0070.07719.08
5.4.170.0070.06318.86
5.4.160.0070.06719.01
5.4.150.0030.05319.11
5.4.140.0130.03016.47
5.4.130.0030.04716.48
5.4.120.0130.06316.51
5.4.110.0070.06316.44
5.4.100.0030.06316.44
5.4.90.0070.04016.44
5.4.80.0000.04716.43
5.4.70.0030.07316.47
5.4.60.0030.04016.40
5.4.50.0170.06316.24
5.4.40.0030.05016.45
5.4.30.0070.04016.29
5.4.20.0030.06716.36
5.4.10.0070.03316.46
5.4.00.0070.07315.86
5.3.290.0030.03714.70
5.3.280.0070.03014.66
5.3.270.0070.03314.59
5.3.260.0030.03714.73
5.3.250.0100.03014.62
5.3.240.0030.06014.72
5.3.230.0200.04314.63
5.3.220.0100.06314.56
5.3.210.0070.08014.70
5.3.200.0100.07014.54
5.3.190.0070.04014.63
5.3.180.0100.03714.55
5.3.170.0170.03314.55
5.3.160.0070.07014.63
5.3.150.0170.06714.54
5.3.140.0100.07014.57
5.3.130.0130.04314.52
5.3.120.0130.06714.54
5.3.110.0070.03714.60
5.3.100.0170.04714.11
5.3.90.0030.04714.12
5.3.80.0130.06713.91
5.3.70.0100.03713.91
5.3.60.0100.05714.07
5.3.50.0070.04013.86
5.3.40.0000.05713.97
5.3.30.0100.06713.85
5.3.20.0170.05713.63
5.3.10.0070.04713.77
5.3.00.0030.04313.69
5.2.170.0030.05711.23
5.2.160.0070.06011.23
5.2.150.0000.03711.25
5.2.140.0000.03711.26
5.2.130.0100.03311.13
5.2.120.0000.05311.20
5.2.110.0030.03011.16
5.2.100.0030.03311.02
5.2.90.0030.06311.01
5.2.80.0030.04710.96
5.2.70.0030.06711.11
5.2.60.0230.02310.99
5.2.50.0070.07711.16
5.2.40.0030.03310.95
5.2.30.0030.03310.89
5.2.20.0030.04311.05
5.2.10.0130.04310.92
5.2.00.0030.04710.69
5.1.60.0030.05710.69
5.1.50.0030.05010.69
5.1.40.0070.03710.69
5.1.30.0100.05310.69
5.1.20.0070.06010.69
5.1.10.0100.04010.69
5.1.00.0070.03010.69
5.0.50.0000.03710.69
5.0.40.0000.02310.69
5.0.30.0030.06310.69
5.0.20.0000.04710.69
5.0.10.0030.04710.69
5.0.00.0000.04710.69
4.4.90.0100.02310.69
4.4.80.0030.02710.69
4.4.70.0030.02710.69
4.4.60.0070.01310.69
4.4.50.0030.03310.69
4.4.40.0000.03310.69
4.4.30.0000.03710.69
4.4.20.0030.02710.69
4.4.10.0100.02310.69
4.4.00.0000.02710.69
4.3.110.0000.02710.69
4.3.100.0070.02310.69
4.3.90.0000.01710.69
4.3.80.0000.03310.69
4.3.70.0030.03010.69
4.3.60.0030.01310.69
4.3.50.0070.03310.69
4.3.40.0000.04010.69
4.3.30.0070.03010.69
4.3.20.0030.02010.69
4.3.10.0000.02010.69
4.3.00.0000.01710.69

preferences:
44.53 ms | 401 KiB | 5 Q