3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(unpack('C2', pack('H*', 9223372036854775807)));
Output for 5.1.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { [1]=> int(146) [2]=> int(35) }
Output for 4.3.2 - 5.1.1
Warning: unpack(): Type C: not enough input, need 1, have 0 in /in/1PGvL on line 2 bool(false)
Output for 4.3.0 - 4.3.1
Warning: unpack() [http://www.php.net/function.unpack]: Type C: not enough input, need 1, have 0 in /in/1PGvL on line 2 bool(false)