3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $value = unpack('H*', "hello"); echo base_convert($value[1], 16, 2);
Output for 4.3.5 - 4.3.9, 4.3.11 - 4.4.1, 4.4.3 - 5.0.2, 5.0.5 - 5.1.1, 5.1.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
110100001100101011011000110110001101111
Output for 4.4.2, 5.1.2
1101000011001010110110001101100011011110000
Output for 4.3.10, 5.0.3 - 5.0.4
Warning: unpack(): Type H: outside of string in /in/2OjoV on line 2 110100001100101011011000110110001101111
Output for 4.3.0 - 4.3.4
Notice: Undefined offset: 1 in /in/2OjoV on line 3 0