3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $num = "\x17"; $bigEndian = unpack("v", $num); echo $bigEndian;
Output for 4.3.2 - 7.1.0
Warning: unpack(): Type v: not enough input, need 2, have 1 in /in/PlEqo on line 3
Output for 4.3.0 - 4.3.1
Warning: unpack() [http://www.php.net/function.unpack]: Type v: not enough input, need 2, have 1 in /in/PlEqo on line 3