3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? var_dump(unpack("V", "\xFF\xFF\xFF\xFF")); var_dump(unpack("N", "\xFF\xFF\xFF\xFF")); var_dump(unpack("l", pack("l", -1))); var_dump(unpack("V", pack("V", -1)));
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(1) { [1]=> int(4294967295) } array(1) { [1]=> int(4294967295) } array(1) { [1]=> int(-1) } array(1) { [1]=> int(4294967295) }
Output for 4.3.0 - 5.3.29
<? var_dump(unpack("V", "\xFF\xFF\xFF\xFF")); var_dump(unpack("N", "\xFF\xFF\xFF\xFF")); var_dump(unpack("l", pack("l", -1))); var_dump(unpack("V", pack("V", -1)));