Experimental photonic quantum memristor