On May 3, 1882. Rizal left for Spain and enrolled in Medicine and Philosophy and Letters at the Universidad Central de Madrid on November 3. On some days of November 1884, Rizal was involved in the chaotic student demonstrations by the Central University students in which many were wounded, hit by cane, arrested. and imprisoned. The protest rallies started after Dr. Miguel Morayta had been excommunicated by bishops for delivering a liberal speech, proclaiming the freedom of science and the teacher, at the opening ceremony of the academic year. (Incidentally, the street in Manila named after Morayta ["Nicanor Reyes Street today] has always been affected by, if not itself the venue of, student demonstrations.)
In June of 1884, Rizal received the degree of Licentiate in Medicine at the age of 23, His rating though was just "fair" for it was affected by the "low" grades he got from UST. In the next school year (1884-1885), he took and completed three additional subjects leading to the Doctor of Medicine degree. He was not awarded the Doctor's diploma though for failing to pay the fee and the required thesis.
Exactly on his 24th birthday, the Madrid university awarded him the degree of Licentiate in Philosophy and Letters with the grade of "excellent" (sobresaliente). (One can thus make the argument that Rizal was better as a "philosopher" than a physician.)
Wanting to cure his mother's advancing blindness, Rizal went to Paris. He was said to have attended medical lectures at the University of Paris. From November 1885 to February 1886, he worked as an assistant to Dr. Louis de Weckert. Through this leading French ophthalmologist, Rizal thankfully learned how to perform all the ophthalmological operations.
On February 3, 1886, Rizal arrived in Heidelberg, Germany. He attended the lectures of Dr. Otto Becker and Professor Wilhelm Kuehne at the University of Heidelberg. He also worked at the University Eye Hospital under the guidance of Dr. Becker. Under the direction of this renowned German ophthalmologist, Rizal had learned to use the then newly invented ophthalmoscope (invented by Hermann von Helmholtz), which he later used to operate on his mother's eye. In Heidelberg. the 25-year-old Rizal completed his eye specialization.
Afterward, Rizal spent three months in the nearby village, Wilhemsfeld, where he wrote the last few chapters of Noli Me Tangere. He stayed at the pastoral house of a kind Protestant pastor, Dr. Karl Ullmer, the whole family of whom became Rizal's good friends. In August 1886, he attended lectures on history and psychology at the University of Leipzig. In November 1886, he reached Berlin, the famous city where he worked as an assistant in Dr. Schweigger's clinic and attended lectures at the University of Berlin.
In Berlin, he was inducted as a member of the Berlin's "Ethnological Society," "Anthropological Society," "Geographical Society". In April 1887, he was invited to deliver an address in German before the "Ethnographic Society of Berlin on the orthography and structure of the Tagalog language.
In Germany, Rizal met and befriended the famous academicians and scholars at the time. Among them were Prof. Friedrich Ratzel, a German historian; Dr. Hanz Meyer, a German anthropologist: Dr. Feodor Jagor, the author of Travels in the Philippines, which Rizal had read as a student in Manila: Dr. Rudolf Virchow, a German anthropologist; and Rudolf's son. Dr. Hans Virchow, Descriptive Anatomy professor.
Especially after the hero's martyrdom, these people who were the renowned personalities in the academe not only in Germany but also in Europe were so proud that once in their lives they had known the educated and great Filipino named Jose Rizal.
(https://ourhappyschool.com/philippine-studies/jose-rizals-education)