3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $num = "\xff\xff"; $bigEndian = unpack("v", $num); var_dump($bigEndian);
Output for 4.3.5 - 7.1.0
array(1) { [1]=> int(65535) }
Output for 4.3.0 - 4.3.4
array(1) { [""]=> int(65535) }