3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(2, 5, 6, 12); var_dump(in_array(array(2, 5), $a));

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.0140.00619.25
7.1.100.0030.01018.12
7.1.70.0030.00316.82
7.1.60.0030.01319.46
7.1.50.0030.02016.85
7.1.00.0070.07322.57
7.0.200.0030.00516.37
7.0.140.0030.07322.18
7.0.60.0030.09019.96
7.0.50.0000.08717.88
7.0.40.0030.05020.14
7.0.30.0300.04320.09
7.0.20.0330.07020.09
7.0.10.0170.06720.02
7.0.00.0130.07020.09
5.6.280.0070.07021.04
5.6.210.0130.06720.69
5.6.200.0100.07018.22
5.6.190.0030.08020.39
5.6.180.0300.07020.27
5.6.170.0200.07020.33
5.6.160.0130.04720.52
5.6.150.0030.04018.21
5.6.140.0100.05318.22
5.6.130.0070.08018.07
5.6.120.0100.08721.00
5.6.110.0000.05021.11
5.6.100.0070.08021.13
5.6.90.0030.08721.12
5.6.80.0100.06320.38
5.5.350.4030.03020.41
5.5.340.0030.05717.89
5.5.330.0070.04720.36
5.5.320.0270.03320.34
5.5.310.0370.06020.28
5.5.300.0070.07318.02
5.5.290.0030.04017.95
5.5.280.0130.06020.96
5.5.270.0030.06020.88
5.5.260.0070.08020.96
5.5.250.0070.08020.77
5.5.240.0030.05320.06
5.4.450.0300.04739.34
5.4.440.0200.04735.87
5.4.430.0100.05031.61
5.4.420.0100.05028.65
5.4.410.0270.04727.00
5.4.400.0330.04338.68
5.4.390.0170.04023.78
5.4.380.0330.06318.68
5.4.370.0400.07718.52
5.4.360.0500.06718.62
5.4.350.0500.05718.62
5.4.340.0370.06018.68
5.4.320.0080.03912.45
5.4.310.0070.04012.45
5.4.300.0060.05312.45
5.4.290.0140.04912.45
5.4.280.0140.04712.35
5.4.270.0120.04712.34
5.4.260.0130.04912.35
5.4.250.0100.05012.35
5.4.240.0210.03612.34
5.4.230.0200.06512.34
5.4.220.0070.05812.34
5.4.210.0080.05212.34
5.4.200.0150.04712.34
5.4.190.0120.05112.33
5.4.180.0070.05812.34
5.4.170.0100.05512.35
5.4.160.0070.05212.34
5.4.150.0100.04312.34
5.4.140.0070.04012.02
5.4.130.0070.03812.01
5.4.120.0070.04411.97
5.4.110.0110.04811.96
5.4.100.0120.04511.96
5.4.90.0150.04211.96
5.4.80.0090.05111.96
5.4.70.0100.04611.96
5.4.60.0100.04711.96
5.4.50.0090.05011.96
5.4.40.0140.04111.95
5.4.30.0100.04611.95
5.4.20.0110.04511.95
5.4.10.0130.03411.94
5.4.00.0120.03811.43
5.3.290.0070.03912.80
5.3.280.0110.03912.71
5.3.270.0090.04012.73
5.3.260.0080.05512.72
5.3.250.0090.05612.72
5.3.240.0290.07312.72
5.3.230.0100.08012.71
5.3.220.0130.06212.68
5.3.210.0130.05512.68
5.3.200.0100.05512.68
5.3.190.0090.05312.68
5.3.180.0050.05412.68
5.3.170.0090.04912.67
5.3.160.0160.04212.67
5.3.150.0090.05112.67
5.3.140.0120.04612.66
5.3.130.0100.07912.65
5.3.120.0100.05112.66
5.3.110.0090.05612.66
5.3.100.0070.05512.11
5.3.90.0060.07112.08
5.3.80.0100.04912.08
5.3.70.0050.05412.08
5.3.60.0100.04912.06
5.3.50.0060.05212.00
5.3.40.0090.05212.00
5.3.30.0080.05011.94
5.3.20.0110.04411.72
5.3.10.0090.05011.69
5.3.00.0090.05111.68
5.2.170.0090.0419.18
5.2.160.0100.0479.18
5.2.150.0110.0419.18
5.2.140.0120.0409.18
5.2.130.0070.0439.13
5.2.120.0100.0389.13
5.2.110.0150.0349.14
5.2.100.0080.0409.14
5.2.90.0070.0419.14
5.2.80.0070.0449.13
5.2.70.0160.0379.13
5.2.60.0080.0429.08
5.2.50.0080.0429.05
5.2.40.0030.0439.03
5.2.30.0080.0419.01
5.2.20.0060.0419.00
5.2.10.0100.0358.91
5.2.00.0080.0408.78
5.1.60.0070.0338.06
5.1.50.0130.0298.05
5.1.40.0100.0408.04
5.1.30.0060.0398.39
5.1.20.0100.0378.41
5.1.10.0060.0368.13
5.1.00.0060.0578.13
5.0.50.0030.0456.61
5.0.40.0100.0566.46
5.0.30.0090.0736.29
5.0.20.0020.0536.25
5.0.10.0050.0206.23
5.0.00.0020.0426.23
4.4.90.0030.0204.78
4.4.80.0050.0214.75
4.4.70.0060.0214.75
4.4.60.0110.0474.76
4.4.50.0040.0274.77
4.4.40.0020.0364.71
4.4.30.0020.0244.75
4.4.20.0080.0194.84
4.4.10.0050.0334.85
4.4.00.0040.0364.76
4.3.110.0040.0224.67
4.3.100.0020.0234.66
4.3.90.0060.0214.63
4.3.80.0080.0384.59
4.3.70.0030.0244.63
4.3.60.0050.0194.63
4.3.50.0030.0224.63
4.3.40.0060.0274.54
4.3.30.0050.0193.29
4.3.20.0080.0273.25
4.3.10.0010.0233.21
4.3.00.0030.01723.34