3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach (require('xyz') as $foo => $bar) { }

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).
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.0030.01019.01
7.1.100.0060.00917.92
7.1.70.0060.00316.75
7.1.60.0060.01619.46
7.1.50.0140.00716.86
7.1.00.0000.08022.46
7.0.200.0060.00316.27
7.0.140.0000.07022.00
7.0.60.0000.08020.00
7.0.50.0000.06717.91
7.0.40.0100.08020.28
7.0.30.0270.03720.10
7.0.20.0300.07720.20
7.0.10.0170.07320.18
7.0.00.0070.08720.00
5.6.280.0100.06720.90
5.6.210.0170.07320.75
5.6.200.0070.04718.10
5.6.190.0100.08320.68
5.6.180.0070.04720.38
5.6.170.0330.07020.49
5.6.160.0070.06020.43
5.6.150.0070.07318.20
5.6.140.0070.07318.09
5.6.130.0130.04018.19
5.6.120.0030.04721.14
5.6.110.0100.03721.13
5.6.100.0070.04321.11
5.6.90.0200.07720.97
5.6.80.0070.07720.41
5.5.350.3370.03020.43
5.5.340.0070.03717.89
5.5.330.0130.08020.41
5.5.320.0300.07720.32
5.5.310.0400.06720.34
5.5.300.0030.04318.01
5.5.290.0100.07717.97
5.5.280.0030.04020.87
5.5.270.0100.05020.89
5.5.260.0070.04020.76
5.5.250.0100.04720.61
5.5.240.0070.02720.25
5.4.450.0270.03019.58
5.4.440.0230.05046.74
5.4.430.0130.05040.24
5.4.420.0170.05337.99
5.4.410.0200.04736.05
5.4.400.0500.04333.01
5.4.390.0230.04331.63
5.4.380.0500.06718.71
5.4.370.0300.05318.60
5.4.360.0300.04718.70
5.4.350.0430.06018.72
5.4.340.0400.05718.50
5.4.320.0070.04112.46
5.4.310.0040.04012.46
5.4.300.0080.04412.47
5.4.290.0060.04312.46
5.4.280.0080.05212.36
5.4.270.0080.04112.36
5.4.260.0060.04712.36
5.4.250.0050.04612.36
5.4.240.0060.03912.36
5.4.230.0110.03512.36
5.4.220.0050.03912.36
5.4.210.0070.03412.35
5.4.200.0050.03912.36
5.4.190.0050.03912.35
5.4.180.0050.03612.35
5.4.170.0060.03712.36
5.4.160.0070.03412.36
5.4.150.0100.03512.36
5.4.140.0050.04012.04
5.4.130.0070.04312.03
5.4.120.0110.04711.98
5.4.110.0080.05811.98
5.4.100.0060.05111.98
5.4.90.0070.05311.98
5.4.80.0040.05511.98
5.4.70.0070.05111.98
5.4.60.0100.04811.98
5.4.50.0070.05011.98
5.4.40.0080.07111.96
5.4.30.0200.05411.96
5.4.20.0110.07211.96
5.4.10.0180.07811.96
5.4.00.0070.05211.45
5.3.290.0080.04312.80
5.3.280.0070.05612.71
5.3.270.0130.07612.73
5.3.260.0140.05412.72
5.3.250.0090.04612.72
5.3.240.0070.04012.72
5.3.230.0050.04812.71
5.3.220.0130.03712.68
5.3.210.0090.04012.68
5.3.200.0030.04812.68
5.3.190.0080.04112.68
5.3.180.0060.03712.67
5.3.170.0100.04112.67
5.3.160.0060.04012.67
5.3.150.0050.04712.67
5.3.140.0170.04412.66
5.3.130.0070.05812.66
5.3.120.0070.04012.65
5.3.110.0090.03712.66
5.3.100.0090.03612.12
5.3.90.0070.03612.08
5.3.80.0020.04412.07
5.3.70.0090.05412.07
5.3.60.0070.04612.06
5.3.50.0070.04712.00
5.3.40.0080.04412.00
5.3.30.0110.03911.95
5.3.20.0140.04611.73
5.3.10.0040.05011.70
5.3.00.0090.03711.69
5.2.170.0080.0299.19
5.2.160.0070.0419.18
5.2.150.0070.0309.19
5.2.140.0030.0349.18
5.2.130.0060.0319.14
5.2.120.0060.0329.14
5.2.110.0070.0329.15
5.2.100.0060.0319.14
5.2.90.0040.0409.14
5.2.80.0050.0359.14
5.2.70.0100.0469.14
5.2.60.0060.0539.10
5.2.50.0070.0449.07
5.2.40.0110.0379.04
5.2.30.0090.0379.02
5.2.20.0040.0339.01
5.2.10.0030.0338.93
5.2.00.0030.0318.79
5.1.60.0050.0238.07
5.1.50.0060.0268.07
5.1.40.0020.0278.05
5.1.30.0040.0338.40
5.1.20.0100.0308.43
5.1.10.0040.0338.16
5.1.00.0080.0368.15
5.0.50.0070.0266.63
5.0.40.0030.0296.48
5.0.30.0040.0426.30
5.0.20.0050.0196.27
5.0.10.0040.0206.24
5.0.00.0010.0356.23
4.4.90.0030.0234.77
4.4.80.0040.0214.75
4.4.70.0030.0224.75
4.4.60.0040.0214.76
4.4.50.0030.0234.77
4.4.40.0010.0374.70
4.4.30.0010.0244.76
4.4.20.0040.0224.84
4.4.10.0020.0244.85
4.4.00.0060.0304.76
4.3.110.0030.0224.67
4.3.100.0010.0244.67
4.3.90.0020.0224.64
4.3.80.0040.0314.59
4.3.70.0040.0204.63
4.3.60.0040.0204.63
4.3.50.0060.0194.62
4.3.40.0030.0334.54
4.3.30.0020.0223.28
4.3.20.0020.0223.26
4.3.10.0030.0213.23
4.3.00.0000.01731.61