3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo implements IteratorAggregate { public function getIterator() { return new ArrayIterator([]); }} function foo(iterable $bar) { var_dump($bar); } foo(new Foo());

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.0040.01118.55
8.3.50.0070.01116.35
8.3.40.0150.00520.14
8.3.30.0090.00918.75
8.3.20.0050.00921.79
8.3.10.0080.00321.77
8.3.00.0090.00218.28
8.2.180.0090.00618.41
8.2.170.0100.00620.93
8.2.160.0070.00720.34
8.2.150.0070.00321.62
8.2.140.0090.00322.51
8.2.130.0120.00221.44
8.2.120.0090.00723.61
8.2.110.0070.00519.99
8.2.100.0070.00618.48
8.2.90.0080.00418.93
8.2.80.0070.00418.55
8.2.70.0070.00418.05
8.2.60.0030.00918.30
8.2.50.0050.00518.52
8.2.40.0020.00918.27
8.2.30.0080.00418.36
8.2.20.0030.00918.25
8.2.10.0060.00618.25
8.2.00.0030.00818.24
8.1.280.0070.01125.92
8.1.270.0100.00323.04
8.1.260.0080.00524.24
8.1.250.0110.00225.09
8.1.240.0050.00820.49
8.1.230.0130.00218.63
8.1.220.0020.01018.30
8.1.210.0040.00718.49
8.1.200.0050.00718.79
8.1.190.0110.00218.79
8.1.180.0080.00618.99
8.1.170.0100.00118.63
8.1.160.0100.00418.61
8.1.150.0060.00619.32
8.1.140.0070.00618.08
8.1.130.0080.00818.77
8.1.120.0120.00117.89
8.1.110.0060.00517.91
8.1.100.0050.00918.55
8.1.90.0040.00817.92
8.1.80.0060.00618.49
8.1.70.0080.00517.99
8.1.60.0020.01017.91
8.1.50.0050.00518.05
8.1.40.0060.00517.99
8.1.30.0050.00518.21
8.1.20.0110.00118.65
8.1.10.0050.00517.93
8.1.00.0020.00917.87
8.0.300.0050.00718.36
8.0.290.0120.00417.20
8.0.280.0100.00618.12
8.0.270.0080.00517.53
8.0.260.0120.00317.42
8.0.250.0120.00317.51
8.0.240.0130.00617.42
8.0.230.0110.00317.31
8.0.220.0110.00517.29
8.0.210.0090.00717.29
8.0.200.0050.01217.36
8.0.190.0120.00717.38
8.0.180.0090.00517.38
8.0.170.0090.00817.19
8.0.160.0090.00517.33
8.0.150.0110.00617.28
8.0.140.0120.00617.32
8.0.130.0150.00515.48
8.0.120.0120.00817.18
8.0.110.0080.00617.13
8.0.100.0100.00217.21
8.0.90.0080.00517.10
8.0.80.0130.00817.16
8.0.70.0060.00517.17
8.0.60.0090.00517.08
8.0.50.0090.00517.19
8.0.30.0090.00617.18
8.0.20.0150.01217.43
8.0.10.0100.00417.36
8.0.00.0110.00717.50
7.4.330.0080.00416.54
7.4.320.0230.00016.74
7.4.300.0170.00516.88
7.4.290.0210.00516.82
7.4.280.0200.00416.89
7.4.270.0150.00516.83
7.4.260.0110.00716.89
7.4.250.0150.00316.94
7.4.240.0110.00416.83
7.4.230.0110.00416.81
7.4.220.0120.00316.64
7.4.210.0110.00516.68
7.4.200.0080.00716.80
7.4.190.0180.00516.92
7.4.180.0140.00717.02
7.4.160.0100.00916.57
7.4.150.0190.00316.97
7.4.140.0110.00717.56
7.4.130.0130.00816.65
7.4.120.0130.00716.46
7.4.110.0190.00316.78
7.4.100.0110.00916.67
7.4.90.0160.00916.60
7.4.80.0180.00417.58
7.4.70.0120.00916.73
7.4.60.0110.00816.62
7.4.50.0130.00316.61
7.4.40.0080.00916.69
7.4.30.0160.00217.10
7.4.20.0110.00716.82
7.4.10.0130.00716.82
7.4.00.0130.00615.92
7.3.330.0150.00215.09
7.3.320.0110.00615.14
7.3.310.0100.00416.65
7.3.300.0090.00716.65
7.3.290.0140.00316.54
7.3.280.0150.00416.41
7.3.270.0190.00416.66
7.3.260.0140.00716.47
7.3.250.0140.00816.64
7.3.240.0120.00816.56
7.3.230.0130.00716.56
7.3.220.0200.00916.65
7.3.210.0170.00516.38
7.3.200.0120.01116.50
7.3.190.0170.00416.42
7.3.180.0170.00316.52
7.3.170.0150.00616.79
7.3.160.0140.00716.65
7.3.150.0190.00316.58
7.3.140.0160.00616.53
7.3.130.0190.00416.68
7.3.120.0150.00416.04
7.3.110.0090.00916.16
7.3.100.0160.00416.06
7.3.90.0110.00816.17
7.3.80.0100.00916.13
7.3.70.0120.00516.47
7.3.60.0150.00216.09
7.3.50.0110.00815.97
7.3.40.0140.00716.11
7.3.30.0120.00816.09
7.3.20.0150.00617.23
7.3.10.0160.00417.33
7.3.00.0110.00617.05
7.2.340.0170.00916.74
7.2.330.0180.00316.66
7.2.320.0170.00716.61
7.2.310.0170.00516.76
7.2.300.0120.00916.60
7.2.290.0120.00916.58
7.2.280.0150.00616.65
7.2.270.0160.01016.74
7.2.260.0170.00616.60
7.2.250.0150.00816.15
7.2.240.0090.01116.04
7.2.230.0140.00916.06
7.2.220.0130.00816.12
7.2.210.0150.00516.14
7.2.200.0100.01016.35
7.2.190.0150.00716.15
7.2.180.0110.01216.10
7.2.170.0170.00716.16
7.2.160.0200.00616.83
7.2.150.0240.00517.75
7.2.140.0170.00617.81
7.2.130.0160.00617.66
7.2.120.0140.00717.50
7.2.110.0140.00817.47
7.2.100.0130.00617.56
7.2.90.0200.00317.58
7.2.80.0130.00617.30
7.2.70.0150.00617.62
7.2.60.0140.00317.28
7.2.50.0140.00717.42
7.2.40.0150.00817.48
7.2.30.0150.00817.39
7.2.20.0150.00817.47
7.2.10.0170.00817.62
7.2.00.0110.00817.54
7.1.330.0130.00916.55
7.1.320.0170.00416.53
7.1.310.0110.01016.44
7.1.300.0130.00716.46
7.1.290.0150.00116.49
7.1.280.0120.00416.46
7.1.270.0110.00516.93
7.1.260.0100.00816.55
7.1.250.0160.00616.47
7.1.240.0140.00416.37
7.1.230.0150.00616.50
7.1.220.0170.00316.46
7.1.210.0160.00716.34
7.1.200.0120.00716.28
7.1.190.0130.00816.21
7.1.180.0150.00416.33
7.1.170.0120.00316.49
7.1.160.0110.00616.79
7.1.150.0180.00616.45
7.1.140.0160.00716.51
7.1.130.0110.00716.59
7.1.120.0120.00916.40
7.1.110.0150.00716.35
7.1.100.0120.00716.33
7.1.90.0140.00816.30
7.1.80.0140.00516.31
7.1.70.0140.00316.07
7.1.60.0180.00820.70
7.1.50.0150.00720.82
7.1.40.0150.00720.59
7.1.30.0150.00820.51
7.1.20.0140.00820.53
7.1.10.0150.00415.98
7.1.00.0090.00715.94
7.0.330.0120.00316.17
7.0.320.0190.00616.46
7.0.310.0160.00816.61
7.0.300.0190.00416.36
7.0.290.0130.01016.60
7.0.280.0150.00316.50
7.0.270.0150.00416.38
7.0.260.0190.00516.45
7.0.250.0170.00516.45
7.0.240.0160.00616.63
7.0.230.0150.00416.65
7.0.220.0200.00516.66
7.0.210.0150.00416.66
7.0.200.0200.00016.60
7.0.190.0190.00516.53
7.0.180.0140.00616.51
7.0.170.0140.00916.71
7.0.160.0170.00516.49
7.0.150.0190.00216.51
7.0.140.0110.00816.51
7.0.130.0180.00516.64
7.0.120.0180.00216.42
7.0.110.0110.00617.36
7.0.100.0170.00516.36
7.0.90.0110.00916.36
7.0.80.0230.00616.44
7.0.70.0130.00616.23
7.0.60.0100.00316.42
7.0.50.0080.01116.30
7.0.40.0150.00516.39
7.0.30.0070.00716.59
7.0.20.0190.00516.54
7.0.10.0170.00816.47
7.0.00.0150.00716.36
5.6.400.0110.00816.24
5.6.390.0090.01116.16
5.6.380.0110.00615.53
5.6.370.0120.00616.23
5.6.360.0090.01016.25
5.6.350.0140.00716.33
5.6.340.0230.00116.26
5.6.330.0210.00316.13
5.6.320.0150.00416.19
5.6.310.0210.00216.07
5.6.300.0120.00616.20
5.6.290.0150.00316.17
5.6.280.0140.01016.23
5.6.270.0180.00016.20
5.6.260.0190.00316.14
5.6.250.0120.01116.05
5.6.240.0180.00716.10
5.6.230.0160.00716.29
5.6.220.0210.00316.33
5.6.210.0130.00516.32
5.6.200.0150.00316.27
5.6.190.0170.00716.31
5.6.180.0140.00816.33
5.6.170.0160.00516.30
5.6.160.0120.00916.36
5.6.150.0140.00716.34
5.6.140.0100.00916.30
5.6.130.0090.00916.28
5.6.120.0140.00516.27
5.6.110.0190.00516.07
5.6.100.0150.00516.29
5.6.90.0130.00816.19
5.6.80.0130.00516.26
5.6.70.0130.00516.38
5.6.60.0160.00216.41
5.6.50.0140.00316.13
5.6.40.0150.00316.31
5.6.30.0210.00316.16
5.6.20.0100.00816.24
5.6.10.0150.00316.07
5.6.00.0060.01216.14

preferences:
58.9 ms | 401 KiB | 5 Q