Converts sphingomyelin to ceramide (PubMed:12563314, PubMed:1840600, PubMed:18815062, PubMed:25339683, PubMed:25920558, PubMed:27659707, PubMed:33163980). Exists as two enzymatic forms that arise from alternative trafficking of a single protein precursor, one that is targeted to the endolysosomal compartment, whereas the other is released extracellularly (PubMed:20807762, PubMed:21098024, PubMed:9660788). However, in response to various forms of stress, lysosomal exocytosis may represent a major source of the secretory form (PubMed:12563314, PubMed:20530211, PubMed:20807762, PubMed:22573858, PubMed:9393854). ; In the lysosomes, converts sphingomyelin to ceramide (PubMed:20807762, PubMed:21098024). Plays an important role in the export of cholesterol from the intraendolysosomal membranes (PubMed:25339683). Also has phospholipase C activities toward 1,2-diacylglycerolphosphocholine and 1,2-diacylglycerolphosphoglycerol (PubMed:25339683). Modulates stress-induced apoptosis through the production of ceramide (PubMed:8706124). ; When secreted, modulates cell signaling with its ability to reorganize the plasma membrane by converting sphingomyelin to ceramide (PubMed:12563314, PubMed:17303575, PubMed:20807762). Secreted form is increased in response to stress and inflammatory mediators such as IL1B, IFNG or TNF as well as upon infection with bacteria and viruses (PubMed:12563314, PubMed:20807762, PubMed:9393854). Produces the release of ceramide in the outer leaflet of the plasma membrane playing a central role in host defense (PubMed:12563314, PubMed:20807762, PubMed:9393854). Ceramide reorganizes these rafts into larger signaling platforms that are required to internalize P. aeruginosa, induce apoptosis and regulate the cytokine response in infected cells (PubMed:12563314). In wounded cells, the lysosomal form is released extracellularly in the presence of Ca(2+) and promotes endocytosis and plasma membrane repair (PubMed:20530211). ; [Sphingomyelin phosphodiesterase, processed form]: This form is generated following cleavage by CASP7 in the extracellular milieu in response to bacterial infection (PubMed:21157428). It shows increased ability to convert sphingomyelin to ceramide and promotes plasma membrane repair (By similarity). Plasma membrane repair by ceramide counteracts the action of gasdermin-D (GSDMD) perforin (PRF1) pores that are formed in response to bacterial infection (By similarity). ; (Microbial infection) Secretion is activated by bacteria such as P. aeruginos, N. gonorrhoeae and others, this activation results in the release of ceramide in the outer leaflet of the plasma membrane which facilitates the infection. ; (Microbial infection) Secretion is activated by human coronaviruses SARS-CoV and SARS-CoV-2 as well as Zaire ebolavirus, this activation results in the release of ceramide in the outer leaflet of the plasma membrane which facilitates the infection. ; [Isoform 2]: Lacks residues that bind the cofactor Zn(2+) and has no enzyme activity. ; [Isoform 3]: Lacks residues that bind the cofactor Zn(2+) and has no enzyme activity.