3v4l.org

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