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); $other = new StdClass(); $c = new StdClass(); $c[] = $other; var_dump($c);

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.0120.00318.68
8.3.50.0120.00822.11
8.3.40.0070.01118.85
8.3.30.0140.00018.79
8.3.20.0040.00418.86
8.3.10.0040.00420.36
8.3.00.0000.01017.63
8.2.180.0130.00325.92
8.2.170.0090.00622.96
8.2.160.0110.00322.21
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0000.00926.16
8.2.120.0070.00019.83
8.2.110.0000.01022.20
8.2.100.0070.00417.91
8.2.90.0050.00219.05
8.2.80.0030.00617.97
8.2.70.0040.00417.38
8.2.60.0090.00017.80
8.2.50.0000.00818.07
8.2.40.0040.00418.22
8.2.30.0040.00419.91
8.2.20.0000.00717.71
8.2.10.0040.00417.66
8.2.00.0060.00317.73
8.1.280.0110.01125.92
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00322.42
8.1.230.0000.01120.90
8.1.220.0040.00418.77
8.1.210.0040.00418.97
8.1.200.0000.00917.23
8.1.190.0050.00317.30
8.1.180.0030.00518.10
8.1.170.0040.00418.82
8.1.160.0040.00418.73
8.1.150.0020.00618.63
8.1.140.0040.00417.31
8.1.130.0030.00317.82
8.1.120.0090.00017.47
8.1.110.0000.00717.31
8.1.100.0050.00317.41
8.1.90.0000.00817.39
8.1.80.0040.00417.29
8.1.70.0030.00517.27
8.1.60.0040.00417.55
8.1.50.0080.00017.48
8.1.40.0030.00617.47
8.1.30.0030.00617.56
8.1.20.0050.00317.56
8.1.10.0080.00017.56
8.1.00.0040.00417.52
8.0.300.0000.00820.04
8.0.290.0040.00416.75
8.0.280.0030.00318.43
8.0.270.0000.00717.10
8.0.260.0000.00716.76
8.0.250.0000.00716.97
8.0.240.0040.00416.92
8.0.230.0040.00416.98
8.0.220.0000.00716.83
8.0.210.0080.00016.77
8.0.200.0030.00316.96
8.0.190.0000.00916.88
8.0.180.0000.00816.95
8.0.170.0060.00516.89
8.0.160.0000.00716.91
8.0.150.0030.00716.96
8.0.140.0000.00916.75
8.0.130.0030.00313.28
8.0.120.0040.00416.87
8.0.110.0040.00416.75
8.0.100.0070.00016.72
8.0.90.0040.00416.72
8.0.80.0060.00916.84
8.0.70.0050.00216.75
8.0.60.0040.00416.85
8.0.50.0000.00716.73
8.0.30.0170.00517.14
8.0.20.0150.00417.40
8.0.10.0070.00016.81
8.0.00.0140.00316.76
7.4.330.0000.00514.59
7.4.320.0030.00316.52
7.4.300.0060.00016.52
7.4.290.0000.00716.58
7.4.280.0040.00416.63
7.4.270.0030.00316.53
7.4.260.0030.00613.27
7.4.250.0030.00616.48
7.4.240.0080.00016.59
7.4.230.0070.00016.43
7.4.220.0150.00616.54
7.4.210.0090.00716.59
7.4.200.0070.00016.25
7.4.190.0040.00416.75
7.4.160.0070.01116.52
7.4.150.0090.00917.40
7.4.140.0120.00517.86
7.4.130.0120.00716.45
7.4.120.0120.00816.43
7.4.110.0000.01616.39
7.4.100.0140.01016.52
7.4.90.0110.00516.45
7.4.80.0040.01619.03
7.4.70.0090.00916.66
7.4.60.0130.00916.55
7.4.50.0000.00716.31
7.4.40.0090.00622.27
7.4.30.0110.01216.64
7.4.00.0100.00314.86
7.3.330.0050.00013.23
7.3.320.0030.00313.33
7.3.310.0030.00316.18
7.3.300.0030.00316.32
7.3.290.0120.00316.30
7.3.280.0070.00816.32
7.3.270.0090.00817.40
7.3.260.0130.00618.24
7.3.250.0080.01316.44
7.3.240.0030.01316.54
7.3.230.0060.01016.39
7.3.210.0120.00416.28
7.3.200.0110.00519.39
7.3.190.0090.00916.35
7.3.180.0030.01616.36
7.3.170.0100.00616.50
7.3.160.0090.00916.60
7.3.120.0070.01014.87
7.3.10.0080.00516.20
7.3.00.0110.00716.48
7.2.330.0130.01016.78
7.2.320.0160.00716.70
7.2.310.0150.00316.75
7.2.300.0120.00616.70
7.2.290.0030.01316.72
7.2.130.0080.01216.45
7.2.120.0000.01516.66
7.2.110.0080.00816.93
7.2.100.0070.01016.45
7.2.90.0100.00716.99
7.2.80.0090.00616.66
7.2.70.0120.00916.46
7.2.60.0070.01016.66
7.2.50.0120.00316.68
7.2.40.0080.00416.24
7.2.30.0130.00317.03
7.2.20.0120.00416.33
7.2.10.0190.00416.63
7.2.00.0040.01317.93
7.1.250.0070.00715.80
7.1.200.0070.00415.92
7.1.100.0080.01916.10
7.1.70.0050.00517.12
7.1.60.0100.01019.40
7.1.50.0070.01416.92
7.1.00.0070.03322.51
7.0.200.0070.00016.51
7.0.140.0130.05721.98
7.0.60.0100.08719.98
7.0.50.0030.09017.97
7.0.40.0070.03717.76
7.0.30.0100.07717.86
7.0.20.0070.07017.75
7.0.10.0030.04017.68
7.0.00.0070.04317.78
5.6.280.0070.07021.13
5.6.210.0130.07320.55
5.6.200.0030.07018.18
5.6.190.0100.08018.14
5.6.180.0030.04718.25
5.6.170.0030.05018.18
5.6.160.0100.07318.22
5.6.150.0070.08018.17
5.6.140.0070.04318.16
5.6.130.0130.06018.15
5.6.120.0130.03318.24
5.6.110.0100.07018.24
5.6.100.0170.07318.18
5.6.90.0000.06318.21
5.6.80.0030.08017.50
5.6.70.0030.04317.55
5.6.60.0100.08017.51
5.6.50.0070.08317.54
5.6.40.0100.07317.55
5.6.30.0130.07317.61
5.6.20.0100.07017.54
5.6.10.0030.06017.49
5.6.00.0070.07717.57
5.5.350.4200.03320.43
5.5.340.0130.08017.98
5.5.330.0000.05317.93
5.5.320.0000.04717.95
5.5.310.0070.04017.98
5.5.300.0170.05718.09
5.5.290.0130.06317.96
5.5.280.0100.04018.08
5.5.270.0070.05318.07
5.5.260.0130.06317.99
5.5.250.0030.06717.76
5.5.240.0100.06717.37
5.5.230.0070.08017.36
5.5.220.0070.07717.31
5.5.210.0000.08017.46
5.5.200.0030.08717.44
5.5.190.0070.08017.43
5.5.180.0130.06317.33
5.5.160.0070.07317.30
5.5.150.0070.07317.32
5.5.140.0130.07717.30
5.5.130.0200.06317.33
5.5.120.0000.05317.33
5.5.110.0030.08017.29
5.5.100.0100.07317.21
5.5.90.0030.05017.23
5.5.80.0200.06017.28
5.5.70.0070.04717.20
5.5.60.0030.07317.16
5.5.50.0030.04017.22
5.5.40.0100.07017.25
5.5.30.0100.07317.20
5.5.20.0100.07717.28
5.5.10.0070.07017.22
5.5.00.0030.06317.23
5.4.450.0070.08019.46
5.4.440.0030.04719.31
5.4.430.0070.08019.37
5.4.420.0130.05019.45
5.4.410.0070.07719.33
5.4.400.0130.05719.05
5.4.390.0000.06019.03
5.4.380.0000.08719.06
5.4.370.0100.04019.05
5.4.360.0100.07019.04
5.4.350.0030.08319.10
5.4.340.0100.06718.98
5.4.320.0100.07719.16
5.4.310.0070.07019.27
5.4.300.0030.08319.26
5.4.290.0070.08019.27
5.4.280.0070.08019.12
5.4.270.0100.06719.27
5.4.260.0130.07019.04
5.4.250.0070.03719.05
5.4.240.0100.07719.12
5.4.230.0030.07719.00
5.4.220.0070.06019.03
5.4.210.0170.04319.09
5.4.200.0000.09019.13
5.4.190.0100.08019.11
5.4.180.0070.06019.02
5.4.170.0030.04719.00
5.4.160.0000.08718.93
5.4.150.0130.07018.94
5.4.140.0070.07016.54
5.4.130.0100.05016.28
5.4.120.0030.04716.59
5.4.110.0200.06316.38
5.4.100.0000.05016.58
5.4.90.0070.05716.42
5.4.80.0100.06716.57
5.4.70.0070.05316.34
5.4.60.0100.05316.28
5.4.50.0030.05316.45
5.4.40.0030.08016.38
5.4.30.0070.06316.43
5.4.20.0030.04316.35
5.4.10.0070.07716.38
5.4.00.0100.06315.75
5.3.290.0030.07714.66
5.3.280.0070.06714.64
5.3.270.0070.08314.57
5.3.260.0200.06314.46
5.3.250.0070.07314.65
5.3.240.0100.07314.63
5.3.230.0100.03714.45
5.3.220.0070.07714.42
5.3.210.0070.07014.52
5.3.200.0070.07314.61
5.3.190.0030.05014.58
5.3.180.0070.04314.60
5.3.170.0100.07014.58
5.3.160.0030.04014.68
5.3.150.0100.07014.55
5.3.140.0070.07314.55
5.3.130.0030.08014.58
5.3.120.0070.04014.57
5.3.110.0030.05014.57
5.3.100.0070.07013.99
5.3.90.0070.06714.02
5.3.80.0030.05714.08
5.3.70.0030.05713.92
5.3.60.0030.05714.04
5.3.50.0130.07013.94
5.3.40.0070.07313.94
5.3.30.0100.07013.94
5.3.20.0070.07013.75
5.3.10.0070.07713.65
5.3.00.0030.07013.68
5.2.170.0070.06311.04
5.2.160.0070.05311.13
5.2.150.0070.04311.15
5.2.140.0030.05711.19
5.2.130.0070.03311.07
5.2.120.0070.04011.17
5.2.110.0100.05711.14
5.2.100.0000.03711.20
5.2.90.0030.03311.10
5.2.80.0030.05011.15
5.2.70.0030.05311.15
5.2.60.0130.05711.06
5.2.50.0070.05311.07
5.2.40.0100.05310.98
5.2.30.0030.04711.02
5.2.20.0100.06311.02
5.2.10.0070.05710.85
5.2.00.0100.05710.74
5.1.60.0030.0579.98
5.1.50.0070.0509.97
5.1.40.0030.0439.92
5.1.30.0070.04010.32
5.1.20.0070.03710.20
5.1.10.0030.05710.10
5.1.00.0030.05710.15
5.0.50.0000.0278.93
5.0.40.0000.0238.93
5.0.30.0070.0278.93
5.0.20.0070.0338.93
5.0.10.0030.0378.93
5.0.00.0000.0508.93
4.4.90.0030.0238.93
4.4.80.0030.0238.93
4.4.70.0000.0408.93
4.4.60.0000.0308.93
4.4.50.0000.0378.93
4.4.40.0030.0508.93
4.4.30.0030.0338.93
4.4.20.0000.0378.93
4.4.10.0000.0278.93
4.4.00.0030.0538.93
4.3.110.0030.0238.93
4.3.100.0000.0238.93
4.3.90.0070.0308.93
4.3.80.0070.0338.93
4.3.70.0030.0208.93
4.3.60.0030.0138.93
4.3.50.0070.0338.93
4.3.40.0000.0338.93
4.3.30.0030.0378.93
4.3.20.0000.0278.93
4.3.10.0030.0178.93
4.3.00.0000.0208.93

preferences:
41.45 ms | 401 KiB | 5 Q