3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $num1 = "80"; $srbytes = "\x{$num1}\x3e\x00\x00"; $array1 = unpack("v",$srbytes); var_dump($array1);
based on EHcVg
Output for 5.6.0 - 7.2.8
array(1) { [1]=> int(30812) }