<?php $i = 6;$ar = unpack("C*", pack("L", $i)); print_r($ar);
Standard input is empty
Array ( [1] => 6 [2] => 0 [3] => 0 [4] => 0 )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!