3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $response = 247; $result = unpack('Ccommand/Cstatus/Nid', $response); var_dump($result);
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: unpack(): Type N: not enough input, need 4, have 1 in /in/uRM2P on line 4 bool(false)
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid argument: Type N: not enough input, need 4, have 1 in /in/uRM2P on line 4 bool(false)
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: unpack() [<a href='function.unpack'>function.unpack</a>]: Type N: not enough input, need 4, have 1 in <b>/in/uRM2P</b> on line <b>4</b><br /> bool(false)
Output for 4.3.2 - 4.4.2
<br /> <b>Warning</b>: unpack(): Type N: not enough input, need 4, have 1 in <b>/in/uRM2P</b> on line <b>4</b><br /> bool(false)
Output for 4.3.0 - 4.3.1
<br /> <b>Warning</b>: unpack() [<a href='http://www.php.net/function.unpack'>function.unpack</a>]: Type N: not enough input, need 4, have 1 in <b>/in/uRM2P</b> on line <b>4</b><br /> bool(false)