3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(unpack('n2', pack('n', 1234)));
Output for 4.3.2 - 5.6.28, 7.0.0 - 7.1.0
Warning: unpack(): Type n: not enough input, need 2, have 0 in /in/lG43s on line 2 bool(false)
Output for hhvm-3.10.0 - 3.13.2
Warning: Invalid argument: Type n: not enough input, need 2, have 0 in /in/lG43s on line 2 bool(false)
Output for 4.3.0 - 4.3.1
Warning: unpack() [http://www.php.net/function.unpack]: Type n: not enough input, need 2, have 0 in /in/lG43s on line 2 bool(false)