3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(in_array(2, array()));

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.60.0120.00316.77
7.2.00.0060.00618.83
7.1.200.0060.00615.16
7.1.100.0060.00617.63
7.1.70.0030.00317.10
7.1.60.0170.00719.33
7.1.50.0110.01434.40
7.1.00.0030.07322.44
7.0.200.0200.00314.70
7.0.140.0070.06722.08
7.0.60.0130.03320.01
7.0.50.0070.08317.76
7.0.40.0000.04720.16
7.0.30.0070.05020.21
7.0.20.0200.08720.01
7.0.10.0100.08020.13
7.0.00.0070.05720.13
5.6.280.0070.07021.03
5.6.210.0100.07320.59
5.6.200.0030.04018.22
5.6.190.0000.09020.40
5.6.180.0130.05020.64
5.6.170.0300.06320.62
5.6.160.0170.07720.50
5.6.150.0100.04718.11
5.6.140.0000.05718.21
5.6.130.0100.04018.17
5.6.120.0100.05020.96
5.6.110.0070.04021.11
5.6.100.0070.08320.96
5.6.90.0170.07720.98
5.6.80.0030.06720.38
5.6.70.1770.04320.46
5.5.350.0130.06720.53
5.5.340.0100.08318.02
5.5.330.0100.04720.21
5.5.320.0330.04720.17
5.5.310.0370.06020.30
5.5.300.0170.07017.94
5.5.290.0170.07717.92
5.5.280.0070.05320.85
5.5.270.0100.04020.77
5.5.260.0270.06720.78
5.5.250.0130.06320.61
5.5.240.0170.08020.34
5.4.450.0930.06319.14
5.4.440.0870.06019.45
5.4.430.0230.05019.57
5.4.420.0900.05019.60
5.4.410.0170.05319.48
5.4.400.0700.06319.13
5.4.390.0930.05019.09
5.4.380.0300.06718.56
5.4.370.0270.06318.52
5.4.360.0370.06718.61
5.4.350.0330.05318.79
5.4.340.0200.06318.72
5.4.320.0080.03612.45
5.4.310.0080.03512.45
5.4.300.0070.04112.45
5.4.290.0060.04312.45
5.4.280.0110.05312.32
5.4.270.0080.05112.32
5.4.260.0100.05612.32
5.4.250.0070.05712.32
5.4.240.0070.05712.32
5.4.230.0130.05212.31
5.4.220.0100.05112.31
5.4.210.0090.05112.31
5.4.200.0110.06212.31
5.4.190.0100.05912.31
5.4.180.0090.06112.31
5.4.170.0100.06112.32
5.4.160.0100.05512.32
5.4.150.0090.06212.31
5.4.140.0060.06612.00
5.4.130.0110.05911.98
5.4.120.0110.06111.94
5.4.110.0120.05911.94
5.4.100.0100.06411.93
5.4.90.0140.05711.94
5.4.80.0110.04711.94
5.4.70.0140.05011.93
5.4.60.0130.05111.93
5.4.50.0140.06511.93
5.4.40.0080.05411.92
5.4.30.0080.05611.92
5.4.20.0140.05411.92
5.4.10.0120.05311.92
5.4.00.0090.05411.41
5.3.290.0040.04612.80
5.3.280.0160.06012.71
5.3.270.0090.06412.73
5.3.260.0120.06312.72
5.3.250.0150.06312.72
5.3.240.0110.06212.71
5.3.230.0090.07012.71
5.3.220.0100.05912.68
5.3.210.0120.05512.68
5.3.200.0180.05012.68
5.3.190.0130.05412.68
5.3.180.0140.05412.68
5.3.170.0230.08512.66
5.3.160.0160.07012.68
5.3.150.0180.08612.67
5.3.140.0130.05212.66
5.3.130.0100.03812.66
5.3.120.0050.04312.66
5.3.110.0120.03712.66
5.3.100.0060.04012.11
5.3.90.0070.04012.09
5.3.80.0080.04212.07
5.3.70.0800.04212.07
5.3.60.0070.04012.06
5.3.50.0070.03912.00
5.3.40.0070.03912.00
5.3.30.0070.04011.94
5.3.20.0100.04011.70
5.3.10.0100.03611.66
5.3.00.0050.04111.66
5.2.170.0080.0379.15
5.2.160.0110.0409.15
5.2.150.0060.0339.15
5.2.140.0080.0369.15
5.2.130.0200.0389.11
5.2.120.0070.0509.11
5.2.110.0190.0559.11
5.2.100.0100.0509.11
5.2.90.0090.0499.11
5.2.80.0180.1179.11
5.2.70.0120.0519.10
5.2.60.0050.0529.05
5.2.50.0090.0439.03
5.2.40.0240.0999.00
5.2.30.0160.0708.98
5.2.20.0050.0408.96
5.2.10.0040.0448.90
5.2.00.0040.0358.76
5.1.60.0110.0598.04
5.1.50.0070.0368.04
5.1.40.0060.0368.03
5.1.30.0090.0408.38
5.1.20.0100.0468.40
5.1.10.0040.0378.13
5.1.00.0200.1038.13
5.0.50.0100.0306.59
5.0.40.0140.0526.46
5.0.30.0060.0676.27
5.0.20.0220.0576.25
5.0.10.0140.0476.21
5.0.00.0150.0666.21
4.4.90.0140.0304.78
4.4.80.0040.0264.76
4.4.70.0090.0394.75
4.4.60.0130.0284.75
4.4.50.0200.0304.77
4.4.40.0070.0364.70
4.4.30.0130.0304.76
4.4.20.0090.0404.85
4.4.10.0050.0224.85
4.4.00.0050.0424.76
4.3.110.0040.0274.67
4.3.100.0080.0334.67
4.3.90.0050.0214.63
4.3.80.0050.0374.59
4.3.70.0070.0234.63
4.3.60.0080.0274.63
4.3.50.0060.0184.63
4.3.40.0020.0404.54
4.3.30.0020.0233.27
4.3.20.0030.0173.25
4.3.10.0050.0223.21
4.3.00.0170.01310.37