3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo implements \ArrayAccess { private $array_access = ['array_access'], $brace_access = ['brace_access']; public function __get ($offset) { return $this->brace_access[$offset]; } public function offsetGet ( $offset ) { return $this->array_access[$offset]; } public function offsetExists ( $offset ) {} public function offsetSet ( $offset , $value ) {} public function offsetUnset ( $offset ) {} } $foo = new Foo; echo $foo{0}; echo $foo[0];

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.0100.00316.59
8.3.50.0110.00521.96
8.3.40.0070.00718.67
8.3.30.0070.01018.84
8.3.20.0040.00420.09
8.3.10.0030.00623.36
8.3.00.0080.00020.75
8.2.180.0100.01016.63
8.2.170.0090.00622.96
8.2.160.0120.00420.35
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00422.30
8.2.110.0060.00322.30
8.2.100.0110.00017.78
8.2.90.0000.00718.95
8.2.80.0000.00817.97
8.2.70.0000.00817.13
8.2.60.0060.00317.80
8.2.50.0060.00318.07
8.2.40.0070.00018.16
8.2.30.0030.00917.93
8.2.20.0070.00017.40
8.2.10.0080.00017.56
8.2.00.0000.00817.60
8.1.280.0110.01125.92
8.1.270.0000.00822.18
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00023.73
8.1.230.0040.00719.14
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0040.00817.23
8.1.190.0060.00317.28
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0040.00421.96
8.1.150.0040.00418.51
8.1.140.0040.00417.23
8.1.130.0050.00217.75
8.1.120.0090.00017.35
8.1.110.0060.00317.34
8.1.100.0000.00717.31
8.1.90.0000.00717.31
8.1.80.0070.00417.38
8.1.70.0030.00317.22
8.1.60.0000.00817.45
8.1.50.0040.00417.44
8.1.40.0040.00417.31
8.1.30.0040.00417.48
8.1.20.0000.00817.45
8.1.10.0000.00717.41
8.1.00.0050.00217.33
8.0.300.0070.00018.77
8.0.290.0040.00416.93
8.0.280.0030.00318.31
8.0.270.0000.00717.17
8.0.260.0000.00616.75
8.0.250.0000.00616.88
8.0.240.0000.00716.90
8.0.230.0060.00316.86
8.0.220.0000.00616.70
8.0.210.0070.00016.90
8.0.200.0000.00616.92
8.0.190.0030.00516.75
8.0.180.0040.00416.80
8.0.170.0040.00416.90
8.0.160.0040.00416.78
8.0.150.0030.00316.88
8.0.140.0040.00416.68
8.0.130.0030.00313.22
8.0.120.0050.00316.81
8.0.110.0040.00316.71
8.0.100.0050.00216.86
8.0.90.0030.00516.82
8.0.80.0090.01316.71
8.0.70.0040.00316.76
8.0.60.0040.00416.71
8.0.50.0070.00016.63
8.0.30.0130.00916.99
8.0.20.0090.01117.40
8.0.10.0000.00716.76
8.0.00.0140.00516.49
7.4.330.0050.00015.11
7.4.320.0000.00716.65
7.4.300.0000.00716.51
7.4.290.0070.00016.40
7.4.280.0030.00316.40
7.4.270.0030.00316.55
7.4.260.0000.00716.48
7.4.250.0040.00416.55
7.4.240.0020.00516.60
7.4.230.0070.00016.38
7.4.220.0070.01816.50
7.4.210.0050.01116.56
7.4.200.0030.00316.61
7.4.190.0000.00716.76
7.4.160.0130.00716.52
7.4.150.0180.00317.40
7.4.140.0060.01217.86
7.4.130.0060.01016.53
7.4.120.0060.01116.60
7.4.110.0160.00316.53
7.4.100.0100.01316.68
7.4.90.0100.00716.46
7.4.80.0110.00719.39
7.4.70.0160.00016.41
7.4.60.0100.01016.54
7.4.50.0000.00416.45
7.4.40.0070.01022.77
7.4.30.0110.00616.51
7.4.00.0060.00614.99
7.3.330.0000.00513.28
7.3.320.0050.00013.25
7.3.310.0040.00416.20
7.3.300.0000.00816.32
7.3.290.0070.00716.32
7.3.280.0120.00616.28
7.3.270.0170.00317.40
7.3.260.0140.00316.46
7.3.250.0110.01016.41
7.3.240.0120.00816.22
7.3.230.0120.00616.39
7.3.210.0160.00316.39
7.3.200.0190.00619.39
7.3.190.0090.01216.36
7.3.180.0120.00916.23
7.3.170.0070.01316.36
7.3.160.0120.00816.32
7.3.120.0100.00314.89
7.3.10.0050.00916.72
7.3.00.0050.00916.46
7.2.330.0080.00816.45
7.2.320.0150.00616.75
7.2.310.0060.01716.40
7.2.300.0170.00016.75
7.2.290.0110.00516.81
7.2.130.0060.00716.82
7.2.120.0030.01216.88
7.2.110.0080.00716.77
7.2.100.0070.00816.75
7.2.90.0120.00116.77
7.2.80.0070.00716.81
7.2.70.0030.01116.74
7.2.60.0030.01017.02
7.2.50.0030.01016.79
7.2.40.0060.00916.90
7.2.30.0070.00716.81
7.2.20.0060.00816.83
7.2.10.0080.00416.89
7.2.00.0060.00817.70
7.1.250.0030.01015.50
7.1.100.0000.01417.84
7.1.70.0000.00717.05
7.1.60.0070.01719.29
7.1.50.0210.00416.91
7.1.00.0070.07322.37
7.0.200.0030.00516.80
7.0.140.0030.07321.93
7.0.60.0070.06319.87
7.0.50.0170.07017.96
7.0.40.0070.04320.02
7.0.30.0230.04020.16
7.0.20.0230.06020.13
7.0.10.0300.06720.12
7.0.00.0100.06020.10
5.6.280.0100.08321.10
5.6.210.0000.04720.50
5.6.200.0070.07318.19
5.6.190.0000.05720.52
5.6.180.0030.04020.46
5.6.170.0200.07020.55
5.6.160.0070.05720.50
5.6.150.0130.05018.19
5.6.140.0130.03018.22
5.6.130.0070.05018.14
5.6.120.0070.07020.99
5.6.110.0170.06721.05
5.6.100.0070.07321.13
5.6.90.0100.07320.97
5.6.80.0070.06020.41
5.6.70.0200.03020.50
5.5.350.0000.08720.47
5.5.340.0100.07717.95
5.5.330.0030.05320.38
5.5.320.0070.03720.35
5.5.310.0370.05020.23
5.5.300.0100.04717.97
5.5.290.0100.07717.99
5.5.280.0030.04020.86
5.5.270.0030.04320.88
5.5.260.0170.07020.84
5.5.250.0100.04020.71
5.5.240.0230.05720.08
5.4.450.0830.05319.48
5.4.440.0930.06719.40
5.4.430.0200.04719.60
5.4.420.0930.07019.44
5.4.410.0130.05319.31
5.4.400.0800.05019.14
5.4.390.0800.06718.89
5.4.380.0200.05718.63
5.4.370.0200.06018.62
5.4.360.0400.05018.78
5.4.350.0430.04318.75
5.4.340.0330.05718.51
5.4.320.0060.03812.50
5.4.310.0090.03912.50
5.4.300.0060.03612.50
5.4.290.0050.03812.50
5.4.280.0050.03712.40
5.4.270.0090.03612.38
5.4.260.0050.03912.38
5.4.250.0070.03612.38
5.4.240.0040.03812.38
5.4.230.0070.03912.37
5.4.220.0040.04012.37
5.4.210.0020.03812.37
5.4.200.0060.03712.38
5.4.190.0060.03712.36
5.4.180.0070.03512.37
5.4.170.0050.03612.38
5.4.160.0050.03612.37
5.4.150.0030.03712.37
5.4.140.0100.03212.05
5.4.130.0040.04812.04
5.4.120.0100.04612.00
5.4.110.0070.03411.99
5.4.100.0060.03511.99
5.4.90.0050.03711.99
5.4.80.0030.03911.99
5.4.70.0070.03911.99
5.4.60.0080.03311.99
5.4.50.0040.03811.99
5.4.40.0070.03311.98
5.4.30.0050.03711.97
5.4.20.0090.03711.98
5.4.10.0070.04911.97
5.4.00.0060.03811.46
5.3.290.0040.04012.80
5.3.280.0060.03712.71
5.3.270.0040.04012.72
5.3.260.0050.04012.72
5.3.250.0050.03912.72
5.3.240.0030.04012.71
5.3.230.0050.03812.70
5.3.220.0040.03712.68
5.3.210.0060.03812.68
5.3.200.0030.03812.68
5.3.190.0050.03712.68
5.3.180.0040.03612.67
5.3.170.0050.03612.67
5.3.160.0070.03512.67
5.3.150.0050.03712.67
5.3.140.0070.03512.66
5.3.130.0060.03812.66
5.3.120.0040.03912.66
5.3.110.0060.03712.66
5.3.100.0070.03612.12
5.3.90.0050.03712.09
5.3.80.0060.03512.07
5.3.70.0030.03912.08
5.3.60.0070.03512.06
5.3.50.0090.04212.00
5.3.40.0050.03812.00
5.3.30.0030.03811.96
5.3.20.0040.05111.74
5.3.10.0080.03111.70
5.3.00.0070.03811.69
5.2.170.0070.0419.18
5.2.160.0050.0369.18
5.2.150.0070.0339.18
5.2.140.0010.0339.17
5.2.130.0030.0299.14
5.2.120.0050.0289.14
5.2.110.0040.0319.14
5.2.100.0070.0269.15
5.2.90.0040.0309.14
5.2.80.0060.0339.14
5.2.70.0040.0309.13
5.2.60.0050.0299.08
5.2.50.0050.0299.06
5.2.40.0060.0279.03
5.2.30.0050.0319.01
5.2.20.0070.0269.00
5.2.10.0040.0298.91
5.2.00.0060.0268.77
5.1.60.0040.0238.05
5.1.50.0010.0318.04
5.1.40.0040.0238.04
5.1.30.0020.0278.37
5.1.20.0050.0248.41
5.1.10.0070.0298.13
5.1.00.0030.0268.12
5.0.50.0060.0176.61
5.0.40.0030.0196.46
5.0.30.0030.0316.28
5.0.20.0030.0206.24
5.0.10.0060.0196.22
5.0.00.0050.0306.21
4.4.90.0010.0174.78
4.4.80.0030.0154.75
4.4.70.0020.0164.76
4.4.60.0000.0184.75
4.4.50.0030.0154.77
4.4.40.0040.0244.71
4.4.30.0010.0174.76
4.4.20.0050.0144.85
4.4.10.0010.0184.85
4.4.00.0040.0244.76
4.3.110.0020.0174.67
4.3.100.0040.0144.66
4.3.90.0020.0164.63
4.3.80.0070.0204.58
4.3.70.0020.0154.63
4.3.60.0040.0134.63
4.3.50.0010.0174.63
4.3.40.0010.0264.54
4.3.30.0030.0163.28
4.3.20.0030.0163.26
4.3.10.0020.0163.23
4.3.00.0000.01713.14

preferences:
40.83 ms | 401 KiB | 5 Q