3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $decimal = 101; return bin2hex(pack('s', $decimal));

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.00619.18
7.1.200.0040.00715.75
7.1.100.0030.00917.86
7.1.70.0040.01117.14
7.1.60.0100.01319.46
7.1.50.0270.01034.75
7.1.00.0030.07022.30
7.0.200.0090.00316.34
7.0.140.0070.06722.21
7.0.60.0070.08020.05
7.0.50.0030.07017.87
7.0.40.0100.04720.30
7.0.30.0170.08720.09
7.0.20.0270.07320.18
7.0.10.0000.09720.12
7.0.00.0070.04020.01
5.6.280.0070.06721.11
5.6.210.0100.05320.51
5.6.200.0100.04718.18
5.6.190.0030.06720.57
5.6.180.0330.04320.41
5.6.170.0130.04320.49
5.6.160.0000.04320.71
5.6.150.0070.08018.17
5.6.140.0030.09018.18
5.6.130.0030.08018.14
5.6.120.0070.04321.01
5.6.110.0000.07721.08
5.6.100.0030.06020.88
5.6.90.0030.08720.87
5.6.80.0100.08020.32
5.5.350.0230.07320.31
5.5.340.0130.07718.00
5.5.330.0100.04020.43
5.5.320.0400.07720.21
5.5.310.0370.04020.20
5.5.300.0070.04317.90
5.5.290.0000.06317.98
5.5.280.0030.05320.79
5.5.270.0070.03720.88
5.5.260.0200.03320.78
5.5.250.0130.07720.69
5.5.240.0000.07320.14
5.4.450.0630.06019.41
5.4.440.0700.04719.42
5.4.430.0730.04019.16
5.4.420.0670.00019.52
5.4.410.0100.05318.93
5.4.400.0300.04318.77
5.4.390.0130.06018.70
5.4.380.0200.05718.65
5.4.370.0100.05318.58
5.4.360.0100.05318.78
5.4.350.0100.07511.97
5.4.340.0200.07911.97
5.4.320.0050.03912.45
5.4.310.0060.03812.45
5.4.300.0050.03912.45
5.4.290.0090.03712.45
5.4.280.0130.04612.32
5.4.270.0070.05612.32
5.4.260.0090.05412.32
5.4.250.0130.07112.32
5.4.240.0180.07912.32
5.4.230.0270.08912.31
5.4.220.0150.10012.31
5.4.210.0120.08612.31
5.4.200.0170.09612.31
5.4.190.0120.07112.30
5.4.180.0190.10212.31
5.4.170.0080.04212.32
5.4.160.0090.04112.31
5.4.150.0100.04112.31
5.4.140.0060.04411.99
5.4.130.0120.03711.98
5.4.120.0090.04011.94
5.4.110.0080.04611.94
5.4.100.0100.04211.94
5.4.90.0060.04311.94
5.4.80.0110.04011.94
5.4.70.0150.05311.93
5.4.60.0120.06611.93
5.4.50.0120.05611.93
5.4.40.0170.05711.92
5.4.30.0180.06911.92
5.4.20.0260.06111.92
5.4.10.0120.05811.92
5.4.00.0110.05011.41
5.3.290.0050.04112.80
5.3.280.0150.07312.71
5.3.270.0350.09612.72
5.3.260.0200.07212.72
5.3.250.0200.08212.72
5.3.240.0090.07012.72
5.3.230.0100.04812.71
5.3.220.0100.04112.68
5.3.210.0080.04612.68
5.3.200.0100.04212.68
5.3.190.0110.04512.68
5.3.180.0280.06312.67
5.3.170.0180.06112.67
5.3.160.0160.05612.68
5.3.150.0160.05112.68
5.3.140.0110.04412.66
5.3.130.0140.04512.66
5.3.120.0090.04312.66
5.3.110.0090.04912.66
5.3.100.0120.05412.12
5.3.90.0110.05812.09
5.3.80.0130.05912.08
5.3.70.0110.05012.07
5.3.60.0310.09812.07
5.3.50.0110.04912.00
5.3.40.0150.05912.00
5.3.30.0120.05011.94
5.3.20.0090.05111.70
5.3.10.0180.06811.67
5.3.00.0200.06311.66
5.2.170.0100.0289.16
5.2.160.0090.0329.15
5.2.150.0050.0399.15
5.2.140.0060.0469.15
5.2.130.0070.0419.11
5.2.120.0040.0359.11
5.2.110.0070.0439.11
5.2.100.0090.0279.11
5.2.90.0040.0439.11
5.2.80.0070.0439.11
5.2.70.0050.0449.11
5.2.60.0070.0449.05
5.2.50.0070.0449.03
5.2.40.0050.0429.00
5.2.30.0060.0448.98
5.2.20.0090.0408.96
5.2.10.0080.0398.90
5.2.00.0110.0388.75
5.1.60.0090.0338.04
5.1.50.0080.0368.05
5.1.40.0070.0248.03
5.1.30.0040.0318.38
5.1.20.0100.0268.40
5.1.10.0100.0248.12
5.1.00.0070.0268.13
5.0.50.0070.0206.60
5.0.40.0050.0236.46
5.0.30.0030.0376.27
5.0.20.0010.0236.24
5.0.10.0050.0226.22
5.0.00.0030.0336.20
4.4.90.0050.0254.78
4.4.80.0050.0254.76
4.4.70.0070.0224.75
4.4.60.0050.0244.76
4.4.50.0030.0254.77
4.4.40.0040.0384.71
4.4.30.0030.0234.76
4.4.20.0040.0274.85
4.4.10.0060.0444.85
4.4.00.0070.0404.76
4.3.110.0060.0224.67
4.3.100.0090.0394.66
4.3.90.0040.0164.63
4.3.80.0050.0264.59
4.3.70.0050.0164.63
4.3.60.0070.0144.63
4.3.50.0030.0184.63
4.3.40.0060.0244.54
4.3.30.0030.0223.27
4.3.20.0060.0173.25
4.3.10.0050.0173.21
4.3.00.0070.0236.70