- var_dump: documentation ( source)
- hex2bin: documentation ( source)
- str_replace: documentation ( source)
<?php
$str = hex2bin('570069006e0064006f00770073002000530075006200730079007300740065006d00200066006f00720020004c0069006e0075007800200044006900730074007200690062007500740069006f006e0073003a000d000d000a005500620075006e00740075002d00310036002e003000340020002800440065006600610075006c00740029000d000d000a00');
$str = iconv('UTF-16LE', 'UTF-8', $str);
$str = str_replace("\r\n", "\n", $str);
var_dump($str);