3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooIterator extends FilterIterator { public function accept() { return true; } } $iterator = new FooIterator((new ArrayObject([1, 2, 3]))->getIterator()); echo $iterator->count();

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.0080.00816.35
8.3.50.0130.00417.40
8.3.40.0070.00718.67
8.3.30.0110.00418.81
8.3.20.0040.00418.35
8.3.10.0030.00620.46
8.3.00.0000.00819.25
8.2.180.0110.00716.50
8.2.170.0140.00022.96
8.2.160.0130.00021.25
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0040.00419.36
8.2.110.0060.00620.99
8.2.100.0090.00317.91
8.2.90.0050.00319.01
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0040.00418.22
8.2.30.0060.00317.99
8.2.20.0030.00519.43
8.2.10.0030.00517.68
8.2.00.0080.00317.48
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0100.01022.66
8.1.230.0110.00017.77
8.1.220.0000.00817.79
8.1.210.0000.01018.77
8.1.200.0030.00617.10
8.1.190.0000.00817.10
8.1.180.0030.00618.10
8.1.170.0030.00818.80
8.1.160.0040.00418.81
8.1.150.0070.00018.59
8.1.140.0000.00717.37
8.1.130.0030.00317.72
8.1.120.0040.00417.39
8.1.110.0040.00417.43
8.1.100.0040.00417.36
8.1.90.0000.00717.35
8.1.80.0050.00217.29
8.1.70.0000.00817.25
8.1.60.0000.01117.50
8.1.50.0000.00717.34
8.1.40.0040.00417.44
8.1.30.0000.00717.54
8.1.20.0050.00217.53
8.1.10.0000.00717.63
8.1.00.0080.00017.48
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.31
8.0.270.0000.00717.30
8.0.260.0070.00016.81
8.0.250.0000.00716.95
8.0.240.0000.00716.82
8.0.230.0040.00416.78
8.0.220.0000.00716.71
8.0.210.0000.00716.77
8.0.200.0030.00316.77
8.0.190.0000.00716.88
8.0.180.0040.00416.74
8.0.170.0040.00416.83
8.0.160.0000.00716.92
8.0.150.0030.00516.67
8.0.140.0070.00016.70
8.0.130.0000.00613.27
8.0.120.0040.00416.79
8.0.110.0050.00216.68
8.0.100.0070.00016.73
8.0.90.0020.00516.71
8.0.80.0000.01416.84
8.0.70.0040.00416.82
8.0.60.0050.00316.75
8.0.50.0040.00416.84
8.0.30.0080.01217.07
8.0.20.0110.00717.00
8.0.10.0050.00216.93
8.0.00.0060.01416.55
7.4.330.0020.00212.93
7.4.320.0040.00416.49
7.4.300.0060.00016.50
7.4.290.0000.00716.42
7.4.280.0040.00416.54
7.4.270.0030.00716.54
7.4.260.0000.00613.32
7.4.250.0040.00416.37
7.4.240.0000.00716.52
7.4.230.0030.00316.51
7.4.220.0190.00616.36
7.4.210.0060.01016.49
7.4.200.0070.00016.23
7.4.190.0070.00016.34
7.4.160.0040.01116.23
7.4.150.0140.00316.33
7.4.140.0090.01016.42
7.4.130.0120.00716.61
7.4.120.0050.01416.34
7.4.110.0090.00916.37
7.4.100.0110.00516.38
7.4.90.0030.01416.41
7.4.80.0060.01219.39
7.4.70.0060.01116.43
7.4.60.0100.00616.28
7.4.50.0000.00916.40
7.4.40.0060.00916.55
7.4.30.0080.00816.57
7.4.00.0000.01115.07
7.3.330.0030.00312.96
7.3.320.0050.00013.01
7.3.310.0000.00716.10
7.3.300.0060.00016.04
7.3.290.0060.00916.19
7.3.280.0040.01216.17
7.3.270.0140.00316.30
7.3.260.0170.00716.49
7.3.250.0080.01216.22
7.3.240.0070.01016.23
7.3.230.0140.00916.52
7.3.210.0140.00416.46
7.3.200.0090.00616.01
7.3.190.0040.01216.15
7.3.180.0110.00516.33
7.3.170.0030.01416.30
7.3.160.0070.01416.38
7.3.120.0090.00614.66
7.2.330.0170.00716.69
7.2.320.0170.00016.60
7.2.310.0100.01416.70
7.2.300.0030.01916.55
7.2.290.0090.00916.46
7.2.00.0060.00619.53
7.1.100.0000.01117.85
7.1.70.0000.00817.10
7.1.60.0070.01419.40
7.1.50.0070.01416.83
7.1.00.0070.07322.42
7.0.200.0840.00314.86
7.0.140.0030.07022.12
7.0.120.0070.07022.04
7.0.60.0130.08019.93
7.0.50.0030.07317.85
7.0.40.0100.03717.73
7.0.30.0000.08017.82
7.0.20.0170.07317.69
7.0.10.0070.07017.68
7.0.00.0000.04717.75
5.6.280.0000.07721.15
5.6.210.0170.06020.54
5.6.200.0200.07018.15
5.6.190.0000.06718.16
5.6.180.0100.06718.12
5.6.170.0070.05718.18
5.6.160.0030.08718.18
5.6.150.0030.04318.28
5.6.140.0170.07318.15
5.6.130.0100.05318.14
5.6.120.0030.05318.18
5.6.110.0030.06318.21
5.6.100.0130.04318.26
5.6.90.0070.07018.13
5.6.80.0100.04717.54
5.6.70.0070.08017.57
5.6.60.0030.05717.56
5.6.50.0130.03017.63
5.6.40.0070.03717.55
5.6.30.0100.08317.51
5.6.20.0100.07317.69
5.6.10.0030.08717.63
5.6.00.0030.05717.57
5.5.350.0230.06320.32
5.5.340.0070.08317.97
5.5.330.0100.04018.02
5.5.320.0070.03717.98
5.5.310.0030.04317.96
5.5.300.0100.07017.97
5.5.290.0000.07317.97
5.5.280.0070.08018.05
5.5.270.0070.04717.94
5.5.260.0070.04017.94
5.5.250.0070.06717.88
5.5.240.0100.07317.36
5.5.230.0070.06317.37
5.5.220.0030.04317.36
5.5.210.0070.07017.42
5.5.200.0070.05717.44
5.5.190.0130.07317.41
5.5.180.0030.06317.27
5.5.160.0070.07717.34
5.5.150.0100.08017.31
5.5.140.0030.08017.30
5.5.130.0070.07017.30
5.5.120.0070.05317.32
5.5.110.0100.08017.32
5.5.100.0030.08317.25
5.5.90.0030.05317.23
5.5.80.0070.03717.21
5.5.70.0030.05317.18
5.5.60.0130.06317.20
5.5.50.0000.05017.30
5.5.40.0030.07317.24
5.5.30.0030.04017.19
5.5.20.0070.03717.25
5.5.10.0100.07317.18
5.5.00.0070.06717.15
5.4.450.0130.05319.35
5.4.440.0000.08719.36
5.4.430.0100.07019.44
5.4.420.0030.04719.48
5.4.410.0200.03719.23
5.4.400.0100.05019.14
5.4.390.0130.07318.95
5.4.380.0030.08018.98
5.4.370.0030.04019.10
5.4.360.0070.06018.89
5.4.350.0070.04319.09
5.4.340.0000.05319.05
5.4.320.0030.04719.09
5.4.310.0170.06019.07
5.4.300.0030.05719.05
5.4.290.0070.05718.98
5.4.280.0100.06719.13
5.4.270.0030.05719.11
5.4.260.0100.04019.01
5.4.250.0170.07019.09
5.4.240.0070.03719.01
5.4.230.0000.07319.02
5.4.220.0030.07018.97
5.4.210.0070.06019.02
5.4.200.0030.07719.01
5.4.190.0030.04019.04
5.4.180.0100.05019.02
5.4.170.0030.08319.11
5.4.160.0030.05719.02
5.4.150.0070.03719.08
5.4.140.0070.03316.43
5.4.130.0030.04016.40
5.4.120.0070.03316.24
5.4.110.0070.03716.45
5.4.100.0070.03716.59
5.4.90.0000.04316.32
5.4.80.0100.06016.37
5.4.70.0030.05016.36
5.4.60.0030.06316.49
5.4.50.0030.03316.33
5.4.40.0030.04016.32
5.4.30.0030.04316.29
5.4.20.0000.04716.34
5.4.10.0030.04716.44
5.4.00.0030.04015.81
5.3.290.0030.08314.77
5.3.280.0100.05014.56
5.3.270.0130.03014.57
5.3.260.0070.04714.65
5.3.250.0070.07714.64
5.3.240.0030.04014.46
5.3.230.0070.04314.64
5.3.220.0000.04314.61
5.3.210.0070.06014.60
5.3.200.0100.04314.53
5.3.190.0070.04014.41
5.3.180.0000.04714.57
5.3.170.0100.04314.62
5.3.160.0100.07314.57
5.3.150.0030.06014.59
5.3.140.0030.04014.58
5.3.130.0100.07314.77
5.3.120.0030.04714.51
5.3.110.0030.04714.76
5.3.100.0100.06714.06
5.3.90.0100.07014.04
5.3.80.0070.05014.08
5.3.70.0000.07313.91
5.3.60.0030.07014.02
5.3.50.0130.06314.16
5.3.40.0070.07313.79
5.3.30.0070.06313.92
5.3.20.0100.07313.59
5.3.10.0070.07313.71
5.3.00.0070.07013.55
5.2.170.0030.06011.15
5.2.160.0030.04711.21
5.2.150.0070.06011.17
5.2.140.0200.05011.24
5.2.130.0070.03711.11
5.2.120.0070.05011.09
5.2.110.0070.06011.10
5.2.100.0000.03710.95
5.2.90.0070.05311.11
5.2.80.0000.06711.06
5.2.70.0030.05311.14
5.2.60.0000.07011.26
5.2.50.0070.06311.02
5.2.40.0030.03711.06
5.2.30.0100.05711.04
5.2.20.0030.05711.17
5.2.10.0070.02710.87
5.2.00.0000.06010.73
5.1.60.0070.0509.91
5.1.50.0030.04010.03
5.1.40.0000.0279.91
5.1.30.0030.02710.35
5.1.20.0030.02710.40
5.1.10.0000.05310.15
5.1.00.0100.03710.05
5.0.50.0000.0478.50
5.0.40.0000.0378.27
5.0.30.0030.0678.29
5.0.20.0000.0508.27
5.0.10.0000.0278.27
5.0.00.0100.0608.27
4.4.90.0030.0278.27
4.4.80.0070.0338.27
4.4.70.0000.0238.27
4.4.60.0030.0378.27
4.4.50.0070.0338.27
4.4.40.0000.0308.27
4.4.30.0030.0178.27
4.4.20.0030.0208.27
4.4.10.0000.0408.27
4.4.00.0030.0478.27
4.3.110.0000.0238.27
4.3.100.0100.0138.27
4.3.90.0000.0378.27
4.3.80.0030.0538.27
4.3.70.0070.0338.27
4.3.60.0070.0308.27
4.3.50.0030.0378.27
4.3.40.0000.0438.27
4.3.30.0000.0278.27
4.3.20.0000.0278.27
4.3.10.0030.0238.27
4.3.00.0070.0208.27

preferences:
36.42 ms | 401 KiB | 5 Q