3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new \AppendIterator(); $a->append(new \ArrayIterator([1])); $b = new \AppendIterator(); $b->append($a); $b->append(new \ArrayIterator([1])); foreach ($b AS $z){ var_dump($z); }

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.0140.00718.56
8.3.50.0070.00718.16
8.3.40.0040.01118.42
8.3.30.0070.01418.33
8.3.20.0040.00420.25
8.3.10.0040.00420.73
8.3.00.0070.01118.89
8.2.180.0070.01116.46
8.2.170.0070.00722.96
8.2.160.0120.00619.30
8.2.150.0120.00324.18
8.2.140.0050.00324.66
8.2.130.0070.00019.32
8.2.120.0030.00526.35
8.2.110.0090.00022.20
8.2.100.0060.00617.73
8.2.90.0090.00018.16
8.2.80.0000.00818.97
8.2.70.0080.00018.05
8.2.60.0000.00818.22
8.2.50.0000.00818.10
8.2.40.0000.00720.46
8.2.30.0040.00419.29
8.2.20.0080.00017.99
8.2.10.0040.00418.06
8.2.00.0040.00418.05
8.1.280.0120.00325.92
8.1.270.0080.00024.66
8.1.260.0080.00026.35
8.1.250.0030.00628.09
8.1.240.0060.00323.83
8.1.230.0070.00320.93
8.1.220.0050.00317.74
8.1.210.0120.00018.77
8.1.200.0030.00617.35
8.1.190.0000.00816.98
8.1.180.0040.00418.10
8.1.170.0000.00918.82
8.1.160.0070.00018.86
8.1.150.0000.00820.30
8.1.140.0040.00419.63
8.1.130.0030.00520.00
8.1.120.0070.00017.45
8.1.110.0030.00517.41
8.1.100.0070.00017.48
8.1.90.0040.00417.39
8.1.80.0030.00417.46
8.1.70.0030.00317.44
8.1.60.0090.00017.61
8.1.50.0040.00417.51
8.1.40.0000.00717.38
8.1.30.0030.00517.65
8.1.20.0040.00417.66
8.1.10.0050.00317.57
8.1.00.0040.00417.43
8.0.300.0040.00420.20
8.0.290.0080.00016.75
8.0.280.0000.00718.35
8.0.270.0040.00417.17
8.0.260.0000.00618.28
8.0.250.0030.00316.99
8.0.240.0030.00616.91
8.0.230.0000.00716.96
8.0.220.0030.00716.88
8.0.210.0000.00716.90
8.0.200.0000.00616.93
8.0.190.0030.00516.95
8.0.180.0000.00716.92
8.0.170.0030.00316.91
8.0.160.0040.00416.77
8.0.150.0040.00416.78
8.0.140.0040.00416.75
8.0.130.0060.00013.29
8.0.120.0030.00616.87
8.0.110.0040.00416.75
8.0.100.0080.00016.72
8.0.90.0000.00716.92
8.0.80.0100.01116.95
8.0.70.0000.00816.77
8.0.60.0000.00716.71
8.0.50.0040.00416.87
8.0.30.0080.01017.21
8.0.20.0080.01117.40
8.0.10.0030.00517.00
8.0.00.0130.00316.82
7.4.330.0020.00215.55
7.4.320.0030.00316.50
7.4.300.0060.00016.48
7.4.290.0000.00716.48
7.4.280.0000.00816.47
7.4.270.0000.00716.51
7.4.260.0000.00816.60
7.4.250.0050.00316.48
7.4.240.0070.00016.63
7.4.230.0070.00016.69
7.4.220.0110.00816.55
7.4.210.0050.01016.53
7.4.200.0030.00316.43
7.4.160.0150.00716.51
7.4.150.0130.01017.40
7.4.140.0120.00717.86
7.4.130.0120.00616.45
7.4.120.0110.00916.50
7.4.110.0090.00916.57
7.4.100.0100.00916.36
7.4.90.0100.01316.66
7.4.80.0100.00719.39
7.4.70.0140.00316.42
7.4.60.0120.00416.46
7.4.50.0030.00716.36
7.4.40.0100.00616.47
7.4.30.0100.00516.49
7.4.10.0060.01315.03
7.4.00.0080.00814.93
7.3.330.0050.00013.01
7.3.320.0060.00013.11
7.3.310.0000.00716.36
7.3.300.0030.00316.30
7.3.290.0030.00316.09
7.3.280.0060.01116.27
7.3.270.0080.00817.40
7.3.260.0110.00616.60
7.3.250.0150.00616.46
7.3.240.0120.00816.33
7.3.230.0110.00916.61
7.3.210.0090.00616.55
7.3.200.0130.00616.56
7.3.190.0130.00316.45
7.3.180.0150.00416.16
7.3.170.0060.00916.28
7.3.160.0100.00716.34
7.3.130.0120.00315.01
7.3.120.0150.00414.76
7.3.110.0060.00914.66
7.3.100.0030.01015.06
7.3.90.0030.00614.67
7.3.80.0090.00614.88
7.3.70.0100.00314.77
7.3.60.0090.00614.47
7.3.50.0060.00614.95
7.3.40.0000.01114.85
7.3.30.0130.00314.92
7.3.20.0060.00316.50
7.3.10.0050.00816.63
7.3.00.0060.00616.52
7.2.330.0110.00716.57
7.2.320.0120.00616.50
7.2.310.0090.00616.73
7.2.300.0000.01716.52
7.2.290.0140.00316.86
7.2.260.0070.01314.81
7.2.250.0150.00015.10
7.2.240.0040.01115.01
7.2.230.0150.00015.18
7.2.220.0000.01415.20
7.2.210.0030.01314.96
7.2.200.0150.00315.09
7.2.190.0000.00914.96
7.2.180.0000.01415.02
7.2.170.0040.00815.11
7.2.160.0150.00014.83
7.2.150.0030.01016.79
7.2.140.0000.01116.82
7.2.130.0030.01116.86
7.2.120.0100.00916.79
7.2.110.0050.00716.90
7.2.100.0050.00716.98
7.2.90.0060.00616.93
7.2.80.0040.01116.71
7.2.70.0100.00616.77
7.2.60.0050.01116.72
7.2.50.0080.00717.03
7.2.40.0060.00916.75
7.2.30.0020.01216.90
7.2.20.0090.00616.84
7.2.10.0080.00416.76
7.2.00.0050.00816.88
7.1.330.0030.00915.72
7.1.320.0000.00915.87
7.1.310.0060.01215.66
7.1.300.0090.00315.76
7.1.290.0080.00415.46
7.1.280.0030.00715.50
7.1.270.0030.01415.60
7.1.260.0040.00715.64
7.1.250.0090.00515.60
7.1.240.0040.00715.79
7.1.230.0050.00315.88
7.1.220.0110.00315.63
7.1.210.0030.01015.54
7.1.200.0080.00515.86
7.1.190.0140.00415.77
7.1.180.0110.00415.48
7.1.170.0030.01215.70
7.1.160.0090.00015.82
7.1.150.0060.00615.70
7.1.140.0040.01115.60
7.1.130.0060.00315.71
7.1.120.0100.00715.70
7.1.110.0090.00615.82
7.1.100.0030.01015.59
7.1.90.0080.00517.50
7.1.80.0050.00817.51
7.1.70.0050.00816.70
7.1.60.0150.00930.20
7.1.50.0120.01130.08
7.1.40.0110.01229.84
7.1.30.0140.00929.88
7.1.20.0120.01329.79
7.1.10.0060.00716.30
7.1.00.0040.00916.34
7.0.330.0040.00415.30
7.0.320.0000.01015.41
7.0.310.0070.01015.49
7.0.300.0070.01015.54
7.0.290.0080.00615.60
7.0.280.0040.01015.20
7.0.270.0030.00715.34
7.0.260.0070.00715.59
7.0.250.0060.00915.46
7.0.240.0060.00315.46
7.0.230.0060.00717.10
7.0.220.0050.00917.23
7.0.210.0090.00416.33
7.0.200.0050.00916.35
7.0.190.0050.00716.32
7.0.180.0060.00615.98
7.0.170.0040.00815.99
7.0.160.0070.00616.03
7.0.150.0060.00715.96
7.0.140.0060.00816.10
7.0.130.0280.00516.07
7.0.120.0020.01316.19
7.0.110.0060.00616.24
7.0.100.0050.00916.08
7.0.90.0220.00715.57
7.0.80.0050.00816.21
7.0.70.0050.00816.09
7.0.60.0020.01116.04
7.0.50.0070.00716.18
7.0.40.0040.00815.79
7.0.30.0060.00815.76
7.0.20.0070.00715.66
7.0.10.0040.01015.72
7.0.00.0260.00515.66
5.6.400.0040.01114.23
5.6.390.0000.01814.33
5.6.380.0070.00714.30
5.6.370.0070.00714.48
5.6.360.0030.01014.43
5.6.350.0040.01114.46
5.6.340.0100.00714.56
5.6.330.0060.01014.44
5.6.320.0040.01114.51
5.6.310.0060.00914.20
5.6.300.0100.04719.20
5.6.290.0080.04419.05
5.6.280.0090.04319.21
5.6.270.0080.04419.24
5.6.260.0080.04919.34
5.6.250.0090.04719.19
5.6.240.0070.05219.30
5.6.230.0110.04719.09
5.6.220.0080.04619.13
5.6.210.0110.04919.14
5.6.200.0150.04019.21
5.6.190.0100.04719.25
5.6.180.0100.04719.17
5.6.170.0120.04119.19
5.6.160.0060.04919.14
5.6.150.0090.04419.20
5.6.140.0060.04919.11
5.6.130.0080.05019.32
5.6.120.0110.04819.17
5.6.110.0070.05219.13
5.6.100.0090.05119.18
5.6.90.0150.04419.15
5.6.80.0110.03918.71
5.6.70.0070.04318.69
5.6.60.0070.04418.63
5.6.50.0090.04418.79
5.6.40.0090.03918.75
5.6.30.0090.04218.73
5.6.20.0090.04418.70
5.6.10.0120.03818.64
5.6.00.0070.04718.63
5.5.380.0070.05617.49
5.5.370.0100.05717.42
5.5.360.0130.06117.46
5.5.350.0100.05017.39
5.5.340.0110.05117.93
5.5.330.0110.05117.79
5.5.320.0050.05717.93
5.5.310.0100.05317.98
5.5.300.0030.06417.96
5.5.290.0100.05517.97
5.5.280.0140.06217.88
5.5.270.0100.06217.91
5.5.260.0090.06417.78
5.5.250.0080.06517.83
5.5.240.0130.05117.38
5.5.230.0070.06017.24
5.5.220.0180.04817.34
5.5.210.0080.05017.36
5.5.200.0070.05617.32
5.5.190.0110.05117.22
5.5.180.0070.05817.33
5.5.160.0090.04917.30
5.5.150.0030.05617.28
5.5.140.0080.04917.31
5.5.130.0050.05317.15
5.5.120.0050.05317.27
5.5.110.0170.04517.20
5.5.100.0030.06817.17
5.5.90.0150.04317.01
5.5.80.0050.05617.26
5.5.70.0120.05117.18
5.5.60.0110.04917.16
5.5.50.0110.05817.26
5.5.40.0090.06217.15
5.5.30.0100.04817.24
5.5.20.0080.05216.99
5.5.10.0100.05217.11
5.5.00.0130.04817.06
5.4.450.0130.07319.20
5.4.440.0130.05619.19
5.4.430.0110.07219.31
5.4.420.0140.04919.29
5.4.410.0150.04919.15
5.4.400.0120.05018.96
5.4.390.0100.05218.91
5.4.380.0140.04518.89
5.4.370.0070.05118.94
5.4.360.0170.04318.88
5.4.350.0110.04618.97
5.4.340.0060.05519.00
5.4.320.0070.05319.02
5.4.310.0090.06118.96
5.4.300.0100.04818.90
5.4.290.0130.04418.88
5.4.280.0090.05118.90
5.4.270.0110.05018.98
5.4.260.0130.05419.04
5.4.250.0170.04818.99
5.4.240.0120.05019.05
5.4.230.0080.05118.82
5.4.220.0080.05518.89
5.4.210.0110.05919.01
5.4.200.0070.05218.91
5.4.190.0100.05018.98
5.4.180.0070.05819.04
5.4.170.0130.04819.01
5.4.160.0100.05618.87
5.4.150.0080.06018.96
5.4.140.0110.05016.51
5.4.130.0100.05516.48
5.4.120.0130.04316.41
5.4.110.0080.05416.46
5.4.100.0070.04816.44
5.4.90.0150.04816.59
5.4.80.0070.05716.47
5.4.70.0070.04916.42
5.4.60.0090.05116.43
5.4.50.0100.04316.53
5.4.40.0090.04716.56
5.4.30.0060.05116.41
5.4.20.0050.06016.43
5.4.10.0020.05716.56
5.4.00.0080.04615.74
5.3.290.0070.05114.60
5.3.280.0100.04814.65
5.3.270.0100.05214.65
5.3.260.0030.06114.71
5.3.250.0080.05214.66
5.3.240.0050.05814.76
5.3.230.0050.06014.67
5.3.220.0080.05114.44
5.3.210.0120.05014.61
5.3.200.0060.05214.53
5.3.190.0190.04714.58
5.3.180.0140.05814.55
5.3.170.0020.05414.71
5.3.160.0120.04714.63
5.3.150.0080.04914.67
5.3.140.0050.05114.61
5.3.130.0140.04914.67
5.3.120.0050.05614.59
5.3.110.0020.06114.42
5.3.100.0030.05313.96
5.3.90.0050.05014.19
5.3.80.0020.05414.07
5.3.70.0030.06014.15
5.3.60.0020.06214.13
5.3.50.0080.05514.05
5.3.40.0090.05314.05
5.3.30.0090.04513.80
5.3.20.0050.04913.56
5.3.10.0090.04413.74
5.3.00.0030.05113.63
5.2.170.0050.04211.19
5.2.160.0070.04211.17
5.2.150.0080.03911.24
5.2.140.0090.03611.20
5.2.130.0110.03511.15
5.2.120.0070.03611.22
5.2.110.0050.03911.01
5.2.100.0080.04311.16
5.2.90.0050.04411.09
5.2.80.0080.04611.24
5.2.70.0070.03911.06
5.2.60.0100.03611.07
5.2.50.0100.03811.13
5.2.40.0100.03911.02
5.2.30.0050.04311.08
5.2.20.0080.03811.03
5.2.10.0100.04010.99
5.2.00.0100.03810.82
5.1.60.0060.0379.99
5.1.50.0030.03610.21
5.1.40.0050.0389.99
5.1.30.0120.03110.53
5.1.20.0020.04410.47
5.1.10.0060.03310.20
5.1.00.0030.04910.25
5.0.50.0080.0348.71
5.0.40.0070.0308.51
5.0.30.0020.0438.33
5.0.20.0100.0258.19
5.0.10.0040.0278.45
5.0.00.0050.0448.25
4.4.90.0020.0227.16
4.4.80.0070.0177.16
4.4.70.0030.0247.16
4.4.60.0080.0197.16
4.4.50.0050.0237.16
4.4.40.0030.0337.16
4.4.30.0050.0237.16
4.4.20.0000.0277.16
4.4.10.0030.0307.16
4.4.00.0030.0387.16
4.3.110.0040.0237.16
4.3.100.0050.0197.16
4.3.90.0030.0197.16
4.3.80.0000.0417.16
4.3.70.0070.0217.16
4.3.60.0050.0237.16
4.3.50.0030.0257.16
4.3.40.0060.0347.16
4.3.30.0080.0207.16
4.3.20.0080.0217.16
4.3.10.0070.0207.16
4.3.00.0000.0277.16

preferences:
68.63 ms | 400 KiB | 5 Q