3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function gen() { return; yield 1; } $append = new \AppendIterator; $append->append(gen()); foreach ($append as $foo) {}

Here you find the average performance (time & memory) of each version. A greyed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.00.0060.00619.48
7.1.70.0030.00616.78
7.1.60.0030.00716.84
7.1.50.0070.00316.86
7.1.40.0060.00616.39
7.1.30.0040.00816.78
7.1.20.0110.00416.48
7.1.10.0080.00016.35
7.1.00.0000.00916.49
7.0.200.0040.00416.64
7.0.190.0030.00616.76
7.0.180.0040.00416.24
7.0.170.0000.01115.93
7.0.160.0000.00816.11
7.0.150.0070.00016.14
7.0.140.0040.00416.24
7.0.130.0000.01416.64
7.0.120.0070.00316.54
7.0.110.0050.00516.49
7.0.100.0000.00816.26
7.0.90.0000.00716.27
7.0.80.0040.00416.28
7.0.70.0040.00716.16
7.0.60.0000.00816.28
7.0.50.0030.00616.35
7.0.40.0060.00414.85
7.0.30.0080.00314.85
7.0.20.0000.01114.85
7.0.10.0000.00714.85
7.0.00.0040.00414.85
hhvm-3.17.30.0170.098102.96
hhvm-3.15.40.0270.08197.21
hhvm-3.13.20.0200.137110.31
hhvm-3.12.140.0300.079109.96
hhvm-3.11.10.0620.124106.55
hhvm-3.10.10.0300.117106.04
5.6.300.0060.03920.66
5.6.290.0060.04820.89
5.6.280.0060.04120.87
5.6.270.0070.06420.89
5.6.260.0030.05020.81
5.6.250.0000.05221.09
5.6.240.0070.04120.93
5.6.230.0100.03520.83
5.6.220.0040.03920.88
5.6.210.0030.04420.61
5.6.200.0000.05120.83
5.6.190.0000.07321.05
5.6.180.0070.03821.02
5.6.170.0100.07020.98
5.6.160.0030.06220.92
5.6.150.0100.06520.93
5.6.140.0000.07420.90
5.6.130.0100.07620.83
5.6.120.0100.04721.02
5.6.110.0000.04720.92
5.6.100.0000.06420.91
5.6.90.0070.04720.96
5.6.80.0040.03920.41
5.6.70.0100.05120.10
5.6.60.0030.03920.29
5.6.50.0030.08620.37
5.6.40.0030.05720.33
5.6.30.0030.05120.29
5.6.20.0000.04420.38
5.6.10.0070.08020.29
5.6.00.0070.05020.23
5.5.380.0000.04217.41
5.5.370.0000.04317.53
5.5.360.0060.08117.54
5.5.350.0000.05517.56
5.5.340.0130.03318.11
5.5.330.0000.05018.05
5.5.320.0000.04217.93
5.5.310.0000.08117.82
5.5.300.0000.06717.97
5.5.290.0130.08017.64
5.5.280.0070.06617.96
5.5.270.0030.07017.82
5.5.260.0030.08618.05
5.5.250.0000.04617.74
5.5.240.0030.07317.20
5.5.230.0100.07617.39
5.5.220.0000.07617.47
5.5.210.0070.04317.02
5.5.200.0030.03717.41
5.5.190.0000.04417.27
5.5.180.0000.04117.32
5.5.160.0070.05917.34
5.5.150.0100.07017.41
5.5.140.0030.05517.02
5.5.130.0030.05617.42
5.5.120.0000.04517.41
5.5.110.0030.04817.27
5.5.100.0100.07117.36
5.5.90.0030.06017.31
5.5.80.0030.05617.25
5.5.70.0070.07617.04
5.5.60.0030.03717.25
5.5.50.0000.04417.05
5.5.40.0030.07417.28
5.5.30.0060.03517.16
5.5.20.0070.03417.21
5.5.10.0030.04217.26
5.5.00.0070.03717.32
5.4.450.0000.05719.31
5.4.440.0000.04319.52
5.4.430.0070.07619.55
5.4.420.0100.04619.23
5.4.410.0000.04219.33
5.4.400.0030.05718.95
5.4.390.0030.03919.21
5.4.380.0000.08219.07
5.4.370.0060.06218.97
5.4.360.0000.05018.94
5.4.350.0100.03319.11
5.4.340.0070.03419.11
5.4.320.0100.05119.16
5.4.310.0030.07619.07
5.4.300.0000.04018.90
5.4.290.0000.07518.94
5.4.280.0070.05619.09
5.4.270.0000.04119.08
5.4.260.0030.05118.89
5.4.250.0030.08219.20
5.4.240.0130.06319.19
5.4.230.0030.04519.06
5.4.220.0140.04219.08
5.4.210.0000.04019.20
5.4.200.0130.03318.98
5.4.190.0070.03619.22
5.4.180.0060.03919.09
5.4.170.0030.04419.06
5.4.160.0030.03819.05
5.4.150.0030.05019.18
5.4.140.0000.07816.77
5.4.130.0030.05816.45
5.4.120.0060.03216.56
5.4.110.0030.07716.48
5.4.100.0000.06716.70
5.4.90.0000.07416.73
5.4.80.0030.06616.78
5.4.70.0130.05616.72
5.4.60.0070.05316.69
5.4.50.0030.07416.60
5.4.40.0030.04316.76
5.4.30.0070.03116.50
5.4.20.0100.04016.59
5.4.10.0000.07116.67
5.4.00.0070.03816.16
5.3.290.0100.07114.85
5.3.280.0000.04514.86
5.3.270.0030.04114.88
5.3.260.0000.07814.89
5.3.250.0070.06414.91
5.3.240.0060.06814.85
5.3.230.0070.06714.85
5.3.220.0030.07614.85
5.3.210.0070.07714.85
5.3.200.0100.07514.85
5.3.190.0060.07414.85
5.3.180.0070.05914.85
5.3.170.0000.03914.85
5.3.160.0030.08014.91
5.3.150.0100.07014.91
5.3.140.0040.03514.85
5.3.130.0000.04114.85
5.3.120.0070.07814.85
5.3.110.0030.05714.85
5.3.100.0030.06114.85
5.3.90.0030.04214.85
5.3.80.0000.04014.85
5.3.70.0060.03514.85
5.3.60.0030.03614.85
5.3.50.0120.02814.85
5.3.40.0000.04114.85
5.3.30.0040.03914.85
5.3.20.0000.03714.85
5.3.10.0100.05114.85
5.3.00.0060.03214.85
5.2.170.0000.03414.85
5.2.160.0060.02614.85
5.2.150.0000.03414.85
5.2.140.0030.02914.85
5.2.130.0030.02914.85
5.2.120.0070.04014.85
5.2.110.0030.04814.85
5.2.100.0030.02914.85
5.2.90.0000.03314.85
5.2.80.0000.04214.85
5.2.70.0030.02914.85
5.2.60.0000.04114.85
5.2.50.0030.03014.85
5.2.40.0000.03214.85
5.2.30.0000.03214.85
5.2.20.0000.03114.85
5.2.10.0030.02714.85
5.2.00.0030.02714.85
5.1.60.0030.02314.85
5.1.50.0000.02614.85
5.1.40.0070.02014.85
5.1.30.0000.05814.85
5.1.20.0000.04714.85
5.1.10.0040.02514.85
5.1.00.0000.03814.85
5.0.50.0040.02614.85
5.0.40.0030.01914.85
5.0.30.0030.05414.85
5.0.20.0060.04514.85
5.0.10.0100.03514.85
5.0.00.0000.03414.85
4.4.90.0030.01314.85
4.4.80.0000.03714.85
4.4.70.0040.01514.85
4.4.60.0030.01514.85
4.4.50.0000.01714.85
4.4.40.0000.02614.85
4.4.30.0030.01614.85
4.4.20.0000.01814.85
4.4.10.0000.02114.85
4.4.00.0030.02314.85
4.3.110.0000.01714.85
4.3.100.0030.02414.85
4.3.90.0030.02814.85
4.3.80.0000.05614.85
4.3.70.0000.03814.85
4.3.60.0030.03114.85
4.3.50.0060.01214.85
4.3.40.0030.04114.85
4.3.30.0030.02314.85
4.3.20.0060.02614.85
4.3.10.0070.03314.85
4.3.00.0000.01614.85