3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Thing extends ArrayObject { public function __construct(array $data) { parent::__construct($data, self::ARRAY_AS_PROPS); } public function offsetSet($index, $value) { parent::offsetSet($index, $value); return $this; } public function offsetGet($index) { if ($this->offsetExists($index)) { return parent::offsetGet($index); } return null; } } $thing = new Thing([]); $thing->dynamic['key'] = ['is-set' => 'up to 7.1.3']; var_dump($thing);

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.50
8.3.50.0140.00318.03
8.3.40.0090.00618.97
8.3.30.0030.01218.84
8.3.20.0000.00721.73
8.3.10.0000.00823.66
8.3.00.0040.00421.95
8.2.180.0150.00316.63
8.2.170.0000.01422.96
8.2.160.0070.00720.23
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00020.56
8.2.120.0030.00626.35
8.2.110.0050.00521.07
8.2.100.0030.00918.16
8.2.90.0000.00819.23
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0040.00417.63
8.2.50.0030.00617.63
8.2.40.0070.00020.42
8.2.30.0000.00719.34
8.2.20.0040.00418.19
8.2.10.0080.00018.10
8.2.00.0040.00418.18
8.1.280.0040.01225.92
8.1.270.0110.00820.56
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0000.01020.97
8.1.230.0040.00720.35
8.1.220.0050.00317.79
8.1.210.0030.00518.77
8.1.200.0040.00417.23
8.1.190.0040.00417.36
8.1.180.0050.00318.10
8.1.170.0000.00918.61
8.1.160.0000.00718.76
8.1.150.0000.00718.89
8.1.140.0040.00319.00
8.1.130.0000.00720.63
8.1.120.0000.00817.40
8.1.110.0040.00417.44
8.1.100.0050.00317.48
8.1.90.0000.00817.41
8.1.80.0030.00717.37
8.1.70.0000.00717.52
8.1.60.0000.00817.47
8.1.50.0050.00217.54
8.1.40.0040.00417.41
8.1.30.0040.00417.53
8.1.20.0040.00417.63
8.1.10.0000.00717.53
8.1.00.0050.00217.34
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.39
8.0.270.0040.00417.31
8.0.260.0030.00318.32
8.0.250.0060.00316.96
8.0.240.0030.00616.91
8.0.230.0040.00417.00
8.0.220.0030.00316.85
8.0.210.0000.00716.81
8.0.200.0030.00316.97
8.0.190.0040.00416.95
8.0.180.0000.00716.80
8.0.170.0050.00316.90
8.0.160.0060.00316.81
8.0.150.0080.00016.80
8.0.140.0030.00516.76
8.0.130.0000.00513.33
8.0.120.0040.00416.87
8.0.110.0000.00717.00
8.0.100.0030.00516.81
8.0.90.0000.00716.86
8.0.80.0030.01216.90
8.0.70.0040.00416.77
8.0.60.0000.00816.94
8.0.50.0040.00416.79
8.0.30.0090.00816.90
8.0.20.0080.01117.40
8.0.10.0040.00417.03
8.0.00.0100.01016.82
7.4.330.0000.00616.77
7.4.320.0030.00316.63
7.4.300.0000.00616.52
7.4.290.0000.01016.51
7.4.280.0030.00616.59
7.4.270.0030.00316.52
7.4.260.0040.00416.51
7.4.250.0040.00416.33
7.4.240.0080.00016.62
7.4.230.0030.00316.61
7.4.220.0000.00716.62
7.4.210.0090.01216.62
7.4.200.0030.00316.63
7.4.160.0130.00716.53
7.4.150.0170.00717.40
7.4.140.0080.01217.86
7.4.130.0040.01816.59
7.4.120.0110.00816.49
7.4.110.0070.01016.40
7.4.100.0120.00616.62
7.4.90.0060.01216.74
7.4.80.0120.00919.39
7.4.70.0070.01116.36
7.4.60.0090.00616.46
7.4.50.0060.00616.59
7.4.40.0030.01416.63
7.4.30.0140.01116.52
7.4.10.0030.01516.46
7.4.00.0050.01115.85
7.3.330.0000.00513.18
7.3.320.0030.00313.23
7.3.310.0080.00016.26
7.3.300.0080.00016.34
7.3.290.0130.00816.31
7.3.280.0070.00716.35
7.3.270.0090.00917.40
7.3.260.0100.00816.48
7.3.250.0060.01116.46
7.3.240.0070.01216.55
7.3.230.0210.00416.63
7.3.210.0090.00916.52
7.3.200.0030.01516.25
7.3.190.0050.01516.62
7.3.180.0030.01416.66
7.3.170.0090.00716.29
7.3.160.0170.00016.36
7.3.130.0120.00616.37
7.3.120.0100.00716.41
7.3.110.0100.00616.22
7.3.100.0000.01316.51
7.3.90.0030.01216.33
7.3.80.0100.00716.21
7.3.70.0030.00716.19
7.3.60.0070.01016.41
7.3.50.0030.01616.56
7.3.40.0130.00316.38
7.3.30.0130.00016.19
7.3.20.0100.00718.32
7.3.10.0080.00517.43
7.3.00.0090.00317.24
7.2.330.0140.00416.73
7.2.320.0080.00816.34
7.2.310.0060.01016.68
7.2.300.0060.01116.65
7.2.290.0130.00316.62
7.2.260.0080.00816.47
7.2.250.0130.00716.64
7.2.240.0090.00616.55
7.2.230.0080.00316.70
7.2.220.0090.00916.50
7.2.210.0090.00316.72
7.2.200.0110.00016.61
7.2.190.0000.01116.57
7.2.180.0030.00916.41
7.2.170.0060.00916.45
7.2.160.0030.01016.56
7.2.150.0000.01218.20
7.2.140.0070.01018.46
7.2.130.0080.00617.71
7.2.120.0090.00317.33
7.2.110.0050.00717.59
7.2.100.0060.00817.70
7.2.90.0080.00817.60
7.2.80.0100.00617.49
7.2.70.0060.00617.42
7.2.60.0070.00917.29
7.2.50.0080.00817.37
7.2.40.0100.00517.57
7.2.30.0050.01017.43
7.2.20.0020.00817.65
7.2.10.0040.00617.55
7.2.00.0080.00718.32
7.1.330.0060.00617.42
7.1.320.0070.00717.50
7.1.310.0040.00817.52
7.1.300.0030.01217.45
7.1.290.0090.00617.09
7.1.280.0110.00717.23
7.1.270.0060.00917.39
7.1.260.0090.00617.20
7.1.250.0060.00716.60
7.1.240.0070.00717.28
7.1.230.0040.01117.25
7.1.220.0040.01117.27
7.1.210.0040.00917.40
7.1.200.0080.00916.63
7.1.190.0050.00517.37
7.1.180.0040.01117.20
7.1.170.0060.00617.21
7.1.160.0070.00717.36
7.1.150.0080.00817.23
7.1.140.0100.00317.23
7.1.130.0030.01217.38
7.1.120.0070.00918.12
7.1.110.0020.01117.81
7.1.100.0090.00617.56
7.1.90.0080.01017.67
7.1.80.0080.00917.77
7.1.70.0090.00617.29
7.1.60.0170.00626.22
7.1.50.0170.00926.20
7.1.40.0150.01325.75
7.1.30.0150.01225.78
7.1.20.0170.01025.95
7.1.10.0120.00617.01
7.1.00.0090.00816.96
7.0.330.0100.00316.95
7.0.320.0110.00016.84
7.0.310.0000.01916.78
7.0.300.0030.00916.84
7.0.290.0070.01017.02
7.0.280.0030.01016.96
7.0.270.0040.00816.92
7.0.260.0070.00716.93
7.0.250.0080.00417.09
7.0.240.0030.01217.29
7.0.230.0080.00816.98
7.0.220.0090.00317.06
7.0.210.0100.00616.97
7.0.200.0090.00617.00
7.0.190.0070.00417.04
7.0.180.0110.00416.99
7.0.170.0000.01417.05
7.0.160.0110.00417.03
7.0.150.0080.00316.88
7.0.140.0080.00617.06
7.0.130.0110.00716.77
7.0.120.0040.00717.01
7.0.110.0030.01016.91
7.0.100.0060.00516.91
7.0.90.0040.01216.84
7.0.80.0060.00916.86
7.0.70.0140.00016.76
7.0.60.0030.00617.21
7.0.50.0090.00617.08
7.0.40.0110.00014.97
7.0.30.0060.00914.98
7.0.20.0070.01414.88
7.0.10.0030.00914.94
7.0.00.0100.00715.01
5.6.400.0100.00316.12
5.6.390.0070.00715.85
5.6.380.0030.00815.91
5.6.370.0100.00716.22
5.6.360.0000.01715.83
5.6.350.0040.01416.01
5.6.340.0030.00716.04
5.6.330.0080.00616.03
5.6.320.0000.01316.22
5.6.310.0090.00616.00
5.6.300.0120.00015.99
5.6.290.0120.00015.94
5.6.280.0040.00815.93
5.6.270.0060.00915.82
5.6.260.0030.01016.01
5.6.250.0050.00515.64
5.6.240.0040.00715.90
5.6.230.0120.00315.91
5.6.220.0060.00615.63
5.6.210.0060.00915.99
5.6.200.0030.00715.60
5.6.190.0030.01015.89
5.6.180.0070.01016.20
5.6.170.0060.00615.54
5.6.160.0030.01016.03
5.6.150.0100.00315.62
5.6.140.0000.01416.02
5.6.130.0040.01115.84
5.6.120.0060.00915.73
5.6.110.0060.00915.94
5.6.100.0110.00716.12
5.6.90.0080.00815.86
5.6.80.0070.01515.84
5.6.70.0120.00315.75
5.6.60.0130.00915.79
5.6.50.0060.01415.77
5.6.40.0120.01215.89
5.6.30.0070.01615.73
5.6.20.0110.01115.82
5.6.10.0130.00915.98
5.6.00.0070.01716.03

preferences:
65.31 ms | 400 KiB | 5 Q