3v4l.org

run code in 300+ PHP versions simultaneously
<?php class IteratorTest extends ArrayIterator{} $something = new StdClass(); $i = new IteratorTest(); $i[] = $something; var_dump($i);

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.00418.43
8.3.50.0050.01022.10
8.3.40.0040.01118.63
8.3.30.0140.00319.02
8.3.20.0050.00320.21
8.3.10.0000.00821.88
8.3.00.0080.00022.59
8.2.180.0120.00316.75
8.2.170.0110.00422.96
8.2.160.0160.00020.89
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0000.00819.24
8.2.110.0050.00520.93
8.2.100.0070.00417.78
8.2.90.0060.00319.23
8.2.80.0080.00017.97
8.2.70.0090.00017.59
8.2.60.0060.00318.04
8.2.50.0000.00818.10
8.2.40.0030.00718.22
8.2.30.0000.00818.14
8.2.20.0040.00417.71
8.2.10.0040.00419.53
8.2.00.0070.00017.70
8.1.280.0130.00325.92
8.1.270.0080.00022.11
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00323.80
8.1.230.0060.00617.52
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0100.00017.13
8.1.190.0030.00517.10
8.1.180.0000.00818.10
8.1.170.0080.00018.50
8.1.160.0000.00821.90
8.1.150.0040.00418.49
8.1.140.0050.00217.29
8.1.130.0030.00317.81
8.1.120.0030.00317.39
8.1.110.0030.00517.39
8.1.100.0000.00717.27
8.1.90.0040.00417.39
8.1.80.0000.00817.31
8.1.70.0080.00017.36
8.1.60.0040.00417.56
8.1.50.0080.00017.50
8.1.40.0040.00417.41
8.1.30.0000.00817.64
8.1.20.0030.00517.53
8.1.10.0040.00417.54
8.1.00.0040.00417.32
8.0.300.0040.00418.77
8.0.290.0050.00316.61
8.0.280.0030.00318.36
8.0.270.0000.00717.24
8.0.260.0000.00716.81
8.0.250.0040.00416.86
8.0.240.0030.00316.92
8.0.230.0050.00216.77
8.0.220.0070.00016.85
8.0.210.0030.00316.86
8.0.200.0030.00316.87
8.0.190.0000.00716.86
8.0.180.0080.00016.84
8.0.170.0000.00716.84
8.0.160.0000.00716.74
8.0.150.0000.00716.78
8.0.140.0070.00016.82
8.0.130.0030.00313.27
8.0.120.0040.00416.81
8.0.110.0050.00316.70
8.0.100.0050.00216.84
8.0.90.0000.00716.84
8.0.80.0110.00416.84
8.0.70.0000.00716.85
8.0.60.0070.00016.84
8.0.50.0040.00416.68
8.0.30.0080.01116.98
8.0.20.0070.01117.40
8.0.10.0040.00416.93
8.0.00.0100.01016.60
7.4.330.0030.00315.08
7.4.320.0070.00016.34
7.4.300.0000.00716.44
7.4.290.0040.00816.44
7.4.280.0030.00316.52
7.4.270.0030.00516.37
7.4.260.0070.00016.48
7.4.250.0040.00416.57
7.4.240.0010.00616.53
7.4.230.0070.00016.35
7.4.220.0070.01016.37
7.4.210.0050.01216.43
7.4.200.0000.00716.42
7.4.190.0000.00716.66
7.4.160.0080.00816.54
7.4.150.0180.00517.40
7.4.140.0150.00917.86
7.4.130.0130.00616.46
7.4.120.0070.01116.49
7.4.110.0000.01616.42
7.4.100.0090.01216.61
7.4.90.0160.00216.32
7.4.80.0090.00919.39
7.4.70.0060.01016.34
7.4.60.0080.00816.34
7.4.50.0090.00016.13
7.4.40.0000.01622.77
7.4.30.0050.01016.50
7.4.00.0050.00814.95
7.3.330.0050.00013.05
7.3.320.0000.00613.30
7.3.310.0050.00316.13
7.3.300.0000.00716.11
7.3.290.0100.00316.20
7.3.280.0080.00716.25
7.3.270.0070.01017.40
7.3.260.0080.00816.50
7.3.250.0120.01016.36
7.3.240.0140.00316.25
7.3.230.0050.01116.39
7.3.210.0150.00716.29
7.3.200.0140.00819.39
7.3.190.0100.00716.50
7.3.180.0170.00316.51
7.3.170.0100.01016.46
7.3.160.0090.01216.21
7.3.120.0090.00714.60
7.3.110.0030.01314.69
7.3.100.0050.00514.75
7.3.90.0010.01114.73
7.3.80.0070.00614.89
7.3.70.0080.00714.83
7.3.60.0120.00314.60
7.3.50.0050.01014.49
7.3.40.0100.00714.71
7.3.30.0060.00514.69
7.3.20.0070.00716.56
7.3.10.0070.00616.51
7.3.00.0060.00816.69
7.2.330.0140.00316.30
7.2.320.0090.01016.68
7.2.310.0100.00616.59
7.2.300.0160.00016.45
7.2.290.0040.01116.45
7.2.250.0070.01114.75
7.2.240.0050.01214.98
7.2.230.0070.01014.86
7.2.220.0050.01215.12
7.2.210.0080.00714.77
7.2.200.0070.00914.98
7.2.190.0060.00614.77
7.2.180.0030.01114.95
7.2.170.0070.00814.85
7.2.160.0070.01014.89
7.2.150.0070.00716.65
7.2.140.0000.01716.93
7.2.130.0000.01616.83
7.2.120.0070.00716.72
7.2.110.0080.00816.86
7.2.100.0070.00716.88
7.2.90.0120.00316.63
7.2.80.0060.00917.00
7.2.70.0080.00816.83
7.2.60.0030.01016.64
7.2.50.0110.00416.89
7.2.40.0000.01416.76
7.2.30.0030.01416.92
7.2.20.0090.00616.51
7.2.10.0120.00316.61
7.2.00.0050.00817.89
7.1.330.0050.00715.74
7.1.320.0020.01015.88
7.1.310.0050.01015.75
7.1.300.0050.00815.77
7.1.290.0080.00615.53
7.1.280.0020.01215.92
7.1.270.0100.00515.68
7.1.260.0030.00615.58
7.1.250.0040.01115.74
7.1.200.0030.01015.92
7.1.100.0030.00617.89
7.1.70.0030.01016.87
7.1.60.0130.01019.82
7.1.50.0070.00717.05
7.1.00.0000.08022.46
7.0.200.0040.00816.68
7.0.140.0070.07021.95
7.0.60.0000.07320.02
7.0.50.0070.03717.88
7.0.40.0030.08720.23
7.0.30.0400.06720.06
7.0.20.0370.06320.25
7.0.10.0100.08720.09
7.0.00.0100.06020.12
5.6.280.0000.07720.87
5.6.210.0170.07320.48
5.6.200.0030.05318.19
5.6.190.0030.05720.61
5.6.180.0270.07320.47
5.6.170.0170.05020.56
5.6.160.0100.08020.46
5.6.150.0070.05018.28
5.6.140.0100.08018.23
5.6.130.0070.07318.18
5.6.120.0030.04721.01
5.6.110.0130.06321.02
5.6.100.0030.08021.01
5.6.90.0070.04021.13
5.6.80.0070.08720.39
5.5.350.0030.08320.44
5.5.340.0030.04018.05
5.5.330.0070.04020.47
5.5.320.0470.06020.20
5.5.310.0170.04320.35
5.5.300.0070.04718.07
5.5.290.0030.04017.95
5.5.280.0100.05720.80
5.5.270.0070.03720.64
5.5.260.0070.08720.93
5.5.250.0100.05020.71
5.5.240.4130.03720.27
5.4.450.0570.04719.34
5.4.440.0130.07019.21
5.4.430.0000.05719.53
5.4.420.0030.04019.38
5.4.410.2100.04019.05
5.4.400.1630.03318.98
5.4.390.1570.03718.79
5.4.380.1530.03718.75
5.4.370.1500.04319.20
5.4.360.1570.03719.16
5.4.350.1530.03719.07
5.4.340.1500.04319.16
5.4.320.1530.04018.86
5.4.310.1830.04718.78
5.4.300.1700.04318.75
5.4.290.1700.04019.16
5.4.280.1500.04319.16
5.4.270.1570.04019.17
5.4.260.1570.04018.88
5.4.250.1530.04018.88
5.4.240.1830.04719.30
5.4.230.1830.04018.75
5.4.220.1730.03718.85
5.4.210.1630.04018.96
5.4.200.1800.05018.99
5.4.190.1630.03018.77
5.4.180.1570.03018.89
5.4.170.1730.05018.78
5.4.160.1500.03719.06
5.4.150.1770.04319.09
5.4.140.1500.03716.49
5.4.130.1700.04016.37
5.4.120.1900.03316.27
5.4.110.1730.04716.36
5.4.100.1770.03716.45
5.4.90.1800.03316.56
5.4.80.1530.03016.54
5.4.70.1800.03716.38
5.4.60.1730.04016.17
5.4.50.1800.03716.23
5.4.40.1800.04016.37
5.4.30.1670.04016.53
5.4.20.1600.03316.23
5.4.10.1730.04016.50
5.4.00.1800.04015.84
5.3.290.1430.04714.65
5.3.280.1830.04314.50
5.3.270.1600.05314.62
5.3.260.1800.04714.61
5.3.250.1800.05014.58
5.3.240.1770.03714.61
5.3.230.1700.05014.61
5.3.220.1770.04314.71
5.3.210.1630.05314.56
5.3.200.1730.05014.81
5.3.190.1800.03714.48
5.3.180.1770.03314.58
5.3.170.1670.04014.48
5.3.160.1670.03314.54
5.3.150.1830.03714.48
5.3.140.1500.03014.56
5.3.130.1600.04314.54
5.3.120.1630.05314.69
5.3.110.1700.04314.46
5.3.100.1730.04314.00
5.3.90.1530.04014.11
5.3.80.1600.02714.25
5.3.70.1600.04713.99
5.3.60.1770.03314.08
5.3.50.1730.04314.09
5.3.40.1830.04013.87
5.3.30.1770.04313.92
5.3.20.1630.03313.84
5.3.10.1700.03013.74
5.3.00.1600.03013.66
5.2.170.1330.02311.06
5.2.160.1270.03011.24
5.2.150.1300.02711.12
5.2.140.1430.04311.16
5.2.130.1430.04311.16
5.2.120.1270.03011.04
5.2.110.1270.03311.00
5.2.100.1370.02711.05
5.2.90.1330.02311.23
5.2.80.1370.02711.00
5.2.70.1300.02711.10
5.2.60.1330.02311.16
5.2.50.1570.04011.02
5.2.40.1070.02710.95
5.2.30.1300.03010.90
5.2.20.1330.03310.86
5.2.10.1070.02710.91
5.2.00.1000.03010.94
5.1.60.1200.03010.22
5.1.50.1230.02710.15
5.1.40.1070.02310.06
5.1.30.1030.02710.31
5.1.20.1100.02710.36
5.1.10.1100.0279.97
5.1.00.1130.03010.12
5.0.50.0570.0238.63
5.0.40.0570.0178.54
5.0.30.0600.0378.25
5.0.20.0570.0138.30
5.0.10.0600.0238.25
5.0.00.0600.0508.25
4.4.90.0500.0178.25
4.4.80.0670.0278.25
4.4.70.0670.0278.25
4.4.60.0600.0238.25
4.4.50.0530.0138.25
4.4.40.0530.0338.25
4.4.30.0630.0278.25
4.4.20.0470.0178.25
4.4.10.0530.0138.25
4.4.00.0630.0408.25
4.3.110.0500.0138.25
4.3.100.0670.0238.25
4.3.90.0670.0238.25
4.3.80.0700.0308.25
4.3.70.0670.0208.25
4.3.60.0670.0278.25
4.3.50.0530.0208.25
4.3.40.0700.0378.25
4.3.30.0300.0208.25
4.3.20.0330.0338.25
4.3.10.0330.0338.25
4.3.00.0270.0238.25

preferences:
42.57 ms | 401 KiB | 5 Q