- strtoupper: documentation ( source)
- dechex: documentation ( source)
- hexdec: documentation ( source)
<?php
$status = 00000000;
$status = hexdec($status);
$status = $status |= 16;
$status = $status |= 4096;
echo strtoupper ( string_pad ( dechex ( $status ), 4 ) );