3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach(array() as $ciao) { }

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.01119.11
7.1.100.0040.00817.62
7.1.70.0000.00817.04
7.1.60.0160.00719.70
7.1.50.0240.01334.66
7.1.00.0070.07322.46
7.0.200.0060.00316.84
7.0.140.0100.06721.97
7.0.60.0100.07319.91
7.0.50.0030.04017.79
7.0.40.0100.04720.20
7.0.30.0700.06020.13
7.0.20.0330.07320.00
7.0.10.0200.07720.16
7.0.00.0130.05320.01
5.6.280.0030.07321.14
5.6.210.0200.06720.46
5.6.200.0070.04318.10
5.6.190.0030.07320.39
5.6.180.0230.04020.50
5.6.170.0370.08020.48
5.6.160.0000.05020.51
5.6.150.0100.04018.22
5.6.140.0030.04718.21
5.6.130.0030.08718.21
5.6.120.0130.04321.00
5.6.110.0100.07020.96
5.6.100.0070.04021.02
5.6.90.0000.04320.87
5.6.80.0000.09020.50
5.6.70.0130.07020.49
5.5.350.0200.05720.32
5.5.340.0030.07717.91
5.5.330.0130.08320.56
5.5.320.0130.06020.47
5.5.310.0230.05020.28
5.5.300.0100.07317.95
5.5.290.0070.04017.91
5.5.280.0070.08320.97
5.5.270.0100.08020.95
5.5.260.0170.07020.88
5.5.250.0170.07720.75
5.5.240.0000.04020.22
5.4.450.0230.06319.09
5.4.440.0870.06319.11
5.4.430.0700.06019.23
5.4.420.0630.00019.68
5.4.410.0100.07318.96
5.4.400.0070.07318.77
5.4.390.0230.05718.70
5.4.380.0000.06318.50
5.4.370.0070.05318.64
5.4.360.0100.05018.72
5.4.350.0090.03711.97
5.4.340.0070.03511.97
5.4.320.0050.03612.45
5.4.310.0060.05412.45
5.4.300.0070.03812.45
5.4.290.0060.04112.45
5.4.280.0070.04512.34
5.4.270.0100.03312.34
5.4.260.0110.03612.35
5.4.250.0070.04212.35
5.4.240.0110.03312.35
5.4.230.0050.03912.34
5.4.220.0110.04112.34
5.4.210.0140.03112.34
5.4.200.0070.04512.34
5.4.190.0100.03712.33
5.4.180.0110.03912.34
5.4.170.0070.04512.34
5.4.160.0100.04412.34
5.4.150.0070.03612.34
5.4.140.0060.03912.02
5.4.130.0080.03612.01
5.4.120.0100.03711.96
5.4.110.0150.03811.96
5.4.100.0100.03511.96
5.4.90.0090.03711.96
5.4.80.0050.03911.96
5.4.70.0130.03511.96
5.4.60.0070.05411.96
5.4.50.0070.05011.96
5.4.40.0060.04811.95
5.4.30.0070.04111.95
5.4.20.0080.04311.95
5.4.10.0070.04611.95
5.4.00.0100.03411.44
5.3.290.0040.04112.80
5.3.280.0080.04912.71
5.3.270.0060.04712.72
5.3.260.0080.04212.72
5.3.250.0040.04212.72
5.3.240.0070.04112.72
5.3.230.0120.05212.71
5.3.220.0120.05412.68
5.3.210.0120.05312.68
5.3.200.0100.05112.68
5.3.190.0130.04812.68
5.3.180.0150.04412.68
5.3.170.0120.04812.67
5.3.160.0060.05312.68
5.3.150.0060.05412.67
5.3.140.0110.04912.66
5.3.130.0070.05512.66
5.3.120.0080.05012.66
5.3.110.0100.04112.66
5.3.100.0100.04112.12
5.3.90.0100.04112.09
5.3.80.0050.04212.08
5.3.70.0070.04012.07
5.3.60.0110.03712.06
5.3.50.0070.04412.00
5.3.40.0050.04912.00
5.3.30.0050.03911.94
5.3.20.0090.03511.72
5.3.10.0100.03611.69
5.3.00.0030.04211.68
5.2.170.0050.0369.18
5.2.160.0040.0359.18
5.2.150.0040.0349.18
5.2.140.0050.0339.17
5.2.130.0030.0359.13
5.2.120.0080.0309.13
5.2.110.0060.0379.14
5.2.100.0060.0339.13
5.2.90.0030.0349.13
5.2.80.0050.0369.13
5.2.70.0070.0309.13
5.2.60.0030.0339.08
5.2.50.0060.0319.05
5.2.40.0030.0319.03
5.2.30.0070.0289.01
5.2.20.0040.0338.99
5.2.10.0060.0298.92
5.2.00.0080.0288.77
5.1.60.0030.0298.05
5.1.50.0060.0258.06
5.1.40.0070.0238.04
5.1.30.0050.0258.39
5.1.20.0020.0298.41
5.1.10.0020.0308.13
5.1.00.0030.0268.13
5.0.50.0050.0246.61
5.0.40.0050.0216.47
5.0.30.0050.0296.29
5.0.20.0030.0206.26
5.0.10.0040.0206.23
5.0.00.0090.0266.23
4.4.90.0060.0134.78
4.4.80.0050.0134.75
4.4.70.0030.0154.76
4.4.60.0030.0154.75
4.4.50.0030.0154.77
4.4.40.0020.0274.71
4.4.30.0030.0164.76
4.4.20.0060.0134.84
4.4.10.0040.0144.84
4.4.00.0050.0234.76
4.3.110.0060.0134.67
4.3.100.0040.0164.66
4.3.90.0040.0144.63
4.3.80.0050.0234.58
4.3.70.0060.0124.63
4.3.60.0030.0154.63
4.3.50.0030.0174.62
4.3.40.0040.0254.54
4.3.30.0020.0163.27
4.3.20.0030.0153.25
4.3.10.0020.0153.21
4.3.00.0130.0236.44