Im a bit confused on this...
$blendian(1234) -> 3412
$blendian(12345678) -> 78563412

I awlays thought bigendian values were the highest byte first, be it word or dword or what ever is bigger than dword (ddword?)

As in if the hex value of a number was 0x12345678 the dword value would be stored/transmitted as four bytes as follows 0x12 0x34 0x56 0x78
Unlike say x86 values which are LSB (least significant byte first) 0x78 0x56 0x34 0x12

Now in your example ignoring that the value might have been decimal, ill assume its a hex representation, doesnt that mean the out put was actually LSB ? (low endian <- i dont know if thats a real name)