3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new ArrayIterator(array('zf9396', 'foo', null)); $it->rewind(); try { $it->seek(3); } catch (OutOfBoundsException $e) { var_dump($it->key()); $it->rewind(); var_dump($it->key()); } $lit = new LimitIterator($it, 0, 10); try { $lit->seek(3); } catch (OutOfBoundsException $e) { var_dump($lit->key()); $lit->rewind(); var_dump($lit->key()); }

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.130.0130.00917.61
8.4.120.0090.01219.81
8.4.110.0080.00525.63
8.4.100.0090.00617.89
8.4.90.0140.00620.59
8.4.80.0070.00418.88
8.4.70.0160.00820.68
8.4.60.0100.01118.54
8.4.50.0050.00520.41
8.4.40.0100.01019.70
8.4.30.0050.00320.52
8.4.20.0150.00420.77
8.4.10.0060.00317.92
8.3.260.0140.00516.41
8.3.250.0060.00316.70
8.3.240.0140.00516.67
8.3.230.0140.00516.30
8.3.220.0100.00418.95
8.3.210.0030.00518.45
8.3.200.0050.00416.56
8.3.190.0060.00318.79
8.3.180.0090.00918.92
8.3.170.0110.00818.48
8.3.160.0160.00317.18
8.3.150.0130.00616.50
8.3.140.0040.00418.75
8.3.130.0040.00418.17
8.3.120.0130.00720.41
8.3.110.0030.00620.94
8.3.100.0090.00016.41
8.3.90.0040.00426.77
8.3.80.0070.00316.48
8.3.70.0040.01116.63
8.3.60.0060.00916.38
8.3.50.0000.01418.24
8.3.40.0110.00718.80
8.3.30.0040.01118.70
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0060.00416.74
8.2.280.0090.01018.25
8.2.270.0080.00416.57
8.2.260.0140.00016.36
8.2.250.0040.00416.61
8.2.240.0100.01018.61
8.2.230.0030.00622.58
8.2.220.0030.00637.54
8.2.210.0030.01226.77
8.2.200.0060.00616.75
8.2.190.0070.01016.58
8.2.180.0120.00625.92
8.2.170.0100.00719.04
8.2.160.0030.01022.96
8.2.150.0080.00025.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0000.00826.16
8.2.110.0060.00322.25
8.2.100.0080.00417.78
8.2.90.0040.00419.22
8.2.80.0080.00017.97
8.2.70.0090.00017.75
8.2.60.0060.00317.88
8.2.50.0060.00318.07
8.2.40.0090.00417.93
8.2.30.0040.00417.88
8.2.20.0070.00017.91
8.2.10.0030.00619.18
8.2.00.0000.00919.14
8.1.330.0100.00915.96
8.1.320.0160.00318.10
8.1.310.0060.00916.11
8.1.300.0090.00020.34
8.1.290.0090.00030.84
8.1.280.0030.01325.92
8.1.270.0000.00823.73
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00422.61
8.1.230.0080.00317.80
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0030.00617.13
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0030.00518.24
8.1.160.0040.00418.90
8.1.150.0040.00418.58
8.1.140.0020.00518.71
8.1.130.0060.00320.32
8.1.120.0050.00217.45
8.1.110.0000.00817.28
8.1.100.0000.00717.30
8.1.90.0030.00517.29
8.1.80.0030.00717.43
8.1.70.0030.00317.36
8.1.60.0040.00417.49
8.1.50.0040.00417.41
8.1.40.0060.00317.40
8.1.30.0050.00317.66
8.1.20.0000.01117.63
8.1.10.0000.00817.50
8.1.00.0040.00717.47
8.0.300.0050.00518.77
8.0.290.0040.00416.63
8.0.280.0000.00818.43
8.0.270.0000.00717.91
8.0.260.0070.00018.53
8.0.250.0000.00716.90
8.0.240.0030.00316.95
8.0.230.0030.00316.96
8.0.220.0040.00416.91
8.0.210.0000.00816.94
8.0.200.0030.00317.00
8.0.190.0020.00516.87
8.0.180.0000.00816.90
8.0.170.0040.00416.93
8.0.160.0000.00816.98
8.0.150.0000.00816.84
8.0.140.0030.00416.82
8.0.130.0000.00813.39
8.0.120.0080.00016.79
8.0.110.0030.00516.87
8.0.100.0000.00717.00
8.0.90.0040.00416.78
8.0.80.0070.00016.70
8.0.70.0070.00016.99
8.0.60.0000.00716.77
8.0.50.0050.00216.72
8.0.30.0070.00016.88
8.0.20.0040.00416.86
8.0.10.0070.00016.91
8.0.00.0070.00017.02
7.4.330.0020.00315.55
7.4.320.0030.00316.60
7.4.300.0060.00016.47
7.4.290.0080.00016.52
7.4.280.0000.00816.60
7.4.270.0000.00716.50
7.4.260.0000.00813.27
7.4.250.0000.00816.57
7.4.240.0000.00716.53
7.4.230.0000.00916.64
7.4.220.0030.00316.44
7.4.210.0030.00316.44
7.4.200.0040.00416.63
7.4.190.0000.00816.66
7.4.180.0060.00016.37
7.4.160.0000.00816.77
7.4.150.0030.00316.50
7.4.140.0000.00716.36
7.4.130.0040.00416.52
7.4.120.0070.00016.56
7.4.110.0070.00016.38
7.4.100.0030.00316.64
7.4.90.0030.00316.34
7.4.80.0030.00316.29
7.4.70.0000.00716.26
7.4.60.0030.00316.38
7.4.50.0000.00716.51
7.4.40.0030.00316.41
7.4.30.0000.00816.63
7.4.20.0000.00716.35
7.4.10.0000.00716.47
7.4.00.0070.00016.54
7.3.330.0040.00416.07
7.3.320.0000.00613.11
7.3.310.0000.00716.30
7.3.300.0000.00716.11
7.3.290.0030.00316.25
7.3.280.0000.00616.27
7.3.270.0030.00316.29
7.3.260.0000.00616.26
7.3.250.0070.00016.27
7.3.240.0030.00316.18
7.3.230.0030.00316.31
7.3.220.0000.00616.10
7.3.210.0040.00416.19
7.3.200.0030.00516.25
7.3.190.0090.00016.22
7.3.180.0030.00316.04
7.3.170.0040.00416.22
7.3.160.0040.00416.20
7.3.150.0040.00416.20
7.3.140.0040.00416.25
7.3.130.0030.00316.17
7.3.120.0030.00316.20
7.3.110.0000.00616.03
7.3.100.0000.00716.14
7.3.90.0040.00416.46
7.3.80.0000.00616.21
7.3.70.0030.00316.19
7.3.60.0030.00316.42
7.3.50.0030.00316.42
7.3.40.0000.00716.40
7.3.30.0030.00316.31
7.3.20.0000.00716.30
7.3.10.0000.00716.33
7.3.00.0000.00716.25

preferences:
32.89 ms | 403 KiB | 5 Q