3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(iterator_to_array(new LimitIterator( new InfiniteIterator( new ArrayIterator(range(1, 3)) ), 0, 9 )));

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.0070.01416.38
8.3.50.0070.01417.92
8.3.40.0150.00018.86
8.3.30.0090.00618.46
8.3.20.0090.00922.09
8.3.10.0060.00321.89
8.3.00.0100.01017.79
8.2.180.0110.01116.38
8.2.170.0160.00622.96
8.2.160.0040.01120.93
8.2.150.0100.00724.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00421.08
8.2.110.0100.00021.00
8.2.100.0030.00817.91
8.2.90.0150.00618.77
8.2.80.0050.00317.97
8.2.70.0080.00017.50
8.2.60.0080.00817.44
8.2.50.0040.00418.10
8.2.40.0080.00022.10
8.2.30.0040.00419.12
8.2.20.0020.00517.92
8.2.10.0020.00518.12
8.2.00.0070.00018.09
8.1.280.0100.00625.92
8.1.270.0000.00823.82
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0140.00723.97
8.1.230.0040.00720.72
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0050.00517.10
8.1.190.0080.00018.76
8.1.180.0050.00318.10
8.1.170.0080.00418.32
8.1.160.0040.00418.64
8.1.150.0090.00019.99
8.1.140.0020.00519.44
8.1.130.0050.00218.90
8.1.120.0070.00017.34
8.1.110.0060.00317.33
8.1.100.0030.00617.32
8.1.90.0030.00617.32
8.1.80.0000.00817.34
8.1.70.0000.00717.36
8.1.60.0090.00017.44
8.1.50.0040.00417.38
8.1.40.0080.00017.41
8.1.30.0040.00417.48
8.1.20.0030.00517.43
8.1.10.0040.00417.41
8.1.00.0000.00717.34
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0070.00018.36
8.0.270.0070.00017.18
8.0.260.0080.00020.87
8.0.250.0000.00716.89
8.0.240.0000.00716.77
8.0.230.0000.00716.70
8.0.220.0000.00716.81
8.0.210.0000.00716.75
8.0.200.0030.00316.68
8.0.190.0000.00816.71
8.0.180.0040.00716.66
8.0.170.0000.00716.76
8.0.160.0000.00716.84
8.0.150.0070.00016.79
8.0.140.0060.00316.70
8.0.130.0000.00513.25
8.0.120.0040.00416.76
8.0.110.0070.00016.71
8.0.100.0040.00416.87
8.0.90.0040.00416.58
8.0.80.0070.00716.77
8.0.70.0040.00416.74
8.0.60.0040.00416.64
8.0.50.0080.00016.55
8.0.30.0070.01016.89
8.0.20.0110.00917.40
8.0.10.0040.00416.80
8.0.00.0140.00716.71
7.4.330.0020.00215.55
7.4.320.0000.00616.54
7.4.300.0000.00616.50
7.4.290.0000.00716.44
7.4.280.0070.00016.41
7.4.270.0030.00316.29
7.4.260.0040.00416.50
7.4.250.0000.00716.32
7.4.240.0020.00516.51
7.4.230.0070.00016.50
7.4.220.0090.00916.60
7.4.210.0090.00716.52
7.4.200.0070.00016.51
7.4.160.0100.00616.57
7.4.150.0060.01217.40
7.4.140.0150.00517.86
7.4.130.0100.00916.36
7.4.120.0110.01216.43
7.4.110.0130.01016.28
7.4.100.0100.01016.36
7.4.90.0160.00316.38
7.4.80.0110.01119.39
7.4.70.0030.00516.45
7.4.60.0070.00716.38
7.4.50.0030.01316.21
7.4.40.0060.01116.22
7.4.30.0030.01316.42
7.4.00.0040.01114.85
7.3.330.0050.00013.01
7.3.320.0060.00012.86
7.3.310.0000.00816.07
7.3.300.0070.00016.02
7.3.290.0000.00716.14
7.3.280.0090.00816.12
7.3.270.0130.00317.40
7.3.260.0090.01316.21
7.3.250.0150.00416.21
7.3.240.0130.00416.33
7.3.230.0130.00316.12
7.3.210.0090.00716.11
7.3.200.0090.00616.19
7.3.190.0130.00416.03
7.3.180.0060.00916.06
7.3.170.0160.01016.48
7.3.160.0100.01016.18
7.2.330.0110.00616.38
7.2.320.0160.00616.38
7.2.310.0120.00616.42
7.2.300.0100.01316.60
7.2.290.0170.00616.12
7.1.70.0000.01017.06
7.1.60.0030.01317.27
7.1.40.0170.01734.14
7.1.30.0170.01734.39
7.1.20.0230.01034.28
7.1.10.0030.00716.30
7.1.00.0070.00716.37
7.0.200.0080.00616.38
7.0.180.0070.00716.09
7.0.170.0100.00316.09
7.0.160.0100.01016.18
7.0.150.0000.01316.08
7.0.140.0070.01016.08
7.0.130.0000.01316.34
7.0.120.0000.01316.37
7.0.110.0030.01016.16
7.0.100.0070.00716.07
7.0.90.0030.01016.07
7.0.80.0000.01716.21
7.0.70.0000.01716.06
7.0.60.0030.01016.02
7.0.50.0030.01315.93
7.0.40.0030.01716.32
7.0.30.0170.00716.21
7.0.20.0030.01016.23
7.0.10.0000.01316.23
7.0.00.0030.01016.20

preferences:
59.53 ms | 400 KiB | 5 Q