3v4l.org

run code in 300+ PHP versions simultaneously
<?php class IterableClass implements ArrayAccess { private array $data = []; public function offsetExists(mixed $offset): bool { return true; } public function offsetGet(mixed $offset): mixed { return $this->data[$offset]; } public function offsetSet(mixed $offset, mixed $value): void { } public function offsetUnset(mixed $offset): void { } } $seasonsData = [new IterableClass(), new IterableClass()]; foreach ($seasonsData as $s) { echo isset($s['priceweek']) ? $s['priceweek'] : ''; }

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.4.120.0070.00520.65
8.4.110.0120.00822.63
8.4.100.0100.01117.68
8.4.90.0140.00618.63
8.4.80.0130.00519.56
8.4.70.0050.00417.91
8.4.60.0170.00518.75
8.4.50.0150.00820.27
8.4.40.0130.00720.41
8.4.30.0130.00718.57
8.4.20.0060.01320.61
8.4.10.0030.00622.36
8.3.250.0060.00319.00
8.3.240.0130.00616.94
8.3.230.0060.00216.74
8.3.220.0060.00217.33
8.3.210.0040.00518.53
8.3.200.0070.00216.47
8.3.190.0110.00817.04
8.3.180.0120.00616.80
8.3.170.0150.00417.12
8.3.160.0120.00618.48
8.3.150.0110.00718.45
8.3.140.0120.00617.29
8.3.130.0090.00018.48
8.3.120.0090.00018.86
8.3.110.0060.00320.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0070.00317.97
8.3.70.0090.00916.75
8.3.60.0110.00418.56
8.3.50.0110.01118.40
8.3.40.0130.00319.93
8.3.30.0140.00018.79
8.3.20.0050.00324.18
8.3.10.0050.00324.66
8.3.00.0000.00726.16
8.2.290.0120.00720.22
8.2.280.0070.01318.43
8.2.270.0090.00017.29
8.2.260.0040.00418.41
8.2.250.0030.00616.92
8.2.240.0060.00317.29
8.2.230.0060.00322.58
8.2.220.0060.00337.54
8.2.210.0150.00426.77
8.2.200.0060.00318.54
8.2.190.0120.00318.65
8.2.180.0060.01218.41
8.2.170.0040.01119.13
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00021.00
8.2.110.0000.00919.24
8.2.100.0100.00317.63
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0040.00417.63
8.2.50.0150.00419.52
8.2.40.0080.01019.52
8.2.30.0170.00319.52
8.2.20.0110.00719.52
8.2.10.0130.00419.52
8.2.00.0120.00319.52
8.1.330.0110.00723.87
8.1.320.0110.00716.23
8.1.310.0100.00018.50
8.1.300.0090.00016.29
8.1.290.0000.00930.84
8.1.280.0100.01025.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.21
8.1.230.0080.00417.78
8.1.220.0090.00017.74
8.1.210.0030.00618.77
8.1.200.0030.00617.36
8.1.190.0040.00417.35
8.1.180.0120.00619.52
8.1.170.0150.00319.52
8.1.160.0180.00019.52
8.1.150.0180.00019.52
8.1.140.0070.00319.52
8.1.130.0120.00819.52
8.1.120.0090.00919.52
8.1.110.0150.00419.52
8.1.100.0140.00519.52
8.1.90.0150.00019.52
8.1.80.0150.00219.52
8.1.70.0090.00919.52
8.1.60.0130.00419.52
8.1.50.0130.00419.52
8.1.40.0120.00619.52
8.1.30.0130.00419.52
8.1.20.0130.00419.52
8.1.10.0130.00419.52
8.1.00.0110.00719.52
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0160.00019.52
8.0.270.0090.00919.52
8.0.260.0120.00419.52
8.0.250.0080.00819.52
8.0.240.0190.00019.52
8.0.230.0180.00419.52
8.0.220.0140.00319.52
8.0.210.0190.00019.52
8.0.200.0110.00619.52
8.0.190.0120.00519.52
8.0.180.0100.00719.52
8.0.170.0100.00719.52
8.0.160.0120.00419.52
8.0.150.0120.00419.52
8.0.140.0110.00519.52
8.0.130.0110.00619.52
8.0.120.0120.00419.52
8.0.110.0100.00519.52
8.0.100.0150.00519.52
8.0.90.0090.00919.52
8.0.80.0170.00019.52
8.0.70.0090.00619.52
8.0.60.0130.00319.52
8.0.50.0160.00019.52
8.0.30.0070.01019.52
8.0.20.0110.00519.52
8.0.10.0140.00319.52

preferences:
61.38 ms | 403 KiB | 5 Q