Nitrene-carbene-carbene rearrangement. Photolysis and thermolysis of tetrazolo[5,1-a]phthalazine with formation of 1-phthalazinylnitrene, o-cyanophenylcarbene, and phenylcyanocarbene.