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