render php code in view result
Best practice is to implement hook_field_formatter_info() and hook_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display). The examples module shows how to do this in greater detail in the field_example submodule.