3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyArrayIterator extends ArrayIterator { public function hello() { echo "Hi\n"; } } $foo = new MyArrayIterator([1,2,3]); $bar = new IteratorIterator($foo); $bar->hello();

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.0110.00318.18
8.3.50.0090.01122.03
8.3.40.0070.00718.57
8.3.30.0110.00419.10
8.3.20.0080.00020.16
8.3.10.0040.00423.56
8.3.00.0000.00719.26
8.2.180.0040.01116.32
8.2.170.0160.00322.96
8.2.160.0040.01122.26
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0070.00020.88
8.2.110.0040.00421.03
8.2.100.0080.00317.84
8.2.90.0000.00817.84
8.2.80.0080.00017.97
8.2.70.0060.00317.63
8.2.60.0000.01018.04
8.2.50.0040.00418.07
8.2.40.0070.00318.14
8.2.30.0030.00518.03
8.2.20.0040.00417.55
8.2.10.0040.00417.98
8.2.00.0030.00517.53
8.1.280.0090.00625.92
8.1.270.0090.00018.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.48
8.1.230.0080.00420.85
8.1.220.0040.00417.79
8.1.210.0050.00318.90
8.1.200.0050.00517.35
8.1.190.0060.00317.10
8.1.180.0080.00018.10
8.1.170.0000.00818.56
8.1.160.0030.00521.86
8.1.150.0040.00418.73
8.1.140.0080.00017.38
8.1.130.0000.00717.73
8.1.120.0040.00417.46
8.1.110.0050.00317.39
8.1.100.0040.00417.46
8.1.90.0070.00017.29
8.1.80.0050.00217.42
8.1.70.0000.00817.34
8.1.60.0000.00817.62
8.1.50.0000.00817.52
8.1.40.0030.00617.40
8.1.30.0030.00517.67
8.1.20.0000.00717.65
8.1.10.0050.00317.43
8.1.00.0000.00717.38
8.0.300.0000.00820.03
8.0.290.0070.00016.75
8.0.280.0070.00018.31
8.0.270.0040.00417.29
8.0.260.0000.00617.30
8.0.250.0070.00016.84
8.0.240.0020.00516.90
8.0.230.0050.00316.92
8.0.220.0030.00316.70
8.0.210.0000.00716.77
8.0.200.0030.00316.89
8.0.190.0040.00416.88
8.0.180.0040.00416.86
8.0.170.0030.00616.84
8.0.160.0050.00216.87
8.0.150.0030.00316.78
8.0.140.0040.00416.79
8.0.130.0030.00313.29
8.0.120.0080.00016.82
8.0.110.0040.00416.79
8.0.100.0070.00016.71
8.0.90.0050.00216.89
8.0.80.0070.01416.77
8.0.70.0000.00816.82
8.0.60.0040.00316.67
8.0.50.0000.00816.89
8.0.30.0070.01516.85
8.0.20.0090.01117.40
8.0.10.0070.00016.80
8.0.00.0080.01016.77
7.4.330.0000.00415.03
7.4.320.0030.00316.52
7.4.300.0000.00716.57
7.4.290.0000.00816.48
7.4.280.0040.00416.48
7.4.270.0000.00816.58
7.4.260.0070.00016.52
7.4.250.0000.00716.45
7.4.240.0050.00216.62
7.4.230.0030.00316.61
7.4.220.0090.01016.59
7.4.210.0070.01116.54
7.4.200.0040.00416.59
7.4.160.0090.00616.61
7.4.150.0100.00717.40
7.4.140.0150.00917.86
7.4.130.0070.00916.38
7.4.120.0080.00916.51
7.4.110.0100.01316.39
7.4.100.0100.00716.41
7.4.90.0140.00416.44
7.4.80.0070.01719.39
7.4.70.0070.01516.43
7.4.60.0000.01616.50
7.4.50.0060.00316.23
7.4.40.0060.01516.26
7.4.30.0120.00816.31
7.4.00.0060.00914.95
7.3.330.0050.00013.10
7.3.320.0030.00313.20
7.3.310.0070.00016.33
7.3.300.0000.00716.28
7.3.290.0080.00816.25
7.3.280.0090.01016.21
7.3.270.0080.00817.40
7.3.260.0070.01116.23
7.3.250.0090.00816.46
7.3.240.0130.00616.15
7.3.230.0100.01316.46
7.3.210.0060.01216.37
7.3.200.0060.01019.39
7.3.190.0120.00316.47
7.3.180.0100.01016.15
7.3.170.0040.01216.35
7.3.160.0090.00616.20
7.3.120.0000.01914.86
7.3.110.0090.00914.38
7.3.100.0070.01114.67
7.3.90.0120.00314.40
7.3.80.0000.01014.80
7.3.70.0000.00814.50
7.3.60.0000.01714.74
7.3.50.0040.00414.76
7.3.40.0040.00414.64
7.3.30.0100.00314.39
7.3.20.0000.00816.54
7.3.10.0040.01116.47
7.3.00.0040.01116.61
7.2.330.0090.00916.34
7.2.320.0100.00716.67
7.2.310.0040.01316.73
7.2.300.0060.01116.31
7.2.290.0060.01616.61
7.2.250.0100.00714.95
7.2.240.0000.01414.79
7.2.230.0070.00714.86
7.2.220.0030.01314.85
7.2.210.0060.00315.20
7.2.200.0100.00615.11
7.2.190.0070.01014.66
7.2.180.0040.01514.68
7.2.170.0070.00314.92
7.2.160.0040.00914.81
7.2.150.0000.01016.75
7.2.140.0000.01216.98
7.2.130.0000.01116.83
7.2.120.0030.00916.70
7.2.110.0100.00316.73
7.2.100.0070.00716.81
7.2.90.0030.01016.80
7.2.80.0060.00616.84
7.2.70.0000.01416.81
7.2.60.0000.01416.74
7.2.50.0000.01416.68
7.2.40.0130.00016.85
7.2.30.0060.00916.58
7.2.20.0000.01116.78
7.2.10.0000.01216.79
7.2.00.0020.01218.08
7.1.330.0070.01115.74
7.1.320.0040.01115.70
7.1.310.0030.00715.70
7.1.300.0060.00615.47
7.1.290.0110.00715.70
7.1.280.0080.00415.74
7.1.270.0030.00715.32
7.1.260.0000.00815.69
7.1.250.0090.00015.81
7.1.240.0060.00615.63
7.1.230.0060.00315.65
7.1.220.0090.00615.34
7.1.210.0070.00415.45
7.1.200.0010.01215.73
7.1.190.0100.00415.51
7.1.180.0000.01515.44
7.1.170.0100.00715.54
7.1.160.0080.00615.56
7.1.150.0040.00715.62
7.1.140.0040.01115.58
7.1.130.0030.00515.45
7.1.120.0070.00715.35
7.1.110.0130.00615.32
7.1.100.0040.01116.91
7.1.90.0030.00715.72
7.1.80.0070.00715.25
7.1.70.0050.00616.32
7.1.60.0090.01017.35
7.1.50.0110.01016.27
7.1.40.0120.00015.50
7.1.30.0040.00715.50
7.1.20.0090.00615.69
7.1.10.0130.00015.27
7.1.00.0100.03518.93
7.0.330.0110.00415.16
7.0.320.0060.00615.20
7.0.310.0070.00414.93
7.0.300.0040.01115.33
7.0.290.0000.00815.11
7.0.280.0060.00615.30
7.0.270.0040.00714.91
7.0.260.0000.00815.09
7.0.250.0060.00915.38
7.0.240.0000.01415.39
7.0.230.0030.01015.15
7.0.220.0030.00715.37
7.0.210.0030.00614.96
7.0.200.0030.00915.98
7.0.190.0080.00015.05
7.0.180.0080.00415.23
7.0.170.0050.00515.14
7.0.160.0000.01315.16
7.0.150.0030.00715.15
7.0.140.0040.02418.64
7.0.130.0030.01015.29
7.0.120.0050.02218.73
7.0.110.0080.03318.69
7.0.100.0030.02218.59
7.0.90.0030.04018.58
7.0.80.0080.03618.62
7.0.70.0070.02718.77
7.0.60.0040.02518.53
7.0.50.0030.02718.57
7.0.40.0070.02416.88
7.0.30.0050.03216.77
7.0.20.0050.03916.83
7.0.10.0070.03216.87
7.0.00.0110.02316.88
5.6.400.0070.01014.30
5.6.390.0030.00814.22
5.6.380.0070.01014.05
5.6.370.0040.00814.30
5.6.360.0060.00614.18
5.6.350.0040.01214.38
5.6.340.0060.00914.24
5.6.330.0120.00814.33
5.6.320.0070.00714.29
5.6.310.0060.00614.08
5.6.300.0110.00314.11
5.6.290.0080.01214.16
5.6.280.0050.04117.57
5.6.270.0100.02717.45
5.6.260.0050.04817.63
5.6.250.0030.05317.65
5.6.240.0030.02517.40
5.6.230.0110.02017.61
5.6.220.0040.03417.56
5.6.210.0070.02617.51
5.6.200.0060.02717.67
5.6.190.0070.03517.51
5.6.180.0030.02717.43
5.6.170.0050.03417.38
5.6.160.0000.03217.40
5.6.150.0070.02517.75
5.6.140.0030.02817.65
5.6.130.0010.02617.63
5.6.120.0050.02717.47
5.6.110.0050.02417.54
5.6.100.0050.03217.67
5.6.90.0030.02417.44
5.6.80.0030.02717.12
5.6.70.0050.01817.19
5.6.60.0050.03417.37
5.6.50.0020.02517.28
5.6.40.0030.02417.18
5.6.30.0040.01917.34
5.6.20.0030.02017.20
5.6.10.0040.01717.01
5.6.00.0050.02017.04
5.5.380.0080.02415.76
5.5.370.0120.03915.96
5.5.360.0080.03515.72
5.5.350.0050.02015.69
5.5.340.0020.03116.01
5.5.330.0070.02716.13
5.5.320.0050.03616.12
5.5.310.0060.04016.16
5.5.300.0060.02316.26
5.5.290.0020.02716.09
5.5.280.0090.02116.05
5.5.270.0100.02015.98
5.5.260.0050.02515.99
5.5.250.0080.02216.03
5.5.240.0080.01815.71
5.5.230.0050.02815.86
5.5.220.0050.01815.62
5.5.210.0070.01915.54
5.5.200.0050.01815.82
5.5.190.0030.02015.68
5.5.180.0070.02015.66
5.5.170.0030.00614.25
5.5.160.0050.01815.72
5.5.150.0040.01715.70
5.5.140.0030.01815.78
5.5.130.0090.01715.87
5.5.120.0030.02315.63
5.5.110.0050.02315.94
5.5.100.0000.02015.85
5.5.90.0030.01615.69
5.5.80.0060.01915.80
5.5.70.0000.02415.63
5.5.60.0070.02015.68
5.5.50.0000.02015.90
5.5.40.0030.01815.65
5.5.30.0030.01715.78
5.5.20.0020.01915.70
5.5.10.0010.02115.58
5.5.00.0020.02115.65
5.4.450.0050.02716.48
5.4.440.0030.02516.54
5.4.430.0020.02516.56
5.4.420.0050.02316.63
5.4.410.0050.02516.55
5.4.400.0020.02416.30
5.4.390.0030.02316.42
5.4.380.0000.02216.29
5.4.370.0030.02016.40
5.4.360.0030.02316.31
5.4.350.0000.02016.30
5.4.340.0020.02016.30
5.4.330.0070.00313.66
5.4.320.0020.02016.30
5.4.310.0030.01516.30
5.4.300.0000.01916.29
5.4.290.0020.01916.28
5.4.280.0030.01816.40
5.4.270.0040.01916.47
5.4.260.0070.01816.39
5.4.250.0010.01816.27
5.4.240.0020.01716.35
5.4.230.0050.02016.41
5.4.220.0050.01716.38
5.4.210.0070.01716.31
5.4.200.0050.01616.28
5.4.190.0020.02116.46
5.4.180.0020.02116.39
5.4.170.0030.01616.41
5.4.160.0030.02016.38
5.4.150.0020.01916.46
5.4.140.0030.02115.00
5.4.130.0050.01514.99
5.4.120.0060.01614.98
5.4.110.0030.02115.05
5.4.100.0040.01615.01
5.4.90.0070.01515.01
5.4.80.0030.01815.05
5.4.70.0070.02515.01
5.4.60.0000.01814.97
5.4.50.0020.02515.04
5.4.40.0030.01815.02
5.4.30.0050.03614.91
5.4.20.0020.01714.97
5.4.10.0020.03814.99
5.4.00.0030.03414.79
5.3.290.0000.03014.80
5.3.280.0000.03014.73
5.3.270.0100.03314.61
5.3.260.0030.03014.57
5.3.250.0030.03014.75
5.3.240.0070.03014.69
5.3.230.0200.02314.55
5.3.220.0070.02714.56
5.3.210.0030.03714.66
5.3.200.0130.02014.52
5.3.190.0100.03014.56
5.3.180.0030.04714.53
5.3.170.0000.06014.58
5.3.160.0000.05014.57
5.3.150.0070.05314.44
5.3.140.0000.06014.57
5.3.130.0000.07714.55
5.3.120.0030.06014.40
5.3.110.0070.06014.51
5.3.100.0000.06014.05
5.3.90.0000.06014.05
5.3.80.0030.03014.10
5.3.70.0000.03314.10
5.3.60.0030.06314.04
5.3.50.0000.07314.07
5.3.40.0070.03713.96
5.3.30.0070.04313.99
5.3.20.0000.07313.82
5.3.10.0000.07013.71
5.3.00.0070.04713.67
5.2.170.0030.06311.15
5.2.160.0030.05711.10
5.2.150.0070.02711.09
5.2.140.0070.05711.13
5.2.130.0000.03311.16
5.2.120.0030.05011.11
5.2.110.0030.03011.18
5.2.100.0070.05711.07
5.2.90.0030.03011.07
5.2.80.0000.07011.15
5.2.70.0030.06011.32
5.2.60.0030.03011.02
5.2.50.0030.06311.02
5.2.40.0000.04311.14
5.2.30.0030.04311.05
5.2.20.0070.04710.97
5.2.10.0000.03010.88
5.2.00.0000.03010.68
5.1.60.0030.03010.15
5.1.50.0000.03010.05
5.1.40.0000.04010.23
5.1.30.0030.03010.35
5.1.20.0030.02710.36
5.1.10.0030.05010.13
5.1.00.0030.02710.05
5.0.50.0000.0339.74
5.0.40.0030.0439.74
5.0.30.0000.0639.74
5.0.20.0070.0409.74
5.0.10.0030.0339.74
5.0.00.0000.0309.74
4.4.90.0000.0179.74
4.4.80.0030.0309.74
4.4.70.0030.0179.74
4.4.60.0000.0309.74
4.4.50.0000.0309.74
4.4.40.0030.0309.74
4.4.30.0030.0139.74
4.4.20.0070.0339.74
4.4.10.0030.0139.74
4.4.00.0000.0309.74
4.3.110.0070.0179.74
4.3.100.0030.0179.74
4.3.90.0000.0279.74
4.3.80.0030.0479.74
4.3.70.0070.0209.74
4.3.60.0000.0239.74
4.3.50.0000.0179.74
4.3.40.0030.0239.74
4.3.30.0000.0309.74
4.3.20.0000.0239.74
4.3.10.0000.0209.74
4.3.00.0000.0179.74

preferences:
34.76 ms | 401 KiB | 5 Q