3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php 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 4.3.5 - 5.2.0, 5.2.10 - 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 5.2.1 - 5.2.9
array(1) { [1]=> int(-1) } array(1) { [1]=> int(-1) } array(1) { [1]=> int(-1) } array(1) { [1]=> int(-1) }
Output for 4.3.0 - 4.3.4
array(1) { [""]=> int(4294967295) } array(1) { [""]=> int(4294967295) } array(1) { [""]=> int(-1) } array(1) { [""]=> int(4294967295) }